.cookie-consent,
.cookie-modal {
  color: #172522;
  font-family: Montserrat, Arial, sans-serif;
}

.cookie-consent[hidden],
.cookie-modal[hidden],
.cookie-details[hidden],
.cookie-settings-button[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent__banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  width: min(100%, 1040px);
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 80px rgba(7, 17, 31, .22);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.cookie-consent__eyebrow {
  display: inline-flex;
  margin-bottom: .45rem;
  color: #255b57;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cookie-consent h2,
.cookie-modal h2,
.cookie-choice h3 {
  margin: 0;
  color: #10221f;
  font-weight: 900;
}

.cookie-consent h2,
.cookie-modal h2 {
  font-size: 1.25rem;
}

.cookie-consent p,
.cookie-choice p {
  margin: .4rem 0 0;
  color: #5d6a68;
  line-height: 1.55;
}

.cookie-consent__details-link {
  display: inline-flex;
  margin-top: .7rem;
  border: 0;
  background: transparent;
  color: #255b57;
  font-weight: 900;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(235, 193, 121, .9);
  text-decoration-thickness: .16rem;
  text-underline-offset: .22rem;
  cursor: pointer;
}

.cookie-consent__details-link:hover,
.cookie-consent__details-link:focus {
  color: #10221f;
}

.cookie-consent__actions,
.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  justify-content: flex-end;
}

.cookie-consent__button,
.cookie-settings-button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
  padding: .72rem .95rem;
  cursor: pointer;
}

.cookie-consent__button--primary {
  border: 1px solid #255b57;
  background: #255b57;
  color: #fff;
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus {
  border-color: #10221f;
  background: #10221f;
}

.cookie-consent__button--ghost {
  border: 1px solid rgba(37, 91, 87, .24);
  background: #fff;
  color: #10221f;
}

.cookie-consent__button--ghost:hover,
.cookie-consent__button--ghost:focus {
  border-color: rgba(37, 91, 87, .5);
  background: #f4f7f6;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2010;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, .68);
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(7, 17, 31, .35);
}

.cookie-modal__header,
.cookie-modal__footer {
  padding: 1.25rem;
}

.cookie-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(37, 91, 87, .12);
}

.cookie-modal__close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(37, 91, 87, .16);
  border-radius: 8px;
  background: #f4f7f6;
  color: #10221f;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal__body {
  display: grid;
  gap: .8rem;
  padding: 1.25rem;
}

.cookie-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(37, 91, 87, .12);
  border-radius: 8px;
  background: #f9fbfa;
}

.cookie-choice h3 {
  font-size: 1rem;
}

.cookie-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-choice__required {
  border-radius: 8px;
  background: rgba(37, 91, 87, .1);
  color: #255b57;
  font-size: .8rem;
  font-weight: 900;
  padding: .45rem .7rem;
}

.cookie-switch {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #c8d2d0;
  transition: background .18s ease;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(7, 17, 31, .18);
  transition: transform .18s ease;
}

.cookie-choice input:checked + .cookie-switch {
  background: #255b57;
}

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

.cookie-choice:focus-within {
  border-color: #255b57;
  box-shadow: 0 0 0 3px rgba(37, 91, 87, .14);
}

.cookie-details-opener {
  display: flex;
  justify-content: flex-start;
  padding: .1rem 0 .25rem;
}

.cookie-details {
  display: grid;
  gap: 1rem;
  margin-top: .4rem;
  padding: 1.1rem;
  border: 1px solid rgba(37, 91, 87, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 247, 246, .96), rgba(255, 255, 255, .98));
}

.cookie-details:focus {
  outline: 3px solid rgba(235, 193, 121, .45);
  outline-offset: 3px;
}

.cookie-details__header h3 {
  margin: 0;
  color: #10221f;
  font-size: 1.05rem;
  font-weight: 900;
}

.cookie-details__header p,
.cookie-details__empty {
  margin: .55rem 0 0;
  color: #5d6a68;
  line-height: 1.6;
}

.cookie-details__list {
  display: grid;
  gap: .8rem;
}

.cookie-details__item {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid rgba(37, 91, 87, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 36, 34, .06);
}

.cookie-details__name {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-details__name strong {
  color: #10221f;
  font-size: 1.05rem;
}

.cookie-details__name span {
  border-radius: 8px;
  background: rgba(37, 91, 87, .1);
  color: #255b57;
  font-size: .78rem;
  font-weight: 900;
  padding: .4rem .6rem;
}

.cookie-details dl {
  display: grid;
  gap: .7rem;
  margin: 0;
}

.cookie-details dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: .75rem;
}

.cookie-details dt {
  color: #255b57;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cookie-details dd {
  margin: 0;
  color: #5d6a68;
  line-height: 1.55;
}

.cookie-modal__footer {
  border-top: 1px solid rgba(37, 91, 87, .12);
}

.cookie-settings-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1990;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(7, 17, 31, .84);
  color: #fff;
  box-shadow: 0 16px 42px rgba(7, 17, 31, .22);
  backdrop-filter: blur(12px);
}

.cookie-settings-button:hover,
.cookie-settings-button:focus {
  background: #10221f;
}

[data-consent-category]:not([data-consent-loaded]) {
  display: none;
}

.cookie-blocked {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, .78);
  text-align: center;
}

.cookie-blocked p {
  max-width: 320px;
  margin: 0 0 1rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .cookie-consent__banner,
  .cookie-choice {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions,
  .cookie-modal__footer {
    justify-content: stretch;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .cookie-details dl div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .cookie-settings-button {
    display: inline-grid;
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    min-height: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    padding: 0;
  }

  .cookie-settings-button::before {
    content: "";
    display: block;
    width: 36px;
    height: 36px;
    margin: auto;
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12.5C20.72 12.58 20.43 12.62 20.14 12.62C18.57 12.62 17.3 11.35 17.3 9.78C17.3 9.17 17.49 8.61 17.82 8.14C16.61 7.75 15.73 6.62 15.73 5.28C15.73 4.82 15.84 4.38 16.03 4C15.09 3.52 14.03 3.25 12.9 3.25C8.66 3.25 5.25 6.69 5.25 10.92C5.25 15.17 8.69 18.75 12.94 18.75C17 18.75 20.33 15.59 21 12.5Z' fill='%23D99A45'/%3E%3Cpath d='M21 12.5C20.72 12.58 20.43 12.62 20.14 12.62C18.57 12.62 17.3 11.35 17.3 9.78C17.3 9.17 17.49 8.61 17.82 8.14C16.61 7.75 15.73 6.62 15.73 5.28C15.73 4.82 15.84 4.38 16.03 4C15.09 3.52 14.03 3.25 12.9 3.25C8.66 3.25 5.25 6.69 5.25 10.92C5.25 15.17 8.69 18.75 12.94 18.75C17 18.75 20.33 15.59 21 12.5Z' stroke='%238A5720' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='9.5' cy='9.5' r='1.25' fill='%235E3416'/%3E%3Ccircle cx='13.5' cy='13.5' r='1.25' fill='%235E3416'/%3E%3Ccircle cx='10' cy='15' r='1' fill='%235E3416'/%3E%3Ccircle cx='14.4' cy='8.4' r='.85' fill='%235E3416'/%3E%3Cpath d='M18.1 6.25C18.1 7.02 17.48 7.65 16.7 7.65C16.63 7.65 16.56 7.64 16.49 7.63C16.03 7.01 15.76 6.25 15.76 5.42C15.76 5.01 15.83 4.61 15.95 4.25C16.64 4.44 18.1 5.03 18.1 6.25Z' fill='%23F1C977' opacity='.85'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .cookie-settings-button:focus {
    outline: 3px solid rgba(235, 193, 121, .55);
    outline-offset: 3px;
  }

  .cookie-settings-button {
    font-size: 0;
  }

  .cookie-settings-button * {
    font-size: 0;
  }
}
