.caw-footer__consent {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.caw-footer__consent:hover,
.caw-footer__consent:focus-visible {
  color: #fff;
}

.caw-consent-banner {
  position: fixed;
  z-index: 99990;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  left: clamp(0.75rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(72rem, calc(100% - clamp(1.5rem, 4vw, 3rem)));
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 1.25rem;
  background: linear-gradient(112deg, #062f5c 0%, #073f75 72%, #0b527d 100%);
  color: #fff;
  box-shadow: 0 24px 70px rgb(3 26 51 / 0.32);
}

.caw-consent-banner[hidden],
.caw-consent-layer[hidden] {
  display: none;
}

.caw-consent-banner__mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #f3bf58;
  color: #fff;
}

.caw-consent-banner__mark .caw-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.caw-consent-banner__copy p {
  margin: 0;
}

.caw-consent-banner__copy .caw-consent-banner__title {
  margin-bottom: 0.28rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.caw-consent-banner__copy p:not(.caw-consent-banner__title) {
  max-width: 50rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}

.caw-consent-banner__copy a,
.caw-consent-panel a {
  color: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-underline-offset: 0.22em;
}

.caw-consent-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(10.25rem, auto));
  gap: 0.55rem;
}

.caw-consent-button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font: 700 0.84rem/1 var(--caw-font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--caw-duration-fast) var(--caw-ease), background var(--caw-duration-fast) var(--caw-ease);
}

.caw-consent-button:hover {
  transform: translateY(-1px);
}

.caw-consent-button:focus-visible,
.caw-consent-panel__close:focus-visible,
.caw-footer__consent:focus-visible {
  outline: 3px solid #f2c56d;
  outline-offset: 3px;
}

.caw-consent-button--accept,
.caw-consent-button--save {
  background: #26b84c;
  color: #fff;
}

.caw-consent-button--reject {
  border-color: #f3bf58;
  background: #f3bf58;
  color: #183249;
}

.caw-consent-button--settings {
  grid-column: 1 / -1;
  min-height: auto;
  padding-block: 0.35rem;
  border: 0;
  background: transparent;
  color: #d9f2f1;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.caw-consent-layer {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.caw-consent-layer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(3 25 47 / 0.64);
  backdrop-filter: blur(5px);
  cursor: default;
}

.caw-consent-panel {
  position: relative;
  width: min(38rem, 100%);
  max-height: min(44rem, calc(100vh - 2rem));
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.35rem;
  background: #f7f3ec;
  color: #17322f;
  box-shadow: 0 30px 90px rgb(3 25 47 / 0.36);
}

.caw-consent-panel__header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.caw-consent-panel__header .caw-eyebrow {
  margin: 0 0 0.25rem;
  color: #08707b;
}

.caw-consent-panel__header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
}

.caw-consent-panel__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #ccd9d5;
  border-radius: 50%;
  background: #fff;
  color: #17322f;
  font: 400 1.65rem/1 sans-serif;
  cursor: pointer;
}

.caw-consent-panel__intro {
  margin: 0.7rem 0 1.25rem;
  color: #52625d;
  line-height: 1.55;
}

.caw-consent-option {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background: #fff;
  cursor: pointer;
}

.caw-consent-option > div,
.caw-consent-option > span:first-child {
  display: grid;
  gap: 0.25rem;
}

.caw-consent-option strong {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.98rem;
}

.caw-consent-option__icon {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
}

.caw-consent-option--necessary {
  border-color: #bfe3c8;
  background: #eef9f0;
}

.caw-consent-option--necessary .caw-consent-option__icon {
  background: #2fb356;
  color: #fff;
}

.caw-consent-option--statistics {
  border-color: #bfd9eb;
  background: #eef7fc;
}

.caw-consent-option--statistics .caw-consent-option__icon {
  background: #1875a4;
  color: #fff;
}

.caw-consent-option--marketing {
  border-color: #ecd5a4;
  background: #fff8e9;
}

.caw-consent-option--marketing .caw-consent-option__icon {
  background: #e5a933;
  color: #17322f;
}

.caw-consent-option strong + span {
  color: #5d6d68;
  font-size: 0.84rem;
  line-height: 1.45;
}

.caw-consent-required {
  flex: 0 0 auto;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: #e7f6e9;
  color: #216c3b;
  font-size: 0.72rem;
  font-weight: 800;
}

.caw-consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 1.75rem;
}

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

.caw-consent-switch > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5d1;
  transition: background var(--caw-duration-fast) var(--caw-ease);
}

.caw-consent-switch > span::after {
  position: absolute;
  top: 0.23rem;
  left: 0.24rem;
  width: 1.29rem;
  height: 1.29rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.18);
  content: "";
  transition: transform var(--caw-duration-fast) var(--caw-ease);
}

.caw-consent-switch input:checked + span {
  background: #1875a4;
}

.caw-consent-option--marketing .caw-consent-switch input:checked + span {
  background: #d89a27;
}

.caw-consent-switch input:checked + span::after {
  transform: translateX(1.33rem);
}

.caw-consent-switch input:focus-visible + span {
  outline: 3px solid rgb(22 140 152 / 0.3);
  outline-offset: 3px;
}

.caw-consent-panel__footer {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 0;
}

.caw-consent-panel__footer a {
  color: #0b5c87;
}

.caw-consent-panel .caw-consent-button--save {
  background: #073f75;
}

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

@media (max-width: 58rem) {
  .caw-consent-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .caw-consent-banner__actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .caw-consent-button--settings {
    grid-column: auto;
    min-height: 2.75rem;
  }
}

@media (max-width: 38rem) {
  .caw-consent-banner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
  }

  .caw-consent-banner__mark {
    display: none;
  }

  .caw-consent-banner__copy p:not(.caw-consent-banner__title) {
    font-size: 0.82rem;
  }

  .caw-consent-banner__actions {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
  }

  .caw-consent-button--settings {
    grid-column: 1 / -1;
  }

  .caw-consent-option {
    align-items: flex-start;
  }

  .caw-consent-panel__footer {
    align-items: stretch;
    flex-direction: column;
  }
}
