/* Cookie consent — works on dark landing and light portal */

.cc-lock {
  overflow: hidden;
}

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px clamp(14px, 3vw, 28px) calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 10, 8, 0.94);
  color: #f5f1e8;
  border-top: 1px solid rgba(201, 169, 106, 0.35);
  backdrop-filter: blur(10px);
  animation: cc-rise 0.4s ease both;
}

@keyframes cc-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cc-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
}

.cc-banner__title {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #f5f1e8;
}

.cc-banner__text {
  margin: 0;
  max-width: 52rem;
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.78);
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.cc-btn {
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cc-btn--primary {
  background: #c9a96a;
  color: #0b0a08;
  border-color: #c9a96a;
}

.cc-btn--primary:hover {
  background: #d4b87a;
}

.cc-btn--ghost {
  border-color: rgba(245, 241, 232, 0.45);
  color: #f5f1e8;
}

.cc-btn--ghost:hover {
  border-color: #c9a96a;
  color: #c9a96a;
}

/* The two consent decisions must have an identical visual weight regardless
   of translated label length. */
.cc-banner__actions .cc-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 180px;
  block-size: 56px;
  padding: 10px 16px;
  box-sizing: border-box;
  white-space: nowrap;
}

.cc-btn--text {
  border: none;
  padding-left: 8px;
  padding-right: 8px;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 13px;
  color: rgba(245, 241, 232, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-btn--text:hover {
  color: #c9a96a;
}

.cc-link {
  color: #c9a96a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-link:hover {
  color: #e0c48a;
}

.cc-floating-manage {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(32px, calc(env(safe-area-inset-bottom, 0px) + 32px));
  z-index: 10045;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5f1e8;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.cc-floating-manage:hover {
  transform: translateY(-2px);
  color: #c9a96a;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.75))
    drop-shadow(0 16px 32px rgba(0, 0, 0, 0.6));
}

.cc-floating-manage:focus-visible {
  outline: 2px solid #c9a96a;
  outline-offset: 3px;
}

.cc-floating-manage svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cc-floating-manage svg path:first-child {
  fill: #17140f;
  stroke: currentColor;
}
.cc-floating-manage svg path:last-child {
  fill: none;
  stroke: currentColor;
}

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

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: end center;
  padding: 16px;
}

.cc-modal[hidden],
.cc-banner[hidden] {
  display: none !important;
}

.cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 10, 8, 0.62);
}

.cc-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #14120e;
  color: #f5f1e8;
  border: 1px solid rgba(201, 169, 106, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: cc-rise 0.35s ease both;
}

.cc-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
}

.cc-modal__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
}

.cc-modal__close {
  border: none;
  background: transparent;
  color: rgba(245, 241, 232, 0.65);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.cc-modal__close:hover {
  color: #c9a96a;
}

.cc-modal__body {
  padding: 16px 22px 8px;
}

.cc-modal__lead {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.72);
  font-family: "Golos Text", system-ui, sans-serif;
}

.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
}

.cc-row__title {
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cc-row__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(245, 241, 232, 0.62);
  font-family: "Golos Text", system-ui, sans-serif;
}

.cc-row__badge {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a96a;
  border: 1px solid rgba(201, 169, 106, 0.4);
  padding: 6px 10px;
}

.cc-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cc-switch__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.18);
  border: 1px solid rgba(245, 241, 232, 0.22);
  transition: background 0.2s, border-color 0.2s;
  display: block;
}

.cc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f1e8;
  transition: transform 0.2s;
}

.cc-switch input:checked + .cc-switch__track {
  background: rgba(201, 169, 106, 0.45);
  border-color: #c9a96a;
}

.cc-switch input:checked + .cc-switch__track::after {
  transform: translateX(20px);
  background: #c9a96a;
}

.cc-switch input:focus-visible + .cc-switch__track {
  outline: 2px solid #c9a96a;
  outline-offset: 2px;
}

.cc-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
}

/* Light portal / 404 / legal pages */
body.portal-body .cc-banner,
body.template-404 .cc-banner {
  background: rgba(255, 255, 255, 0.96);
  color: #17140f;
  border-top-color: #e7e2d5;
  box-shadow: 0 -10px 36px rgba(23, 20, 15, 0.08);
}

body.portal-body .cc-banner__title,
body.template-404 .cc-banner__title {
  color: #17140f;
}

body.portal-body .cc-banner__text,
body.template-404 .cc-banner__text {
  color: #6b6459;
}

body.portal-body .cc-btn--primary,
body.template-404 .cc-btn--primary {
  background: #17140f;
  color: #fff;
  border-color: #17140f;
}

body.portal-body .cc-btn--primary:hover,
body.template-404 .cc-btn--primary:hover {
  background: #6e5324;
  border-color: #6e5324;
}

body.portal-body .cc-btn--ghost,
body.template-404 .cc-btn--ghost {
  border-color: #17140f;
  color: #17140f;
}

body.portal-body .cc-btn--ghost:hover,
body.template-404 .cc-btn--ghost:hover {
  background: #17140f;
  color: #fff;
  border-color: #17140f;
}

body.portal-body .cc-btn--text,
body.template-404 .cc-btn--text {
  color: #6b6459;
}

body.portal-body .cc-btn--text:hover,
body.template-404 .cc-btn--text:hover,
body.portal-body .cc-link,
body.template-404 .cc-link {
  color: #6e5324;
}

body.portal-body .cc-modal__panel,
body.template-404 .cc-modal__panel {
  background: #fff;
  color: #17140f;
  border-color: #e7e2d5;
  box-shadow: 0 18px 48px rgba(23, 20, 15, 0.14);
}

body.portal-body .cc-modal__backdrop,
body.template-404 .cc-modal__backdrop {
  background: rgba(23, 20, 15, 0.42);
}

body.portal-body .cc-modal__head,
body.portal-body .cc-modal__foot,
body.portal-body .cc-row,
body.template-404 .cc-modal__head,
body.template-404 .cc-modal__foot,
body.template-404 .cc-row {
  border-color: #efebe3;
}

body.portal-body .cc-modal__lead,
body.portal-body .cc-row__desc,
body.template-404 .cc-modal__lead,
body.template-404 .cc-row__desc {
  color: #6b6459;
}

body.portal-body .cc-modal__close,
body.template-404 .cc-modal__close {
  color: #6b6459;
}

body.portal-body .cc-row__badge,
body.template-404 .cc-row__badge {
  color: #6e5324;
  border-color: #e7e2d5;
}

body.portal-body .cc-switch__track,
body.template-404 .cc-switch__track {
  background: #efebe3;
  border-color: #e7e2d5;
}

body.portal-body .cc-switch__track::after,
body.template-404 .cc-switch__track::after {
  background: #fff;
}

body.portal-body .cc-switch input:checked + .cc-switch__track,
body.template-404 .cc-switch input:checked + .cc-switch__track {
  background: rgba(184, 134, 62, 0.28);
  border-color: #b8863e;
}

body.portal-body .cc-switch input:checked + .cc-switch__track::after,
body.template-404 .cc-switch input:checked + .cc-switch__track::after {
  background: #b8863e;
}

@media (max-width: 720px) {
  .cc-floating-manage {
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }

  .cc-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-banner__actions {
    justify-content: stretch;
  }

  .cc-banner__actions .cc-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .cc-banner__actions .cc-btn--ghost {
    inline-size: 100%;
    block-size: 48px;
  }

  .cc-modal {
    place-items: end stretch;
    padding: 0;
  }

  .cc-modal__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 0;
  }
}
