.cookie-consent-banner {
  position: fixed;
  z-index: 10000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px;
  color: #1f2937;
  background: #fff;
  border-top: 4px solid #147d74;
  box-shadow: 0 -4px 24px rgb(0 0 0 / 18%);
}

.cookie-consent-banner[hidden],
.cookie-consent-dialog[hidden] {
  display: none;
}

.cookie-consent-banner__inner {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cookie-consent-banner__content {
  max-width: 760px;
}

.cookie-consent-banner h2,
.cookie-consent-dialog h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 1.25rem;
}

.cookie-consent-banner p,
.cookie-consent-dialog p {
  margin: 0;
  line-height: 1.7;
}

.cookie-consent-banner__privacy,
.cookie-consent-dialog__privacy {
  margin-top: 8px !important;
}

.cookie-consent-banner a,
.cookie-consent-dialog a {
  color: #075f59;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-banner__actions {
  display: grid;
  flex: 0 0 240px;
  gap: 8px;
}

.cookie-consent-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid #147d74;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.cookie-consent-button--primary {
  color: #fff;
  background: #147d74;
}

.cookie-consent-button--secondary {
  color: #075f59;
  background: #fff;
}

.cookie-consent-button--text {
  min-height: 36px;
  padding: 4px;
  color: #075f59;
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}

.cookie-consent-button:hover {
  filter: brightness(0.92);
}

.cookie-consent-button:focus-visible,
.cookie-consent-dialog__close:focus-visible,
.site-footer__cookie-settings:focus-visible,
.cookie-consent-option:has(input:focus-visible) {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.cookie-consent-dialog {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
}

.cookie-consent-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 55%);
}

.cookie-consent-dialog__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  padding: 32px;
  overflow-y: auto;
  color: #1f2937;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 44px rgb(0 0 0 / 25%);
}

.cookie-consent-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #172033;
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent-dialog__current {
  margin-bottom: 12px !important;
  padding: 10px 12px;
  background: #eaf7f5;
  border-left: 4px solid #147d74;
}

.cookie-consent-dialog fieldset {
  margin: 22px 0;
  padding: 0;
  border: 0;
}

.cookie-consent-dialog legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.cookie-consent-option {
  display: flex;
  margin-top: 10px;
  padding: 14px;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}

.cookie-consent-option:has(input:checked) {
  background: #f0faf8;
  border-color: #147d74;
}

.cookie-consent-option input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #147d74;
}

.cookie-consent-option strong,
.cookie-consent-option small {
  display: block;
}

.cookie-consent-option small {
  margin-top: 4px;
  color: #4b5563;
  line-height: 1.5;
}

.cookie-consent-dialog__actions {
  display: flex;
  gap: 12px;
}

.cookie-consent-dialog__actions .cookie-consent-button {
  flex: 1;
}

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

.site-footer__cookie-settings {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-footer__cookie-settings:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .cookie-consent-banner {
    padding: 16px;
  }

  .cookie-consent-banner__inner {
    display: block;
  }

  .cookie-consent-banner__actions {
    margin-top: 16px;
  }

  .cookie-consent-dialog__panel {
    padding: 28px 20px 22px;
  }

  .cookie-consent-dialog__actions {
    display: grid;
  }

  .site-footer__utility {
    flex-wrap: wrap;
  }
}
