/* Cookie dialog adapted from CBNL-new-website/Computer-bestel.nl, d942b6c. */
.cbnl-consent[hidden],
.cbnl-consent [hidden] {
  display: none !important;
}

.cbnl-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #313131;
  font:
    15px/1.4 Arial,
    sans-serif;
}

.cbnl-consent *,
.cbnl-consent *::before,
.cbnl-consent *::after {
  box-sizing: border-box;
}

.cbnl-consent__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(4px);
}

.cbnl-consent__dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: min(95vh, 900px);
  max-height: min(95dvh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
  animation: cbnl-cookie-enter 220ms ease-out;
}

.cbnl-consent__header {
  position: relative;
  flex: 0 0 auto;
  padding: 24px 64px 24px 30px;
  background: linear-gradient(135deg, #d30f40, #a30c32);
  color: #fff;
}

.cbnl-consent__header img {
  display: block;
  max-width: 100%;
  width: 230px;
  height: 40px;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.cbnl-consent h2 {
  margin: 0 0 8px;
  color: inherit;
  font:
    600 30px/1.2 Arial,
    sans-serif;
}

.cbnl-consent p {
  margin: 0;
}
.cbnl-consent__header p {
  font-size: 15px;
}

.cbnl-consent button {
  cursor: pointer;
  font:
    600 14px/1.3 Arial,
    sans-serif;
}

.cbnl-consent button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.cbnl-consent .cbnl-consent__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.cbnl-consent__close:hover {
  background: rgb(255 255 255 / 24%);
}

.cbnl-consent__body {
  min-height: 0;
  padding: 24px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cbnl-consent__options {
  display: grid;
  gap: 16px;
}

.cbnl-consent__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 2px solid #dedede;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.cbnl-consent__category:hover {
  border-color: #d30f40;
}
.cbnl-consent__category-copy {
  min-width: 0;
}
.cbnl-consent__category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b30c35;
  font-weight: 600;
}
.cbnl-consent__category-title svg {
  flex: 0 0 22px;
}
.cbnl-consent__category-description {
  display: block;
  margin-top: 7px;
  font-size: 13px;
}
.cbnl-consent__category:first-child .cbnl-consent__category-description {
  color: #247a36;
}

.cbnl-consent__toggle {
  position: relative;
  display: block;
  flex: 0 0 50px;
  height: 32px;
}
.cbnl-consent__toggle input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cbnl-consent__toggle input:disabled {
  cursor: not-allowed;
}
.cbnl-consent__switch {
  position: absolute;
  top: 2px;
  left: 0;
  width: 50px;
  height: 28px;
  border-radius: 14px;
  background: #313131;
  pointer-events: none;
  transition: background-color 180ms ease;
}
.cbnl-consent__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
  transition: transform 180ms ease;
}
.cbnl-consent__toggle input:checked + .cbnl-consent__switch {
  background: #d30f40;
}
.cbnl-consent__toggle input:checked + .cbnl-consent__switch::after {
  transform: translateX(22px);
}
.cbnl-consent__toggle input:disabled + .cbnl-consent__switch {
  opacity: 0.6;
}
.cbnl-consent__toggle input:focus-visible + .cbnl-consent__switch {
  outline: 3px solid #a30c32;
  outline-offset: 4px;
}

.cbnl-consent__information {
  margin-top: 18px;
  font-size: 13px;
}
.cbnl-consent__information summary {
  cursor: pointer;
  color: #a30c32;
}
.cbnl-consent__text p {
  margin-top: 10px;
}
.cbnl-consent__privacy {
  display: inline-block;
  margin-top: 10px;
  color: #a30c32;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cbnl-consent__footer {
  flex: 0 0 auto;
  padding: 20px 24px;
  border-top: 1px solid #d0d0d0;
  background: #ededed;
}
.cbnl-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cbnl-consent__footer button {
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid #313131;
  border-radius: 4px;
  background: #313131;
  color: #fff;
}
.cbnl-consent__footer [data-consent='save'] {
  border-color: #b30c35;
  background: transparent;
  color: #a30c32;
}
.cbnl-consent__footer [data-consent='all'] {
  border-color: #247a36;
  background: #247a36;
}
.cbnl-consent__footer button:hover {
  filter: brightness(0.9);
}
.cbnl-consent__footer [data-consent='retry'] {
  margin-top: 12px;
}
.cbnl-consent #cbnl-consent-error {
  margin-top: 12px;
  color: #9d162d;
  font-size: 14px;
}
.cbnl-consent button:focus-visible,
.cbnl-consent a:focus-visible,
.cbnl-consent summary:focus-visible {
  outline: 3px solid #a30c32;
  outline-offset: 3px;
}
.cbnl-consent__header button:focus-visible {
  outline-color: #fff;
}

@media (max-width: 600px) {
  .cbnl-consent {
    padding: 12px;
  }
  .cbnl-consent__header {
    padding: 20px 60px 20px 20px;
  }
  .cbnl-consent h2 {
    font-size: 24px;
  }
  .cbnl-consent__header img {
    width: 200px;
    height: 35px;
    margin-bottom: 12px;
  }
  .cbnl-consent__body {
    padding: 18px;
  }
  .cbnl-consent__category {
    padding: 14px;
    gap: 12px;
  }
  .cbnl-consent__category-title {
    gap: 7px;
    font-size: 14px;
  }
  .cbnl-consent__footer {
    padding: 16px 18px;
  }
  .cbnl-consent__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@keyframes cbnl-cookie-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cbnl-consent__dialog {
    animation: none;
  }
  .cbnl-consent__switch,
  .cbnl-consent__switch::after {
    transition: none;
  }
}
