/**
 * JLConsent
 *
 * @author JUSARA LAB
 * @copyright 2026 JUSARA LAB
 * @license https://opensource.org/license/AFL-3.0 Academic Free License version 3.0
 */

#jl-consent-root,
#jl-consent-root * {
  box-sizing: border-box;
}

html.jl-consent-modal-open {
  overflow: hidden;
}

#jl-consent-root {
  --jlc-bg: #ffffff;
  --jlc-text: #16181d;
  --jlc-muted: #5d6470;
  --jlc-border: #d9dde5;
  --jlc-primary-bg: #20242c;
  --jlc-primary-text: #ffffff;
  --jlc-secondary-bg: #ffffff;
  --jlc-secondary-text: #16181d;
  --jlc-accent: #246bfd;
  position: relative;
  z-index: 2147483000;
  color: var(--jlc-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
}

#jl-consent-root [hidden] {
  display: none !important;
}

#jl-consent-root .jl-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 20px clamp(18px, 4vw, 56px);
  background: var(--jlc-bg);
  border-top: 1px solid var(--jlc-border);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.12);
}

#jl-consent-root.jl-consent-position-top .jl-consent-banner {
  top: 0;
  bottom: auto;
  border-top: 0;
  border-bottom: 1px solid var(--jlc-border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

#jl-consent-root.jl-consent-position-floating .jl-consent-banner {
  left: 24px;
  right: auto;
  bottom: 24px;
  width: min(720px, calc(100% - 48px));
  grid-template-columns: 1fr;
  border: 1px solid var(--jlc-border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

#jl-consent-root .jl-consent-title {
  margin: 0 0 8px;
  color: var(--jlc-text);
  font-size: 1.2rem;
  line-height: 1.25;
}

#jl-consent-root .jl-consent-text,
#jl-consent-root .jl-consent-category p {
  margin: 0;
  color: var(--jlc-muted);
}

#jl-consent-root .jl-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 0;
}

#jl-consent-root a {
  color: inherit;
  text-decoration: underline;
}

#jl-consent-root .jl-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#jl-consent-root .jl-consent-actions--primary {
  min-width: min(510px, 46vw);
}

#jl-consent-root .jl-consent-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--jlc-border);
  border-radius: 7px;
  background: var(--jlc-secondary-bg);
  color: var(--jlc-secondary-text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

#jl-consent-root .jl-consent-btn--equal {
  flex: 1 1 140px;
}

#jl-consent-root .jl-consent-btn--decision {
  border-color: var(--jlc-primary-bg);
  background: var(--jlc-primary-bg);
  color: var(--jlc-primary-text);
}

#jl-consent-root .jl-consent-btn:hover {
  filter: brightness(0.96);
}


#jl-consent-root button:focus-visible,
#jl-consent-root a:focus-visible,
#jl-consent-root input:focus-visible + .jl-consent-switch__visual {
  outline: 3px solid var(--jlc-accent);
  outline-offset: 2px;
}

#jl-consent-root .jl-consent-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
}

#jl-consent-root .jl-consent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100% - 32px));
  max-height: min(82vh, 760px);
  transform: translate(-50%, -50%);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--jlc-border);
  border-radius: 14px;
  background: var(--jlc-bg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

#jl-consent-root .jl-consent-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

#jl-consent-root .jl-consent-icon-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--jlc-border);
  border-radius: 50%;
  background: var(--jlc-bg);
  color: var(--jlc-text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

#jl-consent-root .jl-consent-categories {
  margin: 20px 0;
  border-top: 1px solid var(--jlc-border);
}

#jl-consent-root .jl-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--jlc-border);
}

#jl-consent-root .jl-consent-category h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

#jl-consent-root .jl-consent-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

#jl-consent-root .jl-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#jl-consent-root .jl-consent-switch__visual {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid #89919e;
  border-radius: 99px;
  background: #e3e6eb;
  transition: background 0.15s ease;
}

#jl-consent-root .jl-consent-switch__visual::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease;
}

#jl-consent-root .jl-consent-switch input:checked + .jl-consent-switch__visual {
  background: var(--jlc-accent);
}

#jl-consent-root .jl-consent-switch input:checked + .jl-consent-switch__visual::after {
  transform: translateX(22px);
}

#jl-consent-root .jl-consent-switch input:disabled + .jl-consent-switch__visual {
  opacity: 0.65;
  cursor: not-allowed;
}

#jl-consent-root .jl-consent-actions--modal {
  justify-content: flex-end;
}

#jl-consent-root .jl-consent-reopen {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--jlc-border);
  border-radius: 99px;
  background: var(--jlc-bg);
  color: var(--jlc-text);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

#jl-consent-root .jl-consent-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 880px) {
  #jl-consent-root .jl-consent-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #jl-consent-root .jl-consent-actions--primary {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  #jl-consent-root .jl-consent-banner {
    padding: 16px;
  }

  #jl-consent-root.jl-consent-position-floating .jl-consent-banner {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  #jl-consent-root .jl-consent-actions {
    flex-direction: column;
  }

  #jl-consent-root .jl-consent-btn--equal {
    flex-basis: auto;
    width: 100%;
  }

  #jl-consent-root .jl-consent-modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  #jl-consent-root .jl-consent-reopen__text {
    display: none;
  }
}

#jl-consent-root .jl-consent-category {
  display: block;
}

#jl-consent-root .jl-consent-category__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

#jl-consent-root .jl-consent-services {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--jlc-border);
}

#jl-consent-root .jl-consent-service {
  margin: 8px 0;
  border: 1px solid var(--jlc-border);
  border-radius: 8px;
  background: #fafbfc;
}

#jl-consent-root .jl-consent-service summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

#jl-consent-root .jl-consent-service__provider {
  color: var(--jlc-muted);
  font-size: 0.9em;
  font-weight: 400;
}

#jl-consent-root .jl-consent-service__body {
  padding: 0 12px 12px;
}

#jl-consent-root .jl-consent-service__body p {
  margin: 8px 0 0;
}

#jl-consent-root .jl-consent-cookie-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

#jl-consent-root .jl-consent-cookie-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

#jl-consent-root .jl-consent-cookie-table th,
#jl-consent-root .jl-consent-cookie-table td {
  padding: 8px;
  border: 1px solid var(--jlc-border);
  text-align: left;
  vertical-align: top;
}

#jl-consent-root .jl-consent-cookie-table code {
  color: inherit;
  white-space: nowrap;
}


.jl-consent-footer-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jl-consent-footer-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
