.cookie-consent,
.cookie-consent__launcher {
  --consent-gold: #c8a977;
  position: fixed;
  z-index: 1050;
  color: #242027;
  background: var(--consent-gold);
  box-shadow: 0 8px 25px rgba(23, 32, 51, .28);
}

.cookie-consent {
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  width: min(520px, calc(100% - 20px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 16px 19px;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.55;
}

.cookie-consent [hidden],
.cookie-consent[hidden],
.cookie-consent__launcher[hidden] {
  display: none !important;
}

.cookie-consent__header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  text-align: center;
}

.cookie-consent__header h2 {
  grid-column: 2;
  margin: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.cookie-consent__close {
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: 700 1.55rem/1 Arial, sans-serif;
}

.cookie-consent > p {
  margin: 20px 0 27px;
}

.cookie-consent__categories {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
}

.cookie-consent__category {
  position: relative;
  border-radius: 4px;
  background: #e7d5b8;
}

.cookie-consent__category summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 68px 8px 10px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.cookie-consent__category summary::-webkit-details-marker {
  display: none;
}

.cookie-consent__category summary::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(-45deg);
}

.cookie-consent__category details[open] > summary::before,
.cookie-consent__category[open] > summary::before {
  transform: rotate(45deg);
}

.cookie-consent__category--required summary {
  padding-right: 12px;
}

.cookie-consent__category--required summary span {
  margin-left: auto;
  color: #315c2a;
  font-size: .76rem;
  text-align: right;
}

.cookie-consent__category p {
  margin: 0;
  padding: 0 12px 12px;
}

.cookie-consent__switch {
  position: absolute;
  inset: 0 6px auto auto;
  display: grid;
  min-width: 54px;
  min-height: 44px;
  place-items: center;
  cursor: pointer;
}

.cookie-consent__switch input {
  appearance: none;
  width: 40px;
  height: 23px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #55545b;
  cursor: pointer;
}

.cookie-consent__switch input::before {
  display: block;
  width: 15px;
  height: 15px;
  margin: 3px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  content: '';
}

.cookie-consent__switch input:checked {
  background: #003087;
}

.cookie-consent__switch input:checked::before {
  transform: translateX(17px);
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.cookie-consent__actions button,
.cookie-settings-button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #242027;
  background: #fff;
  font: inherit;
  line-height: 1.3;
}

.cookie-consent__actions .cookie-consent__primary,
.cookie-settings-button {
  color: #fff;
  background: #003087;
}

.cookie-consent__actions button:hover,
.cookie-settings-button:hover {
  box-shadow: inset 0 0 0 2px currentColor;
}

.cookie-consent :focus-visible,
.cookie-consent__launcher:focus-visible,
.cookie-settings-button:focus-visible {
  outline: 2px solid #003087;
  outline-offset: 2px;
}

.cookie-consent__policy-link {
  margin-top: 9px;
  text-align: center;
}

.cookie-consent__policy-link a {
  color: #22274d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__launcher {
  bottom: 0;
  left: max(12px, min(3vw, 40px), env(safe-area-inset-left));
  min-height: 44px;
  padding: 8px 14px max(8px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 9px 9px 0 0;
  font-size: .8rem;
  font-weight: 650;
}

.cookie-map-notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 60px 18px 18px;
  color: var(--brand-navy);
  text-align: center;
}

.cookie-map-notice p {
  max-width: 34ch;
  margin: 0;
}

.cookie-settings-button {
  padding-inline: 14px;
  font-weight: 600;
}

.cookie-policy {
  max-width: 960px;
  color: var(--ink);
  line-height: 1.75;
}

.cookie-policy section + section {
  margin-top: 2rem;
}

.cookie-policy h2 {
  color: var(--brand-navy);
  font-size: 1.3rem;
  font-weight: 750;
}

.cookie-policy .table-responsive {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cookie-policy table {
  margin: 0;
  font-size: .87rem;
}

.cookie-policy thead th {
  background: #f1f4f9;
}

.cookie-policy code {
  color: inherit;
  overflow-wrap: anywhere;
}

@media (max-width: 340px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
