:root {
  --koe-cookie-blue: #0d4f86;
  --koe-cookie-blue-dark: #07365e;
  --koe-cookie-green: #55a630;
  --koe-cookie-text: #1d2a36;
  --koe-cookie-muted: #617080;
  --koe-cookie-border: #d9e1e8;
  --koe-cookie-surface: #ffffff;
}

body.koe-cookie-modal-open {
  overflow: hidden;
}

.koe-cookie-banner[hidden],
.koe-cookie-modal[hidden],
.koe-cookie-settings[hidden] {
  display: none !important;
}

.koe-cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 560px);
  gap: 1rem;
  max-height: 85vh;
  padding: .65rem clamp(1rem, 2.5vw, 2.8rem);
  overflow-y: auto;
  color: var(--koe-cookie-text);
  background: var(--koe-cookie-surface);
  border-top: 3px solid var(--koe-cookie-blue);
  box-shadow: 0 -10px 35px rgba(0, 34, 64, .22);
  font-family: Poppins, Arial, sans-serif;
  font-size: .72rem;
}

.koe-cookie-banner h2,
.koe-cookie-modal h2 {
  margin: .1rem 0 .4rem;
  color: var(--koe-cookie-blue-dark);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.koe-cookie-banner h2 {
  font-size: 1rem;
}

.koe-cookie-banner p {
  max-width: 1100px;
  margin: 0 0 .25rem;
  line-height: 1.35;
}

.koe-cookie-banner a {
  color: var(--koe-cookie-blue);
  font-weight: 600;
  text-decoration: underline;
}

.koe-cookie-eyebrow {
  margin: 0 !important;
  color: var(--koe-cookie-blue);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.koe-cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  align-items: center;
  justify-content: center;
  gap: .65rem;
}

.koe-cookie-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.2rem;
  margin-top: .5rem;
}

.koe-cookie-quick__option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .45rem;
  min-height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.koe-cookie-quick__option--required {
  cursor: default;
}

.koe-cookie-quick__option strong {
  color: #343434;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.koe-cookie-quick__required-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  background: #c7cbd0;
  font-size: .8rem;
  font-weight: 700;
}

.koe-cookie-quick-details {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  padding: 0;
  border: 0;
  color: #444;
  background: transparent;
  font: 600 .67rem/1.2 Poppins, Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.koe-cookie-button {
  min-height: 36px;
  padding: .48rem .8rem;
  border: 2px solid var(--koe-cookie-blue);
  border-radius: 999px;
  font: 600 .78rem/1.2 Poppins, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}

.koe-cookie-button:hover {
  transform: translateY(-1px);
}

.koe-cookie-button:focus-visible,
.koe-cookie-modal__close:focus-visible,
.koe-cookie-settings:focus-visible,
.koe-cookie-switch input:focus-visible + span {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.koe-cookie-button--primary {
  color: #fff;
  background: var(--koe-cookie-blue);
}

.koe-cookie-button--primary:hover {
  background: var(--koe-cookie-blue-dark);
}

.koe-cookie-button--secondary,
.koe-cookie-button--link {
  color: var(--koe-cookie-blue);
  background: #fff;
}

.koe-cookie-button--link {
  border-color: transparent;
  text-decoration: underline;
}

.koe-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: Poppins, Arial, sans-serif;
}

.koe-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 24, 42, .68);
}

.koe-cookie-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  color: var(--koe-cookie-text);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.koe-cookie-modal__header,
.koe-cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.koe-cookie-modal__header {
  border-bottom: 1px solid var(--koe-cookie-border);
}

.koe-cookie-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--koe-cookie-border);
}

.koe-cookie-modal__close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--koe-cookie-blue-dark);
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.koe-cookie-modal__body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}

.koe-cookie-category {
  margin-top: .8rem;
  border: 1px solid var(--koe-cookie-border);
  border-radius: 6px;
  background: #fff;
}

.koe-cookie-category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

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

.koe-cookie-category summary > span:first-child {
  display: flex;
  flex-direction: column;
}

.koe-cookie-category summary small {
  margin-top: .2rem;
  color: var(--koe-cookie-muted);
}

.koe-cookie-category__content {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--koe-cookie-border);
}

.koe-cookie-category__content > p {
  margin: 1rem 0;
}

.koe-cookie-required {
  flex: 0 0 auto;
  color: var(--koe-cookie-green);
  font-size: .8rem;
  font-weight: 700;
}

.koe-cookie-switch {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  margin: 0;
}

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

.koe-cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #a7b1ba;
  cursor: pointer;
  transition: background-color .2s;
}

.koe-cookie-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  content: '';
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: transform .2s;
}

.koe-cookie-switch input:checked + span {
  background: var(--koe-cookie-green);
}

.koe-cookie-switch input:checked + span::after {
  transform: translateX(22px);
}

.koe-cookie-quick .koe-cookie-switch {
  width: 22px;
  height: 22px;
}

.koe-cookie-quick .koe-cookie-switch span {
  border: 2px solid #3f3f3f;
  border-radius: 7px;
  background: #fff;
}

.koe-cookie-quick .koe-cookie-switch span::after {
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  content: '\2713';
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%) scale(0);
}

.koe-cookie-quick .koe-cookie-switch input:checked + span {
  border-color: #555;
  background: #555;
}

.koe-cookie-quick .koe-cookie-switch input:checked + span::after {
  transform: translate(-50%, -50%) scale(1);
}

.koe-cookie-switch em {
  font-style: normal;
}

.koe-cookie-table-wrap {
  overflow-x: auto;
}

.koe-cookie-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: .82rem;
}

.koe-cookie-table th,
.koe-cookie-table td {
  padding: .65rem;
  border: 1px solid var(--koe-cookie-border);
  text-align: left;
  vertical-align: top;
}

.koe-cookie-table th {
  color: var(--koe-cookie-blue-dark);
  background: #eef5fa;
}

.koe-cookie-settings {
  position: fixed;
  bottom: 0;
  left: 1rem;
  z-index: 9998;
  padding: .55rem .8rem;
  border: 0;
  border-radius: 6px 6px 0 0;
  color: #fff;
  background: var(--koe-cookie-blue-dark);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .2);
  font: 600 .75rem/1.2 Poppins, Arial, sans-serif;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .koe-cookie-banner {
    grid-template-columns: 1fr;
  }

  .koe-cookie-banner__actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .koe-cookie-banner {
    grid-template-columns: 1fr;
    gap: .6rem;
    padding: .8rem;
  }

  .koe-cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .koe-cookie-modal {
    padding: 0;
  }

  .koe-cookie-modal__dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .koe-cookie-modal__header,
  .koe-cookie-modal__body,
  .koe-cookie-modal__footer {
    padding: 1rem;
  }

  .koe-cookie-modal__footer {
    flex-direction: column-reverse;
  }

  .koe-cookie-modal__footer .koe-cookie-button {
    width: 100%;
  }
}
