/**
 * Astroflick cookie settings — Digiknack dialog layout, Astroflick yellow accents.
 */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.cookie-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background-color: #202020;
  border-radius: 12px;
  padding: 20px 20px 18px;
  box-sizing: border-box;
  font-family: clother, sans-serif;
}

.cookie-dialog__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cookie-dialog__icon {
  flex-shrink: 0;
  display: block;
}

.cookie-dialog__title {
  font-size: 16px;
  font-weight: 700;
  color: #e3dbcc;
  margin: 0;
  line-height: 1.2;
}

.cookie-dialog__intro {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(227, 219, 204, 0.55);
  margin: 0 0 16px;
}

.cookie-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(227, 219, 204, 0.15);
}

.cookie-row--locked {
  border-top: none;
  padding-top: 0;
}

.cookie-row__lock {
  width: 16px;
  height: 16px;
  color: #f5f203;
  flex-shrink: 0;
}

.cookie-row__label {
  font-size: 13px;
  font-weight: 400;
  color: rgba(227, 219, 204, 0.55);
}

.cookie-row--toggle {
  cursor: pointer;
  margin: 0;
}

.cookie-check {
  width: 14px;
  height: 14px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(227, 219, 204, 0.85);
  border-radius: 2px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  cursor: pointer;
  accent-color: #f5f203;
}

.cookie-check:focus {
  outline: none;
}

.cookie-check:checked {
  border-color: rgba(227, 219, 204, 0.95);
}

.cookie-check:checked::after {
  content: '';
  width: 8px;
  height: 8px;
  clip-path: polygon(14% 54%, 0 68%, 36% 100%, 100% 22%, 86% 8%, 36% 72%);
  background: #f5f203;
}

.cookie-check:focus-visible {
  outline: 2px solid rgba(245, 242, 3, 0.5);
  outline-offset: 2px;
}

.cookie-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(227, 219, 204, 0.15);
}

.cookie-btn {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}

.cookie-btn:focus {
  outline: none;
}

.cookie-btn:focus-visible {
  outline: 2px solid rgba(245, 242, 3, 0.45);
  outline-offset: 2px;
}

.cookie-btn--text {
  color: #e3dbcc;
}

.cookie-btn--cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e3dbcc;
}

.cookie-btn__chev {
  width: 16px;
  height: 16px;
  color: #f5f203;
}
