.cookie-notice {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: min(440px, 100vw - 48px);
  max-height: calc(100dvh - 48px);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(16, 74, 85, 0.16);
  border-radius: 16px;
  color: #104a55;
  background: #fffaf1;
  box-shadow: 0 18px 50px rgba(2, 21, 24, 0.24);
  flex-direction: column;
  gap: 20px;
}

.has-public-actions .cookie-notice {
  bottom: calc(var(--public-actions-height) + env(safe-area-inset-bottom) + 12px);
  max-height: calc(100dvh - var(--public-actions-height) - env(safe-area-inset-bottom) - 36px);
}

.cookie-notice__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #ff9442;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

.cookie-notice h2,
.cookie-preferences h2,
.cookie-category h3 {
  margin: 0;
  color: #104a55;
}

.cookie-notice h2 {
  font-size: 24px;
  line-height: 30px;
}

.cookie-notice p,
.cookie-preferences__body > p,
.cookie-category p {
  margin: 0;
  color: #555f61;
}

.cookie-notice p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 21px;
}

.cookie-notice a,
.cookie-preferences a {
  color: #104a55;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__actions {
  display: grid;
  gap: 10px;
}

.cookie-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #104a55;
  border-radius: 8px;
  color: #104a55;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.cookie-action--primary {
  border-color: #ff9442;
  color: #061e22;
  background: #ff9442;
}

.cookie-action--link {
  min-height: 36px;
  padding-block: 6px;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-action:hover,
.cookie-action:focus-visible {
  outline: 0;
}

.cookie-action--primary:hover,
.cookie-action--primary:focus-visible {
  background: #ffad6f;
}

.cookie-action--secondary:hover,
.cookie-action--secondary:focus-visible {
  color: #fff5e0;
  background: #104a55;
}

.cookie-action--link:hover,
.cookie-action--link:focus-visible {
  color: #104a55;
  background: rgba(16, 74, 85, 0.08);
}

.has-cookie-preferences-open {
  overflow: hidden;
}

.cookie-preferences {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-preferences__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 21, 24, 0.58);
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cookie-preferences__dialog {
  position: relative;
  display: flex;
  width: min(680px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border-radius: 16px;
  background: #fffaf1;
  box-shadow: 0 24px 70px rgba(2, 21, 24, 0.34);
  flex-direction: column;
}

.cookie-preferences__dialog:focus {
  outline: 0;
}

.cookie-preferences__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(16, 74, 85, 0.12);
}

.cookie-preferences__header h2 {
  font-size: 25px;
  line-height: 31px;
}

.cookie-preferences__close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #104a55;
  background: rgba(16, 74, 85, 0.08);
  cursor: pointer;
}

.cookie-preferences__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.cookie-preferences__close:hover,
.cookie-preferences__close:focus-visible {
  outline: 0;
  color: #fff5e0;
  background: #104a55;
}

.cookie-preferences__body {
  padding: 20px 28px;
  overflow-y: auto;
}

.cookie-preferences__body > p {
  font-size: 16px;
  line-height: 21px;
}

.cookie-category-list {
  display: grid;
  margin-top: 18px;
  gap: 10px;
}

.cookie-category {
  display: grid;
  min-height: 88px;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(217, 217, 217, 0.62);
  grid-template-columns: minmax(0, 1fr) auto;
}

.cookie-category h3 {
  font-size: 17px;
  line-height: 21px;
}

.cookie-category--required {
  display: block;
}

.cookie-required-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}

.cookie-required-header h3 {
  min-width: 0;
  margin-right: auto;
}

.cookie-required-status {
  flex: 0 0 auto;
  color: #104a55;
  font-size: 17px;
  font-weight: 700;
  line-height: 21px;
  white-space: nowrap;
  transform: translateY(1px);
}

@media (min-width: 768px) {
  .cookie-category--required {
    display: grid;
    align-items: start;
    column-gap: 18px;
    row-gap: 5px;
    grid-template-columns: minmax(0, 1fr) 46px;
  }
  .cookie-required-header {
    display: contents;
  }
  .cookie-required-header h3 {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
  }
  .cookie-required-status {
    grid-column: 1/-1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  .cookie-switch--required {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
  }
  .cookie-category.cookie-category--required p {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }
}
.cookie-category p {
  margin-top: 5px;
  font-size: 16px;
  line-height: 18px;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

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

.cookie-switch__track {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  border-radius: 13px;
  background: #a8abad;
  transition: background-color 160ms ease;
}

.cookie-switch__track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(2, 21, 24, 0.26);
  content: "";
  transition: transform 160ms ease;
}

.cookie-switch input:checked + .cookie-switch__track {
  background: #104a55;
}

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

.cookie-switch input:focus-visible + .cookie-switch__track {
  outline: 2px solid #ff9442;
  outline-offset: 3px;
}

.cookie-switch--required {
  cursor: default;
}

.cookie-preferences__actions {
  display: grid;
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(16, 74, 85, 0.12);
  gap: 10px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

@media (max-width: 767px) {
  .cookie-notice {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px 18px 16px;
    border-radius: 14px;
    gap: 16px;
  }
  .cookie-notice h2 {
    font-size: 21px;
    line-height: 27px;
  }
  .cookie-notice p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 19px;
  }
  .cookie-action {
    min-height: 42px;
  }
  .cookie-preferences {
    align-items: flex-end;
    padding: 0;
  }
  .cookie-preferences__dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 18px 18px 0 0;
  }
  .cookie-preferences__header {
    padding: 20px 18px 14px;
  }
  .cookie-preferences__header h2 {
    font-size: 21px;
    line-height: 27px;
  }
  .cookie-preferences__body {
    padding: 16px 18px;
  }
  .cookie-category {
    min-height: 80px;
    padding: 14px;
    gap: 12px;
  }
  .cookie-category--required p {
    margin-top: 12px;
  }
  .cookie-category h3 {
    font-size: 17px;
  }
  .cookie-category p {
    font-size: 16px;
    line-height: 17px;
  }
  .cookie-preferences__actions {
    padding: 14px 18px max(18px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
  }
}
.cookie-notice, .cookie-preferences {
  font-family: Arial, sans-serif;
  text-align: left;
  letter-spacing: normal;
}

.cookie-notice *, .cookie-preferences * {
  box-sizing: border-box;
}

.cookie-notice[hidden], .cookie-preferences[hidden] {
  display: none !important;
}

.cookie-preferences button {
  font-family: inherit;
}

.cookie-preferences__backdrop, .cookie-preferences__close {
  border: 0;
  padding: 0;
}

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

.cookie-notice h2,
.cookie-preferences h2,
.cookie-category h3 {
  font-weight: 700;
}

.cookie-settings-link {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
