.cookie-consent,
.cookie-manage-tab {
  position: fixed;
  z-index: 1100;
  color: #222848;
  background: #c8a977;
  font-family: var(--kcs-font-family);
  box-shadow: 0 6px 18px rgb(0 0 0 / 28%);
}

.cookie-consent {
  bottom: 10px;
  left: 10px;
  width: min(520px, calc(100% - 20px));
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  overflow: auto;
  padding: 18px 19px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-consent[hidden],
.cookie-consent [hidden],
.cookie-manage-tab[hidden] {
  display: none;
}

.cookie-consent-header {
  position: relative;
  display: grid;
  min-height: 32px;
  align-items: center;
  padding-inline: 36px;
  text-align: center;
}

.cookie-consent h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.cookie-close {
  position: absolute;
  inset: 0 0 auto auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font-size: 25px;
  line-height: 1;
}

#cookie-consent-message {
  margin: 22px 0 28px;
}

.cookie-categories {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.cookie-category {
  position: relative;
  border-radius: 3px;
  background: rgb(255 255 255 / 26%);
}

.cookie-category summary {
  min-height: 44px;
  padding: 12px 10px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-category-optional summary {
  padding-right: 58px;
}

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

.cookie-always-active {
  float: right;
  color: #26451b;
  font-size: 12px;
}

.cookie-category input {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  width: 42px;
  height: 24px;
  border: 1px solid #555d76;
  border-radius: 999px;
  background: #f4f3f0;
  cursor: pointer;
}

.cookie-category input::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #555d76;
  content: "";
}

.cookie-category input:checked {
  background: #083781;
}

.cookie-category input:checked::before {
  left: auto;
  right: 3px;
  background: #fff;
}

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

.cookie-actions button {
  min-height: 45px;
  padding: 7px 5px;
  border: 1px solid #083781;
  border-radius: 5px;
  color: #fff;
  background: #083781;
  font: inherit;
}

.cookie-actions button:hover {
  background: #052b69;
}

.cookie-actions button:disabled {
  opacity: .7;
}

.cookie-policy-link {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  color: inherit;
  text-decoration: underline;
}

.cookie-consent :focus-visible,
.cookie-manage-tab:focus-visible,
.cookie-text-button:focus-visible {
  outline: 2px solid #1d234b;
  outline-offset: 3px;
}

.cookie-error {
  padding: 8px;
  border-radius: 4px;
  color: #761322;
  background: #fff4ef;
}

.cookie-manage-tab {
  left: clamp(10px, 3vw, 40px);
  bottom: 0;
  min-height: 42px;
  padding: 6px 14px;
  border: 0;
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.plant-map-consent {
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: center;
  padding: 12px 12px 54px;
  text-align: center;
  font-size: 13px;
}

.plant-map-consent p {
  margin: 0 0 5px;
}

.cookie-text-button {
  border: 0;
  border-radius: 3px;
  color: var(--kcs-navy);
  background: transparent;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-policy-categories dd {
  margin-bottom: 12px;
}

@media (max-width: 370px) {
  .cookie-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
