.cookie-consent-layer {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 10, 18, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.cookie-consent-layer[hidden] {
  display: none;
}

body.cookie-consent-open {
  overflow: hidden;
}

.cookie-consent-dialog {
  width: min(680px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: clamp(26px, 4vw, 42px);
  border-top: 5px solid #d7282f;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  color: #16191d;
  outline: none;
}

.cookie-consent-brand {
  display: inline-flex;
  margin-bottom: 22px;
  color: #d7282f;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.cookie-consent-dialog h2 {
  max-width: 560px;
  margin: 0 0 18px;
  color: #071321;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.cookie-consent-dialog p {
  margin: 0 0 14px;
  color: #4d535b;
  font-size: 0.98rem;
  line-height: 1.55;
}

.cookie-consent-dialog a {
  color: #bd1e25;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent-meta {
  font-size: 0.86rem !important;
  color: #70757c !important;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cookie-consent-button {
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid #d7282f;
  border-radius: 2px;
  background: transparent;
  color: #c21f27;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
  background: #fff1f1;
  outline: 3px solid rgba(215, 40, 47, 0.18);
  outline-offset: 2px;
}

.cookie-consent-button--primary {
  margin-left: auto;
  background: #d7282f;
  color: #fff;
}

.cookie-consent-button[data-consent-action="reject"] {
  background: #d7282f;
  color: #fff;
}

.cookie-consent-button--primary:hover,
.cookie-consent-button--primary:focus-visible,
.cookie-consent-button[data-consent-action="reject"]:hover,
.cookie-consent-button[data-consent-action="reject"]:focus-visible {
  background: #b91c23;
}

.cookie-consent-settings-intro {
  padding-bottom: 18px;
  border-bottom: 1px solid #e3e5e7;
}

.cookie-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e3e5e7;
}

.cookie-consent-category h3 {
  margin: 0;
  color: #071321;
  font-size: 1.13rem;
}

.cookie-consent-category p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
}

.cookie-consent-required {
  align-self: center;
  color: #24704a;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  align-items: center;
}

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

.cookie-switch span {
  width: 52px;
  height: 30px;
  border-radius: 99px;
  background: #c9cdd1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 180ms ease;
}

.cookie-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.24);
  content: "";
  transition: transform 180ms ease;
}

.cookie-switch input:checked + span {
  background: #d7282f;
}

.cookie-switch input:checked + span::after {
  transform: translateX(22px);
}

.cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(215, 40, 47, 0.24);
  outline-offset: 3px;
}

.footer-cookie-settings {
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 620px) {
  .cookie-consent-layer {
    align-items: end;
    padding: 0;
  }

  .cookie-consent-dialog {
    width: 100%;
    max-height: 92dvh;
    padding: 26px 22px calc(24px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .cookie-consent-dialog h2 {
    font-size: 2.2rem;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent-button,
  .cookie-consent-button--primary {
    width: 100%;
    margin-left: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cookie-switch span,
  .cookie-switch span::after {
    transition: none;
  }
}

.cookie-info-page {
  min-height: 100vh;
  background: #f4f1ea;
  color: #171b20;
}

.cookie-info-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(22px, 5vw, 72px);
  background: #071321;
  color: #fff;
}

.cookie-info-header a {
  color: inherit;
  text-decoration: none;
}

.cookie-info-header .cookie-info-mark {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.cookie-info-header img {
  width: 90px;
  height: 54px;
  object-fit: contain;
}

.cookie-info-main {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 0;
}

.cookie-info-main .eyebrow {
  margin: 0 0 18px;
  color: #c62128;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.cookie-info-main h1 {
  max-width: 780px;
  margin: 0 0 28px;
  color: #071321;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.cookie-info-lead {
  max-width: 760px;
  margin: 0 0 58px;
  color: #4b5158;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.cookie-info-section {
  padding: 34px 0;
  border-top: 1px solid #cfd1cf;
}

.cookie-info-section h2 {
  margin: 0 0 18px;
  color: #071321;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1;
}

.cookie-info-section p,
.cookie-info-section li {
  color: #4b5158;
  line-height: 1.65;
}

.cookie-info-section a {
  color: #bd1e25;
  font-weight: 800;
}

.cookie-info-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.cookie-info-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.cookie-info-table th,
.cookie-info-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e2e3e2;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.cookie-info-table th {
  background: #071321;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-info-table td {
  color: #4b5158;
  font-size: 0.92rem;
}

.cookie-info-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cookie-info-controls .footer-cookie-settings {
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid #d7282f;
  background: #d7282f;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.cookie-info-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  justify-content: space-between;
  padding: 28px clamp(22px, 5vw, 72px);
  background: #071321;
  color: rgba(255, 255, 255, 0.75);
}

.cookie-info-footer a {
  color: #fff;
}

@media (max-width: 620px) {
  .cookie-info-header {
    min-height: 70px;
  }

  .cookie-info-header img {
    width: 74px;
    height: 44px;
  }

  .cookie-info-main {
    width: min(100% - 36px, 920px);
  }
}
