:root {
  --fc-consent-ink: #111111;
  --fc-consent-paper: #ffffff;
  --fc-consent-gold: #d19b33;
  --fc-consent-gold-light: #efc56e;
  --fc-consent-muted: rgba(255, 255, 255, 0.68);
}

.fc-consent,
.fc-consent * {
  box-sizing: border-box;
}

.fc-consent {
  position: fixed !important;
  z-index: 2147483000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: center !important;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  pointer-events: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: normal;
  color: var(--fc-consent-paper);
  isolation: isolate;
}

.fc-consent[hidden] {
  display: none !important;
}

.fc-consent__panel {
  position: relative;
  width: min(1180px, 100%);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto !important;
  padding: 25px 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% -20%, rgba(209, 155, 51, 0.23), transparent 34%),
    rgba(14, 14, 14, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 5px 16px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.fc-consent__panel::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 197, 110, 0.72), transparent);
  content: "";
}

.fc-consent__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 36px;
  align-items: center;
}

.fc-consent__brand {
  display: flex;
  min-width: 0;
  gap: 18px;
  align-items: flex-start;
}

.fc-consent__brand > div {
  min-width: 0;
}

.fc-consent__mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(239, 197, 110, 0.4);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(209, 155, 51, 0.22), rgba(209, 155, 51, 0.04));
  color: var(--fc-consent-gold-light);
}

.fc-consent__mark svg {
  width: 23px;
  height: 23px;
}

.fc-consent__title {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.fc-consent__text {
  max-width: 700px;
  margin: 0;
  color: var(--fc-consent-muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fc-consent a {
  color: #fff;
  text-decoration-color: rgba(239, 197, 110, 0.68);
  text-underline-offset: 3px;
}

.fc-consent a:hover {
  color: var(--fc-consent-gold-light);
}

.fc-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
  align-items: center;
}

.fc-consent__button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.fc-consent__button:hover {
  border-color: rgba(239, 197, 110, 0.62);
  background: rgba(255, 255, 255, 0.1);
}

.fc-consent__button:active {
  transform: translateY(1px);
}

.fc-consent__button--primary {
  border-color: var(--fc-consent-gold);
  background: var(--fc-consent-gold);
  color: #15110a;
}

.fc-consent__button--primary:hover {
  border-color: var(--fc-consent-gold-light);
  background: var(--fc-consent-gold-light);
  color: #15110a;
}

.fc-consent__button:focus-visible,
.fc-consent__close:focus-visible,
.fc-consent__toggle input:focus-visible + span {
  outline: 3px solid rgba(239, 197, 110, 0.9);
  outline-offset: 3px;
}

.fc-consent__preferences {
  display: none;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.fc-consent.is-settings .fc-consent__summary {
  grid-template-columns: minmax(0, 1fr);
}

.fc-consent.is-settings .fc-consent__summary-actions {
  display: none;
}

.fc-consent.is-settings .fc-consent__preferences {
  display: block;
}

.fc-consent__preference-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fc-consent__preference {
  display: flex;
  min-height: 112px;
  gap: 18px;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.fc-consent__preference strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.fc-consent__preference p {
  margin: 0;
  color: var(--fc-consent-muted);
  font-size: 12px;
  line-height: 1.5;
}

.fc-consent__status {
  flex: 0 0 auto;
  color: var(--fc-consent-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fc-consent__toggle {
  position: relative;
  display: inline-flex;
  width: 45px;
  height: 26px;
  flex: 0 0 45px;
  cursor: pointer;
}

.fc-consent__toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fc-consent__toggle span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 160ms ease, border-color 160ms ease;
}

.fc-consent__toggle span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  content: "";
  transition: transform 160ms ease;
}

.fc-consent__toggle input:checked + span {
  border-color: var(--fc-consent-gold);
  background: var(--fc-consent-gold);
}

.fc-consent__toggle input:checked + span::after {
  transform: translateX(19px);
}

.fc-consent__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.fc-consent__reopen {
  position: static;
  z-index: auto;
  display: block;
  width: max-content;
  max-width: calc(100% - 32px);
  height: auto;
  margin: 10px auto 16px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  opacity: 0.62;
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}

.fc-consent__reopen[hidden] {
  display: none !important;
}

.fc-consent__reopen:hover {
  color: var(--fc-consent-gold-light);
  opacity: 1;
}

.fc-consent__map-gate {
  display: grid;
  min-height: 220px;
  padding: 24px;
  place-items: center;
  border: 1px solid rgba(209, 155, 51, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, #f3f0ea, #e8e2d8);
  color: #1a1a1a;
  text-align: center;
}

.fc-consent__map-gate strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.fc-consent__map-gate p {
  max-width: 430px;
  margin: 0 0 16px;
  color: #5e5a54;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .fc-consent__summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .fc-consent__actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .fc-consent__preference-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .fc-consent {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
  }

  .fc-consent__panel {
    width: 100% !important;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px 14px;
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 197, 110, 0.65) transparent;
  }

  .fc-consent__summary {
    gap: 16px;
  }

  .fc-consent__brand {
    gap: 12px;
  }

  .fc-consent__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .fc-consent__mark svg {
    width: 20px;
    height: 20px;
  }

  .fc-consent__title {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.18;
  }

  .fc-consent__text {
    font-size: 13px;
    line-height: 1.45;
  }

  .fc-consent__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .fc-consent__summary-actions .fc-consent__button--primary {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .fc-consent__button {
    width: 100%;
    min-height: 48px;
    padding: 7px 12px;
    font-size: 12.5px;
    white-space: normal;
  }

  .fc-consent__preferences {
    margin-top: 16px;
    padding-top: 16px;
  }

  .fc-consent__preference-list {
    gap: 8px;
  }

  .fc-consent__preference {
    min-height: 0;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .fc-consent__preference strong {
    margin-bottom: 4px;
    font-size: 13.5px;
  }

  .fc-consent__preference p {
    font-size: 11.5px;
    line-height: 1.42;
  }

  .fc-consent__footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
  }

  .fc-consent__footer [data-fc-consent="save"] {
    grid-row: 1;
  }

}

@media (max-width: 360px) {
  .fc-consent {
    right: max(6px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
    left: max(6px, env(safe-area-inset-left));
  }

  .fc-consent__panel {
    max-height: calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 16px 14px 12px;
    border-radius: 18px;
  }

  .fc-consent__brand {
    gap: 10px;
  }

  .fc-consent__mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .fc-consent__title {
    font-size: 17px;
  }

  .fc-consent__text {
    font-size: 12.5px;
  }

  .fc-consent__button {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-consent *,
  .fc-consent__reopen {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
