.dpl-age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 16px;
}

.dpl-age-gate[aria-hidden="true"] {
  display: none;
}

.dpl-age-gate__modal {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Logo */
.dpl-age-gate__logo {
  width: 160px;
  height: auto;
  border-radius: 0;
}

.dpl-age-gate__shop-name {
  font-size: 20px;
  font-weight: 500;
  color: #0D0D0D;
  margin: 0;
}

/* Title + subtitle */
.dpl-age-gate__title {
  font-family: 'IBM Plex Sans', Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #0D0D0D;
  margin: 0;
  text-align: center;
}

.dpl-age-gate__subtitle {
  font-size: 14px;
  font-weight: 300;
  color: #6B6B6B;
  margin: 0;
  text-align: center;
  line-height: 1.6;
}

/* Form */
.dpl-age-gate__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dpl-age-gate__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.dpl-age-gate__label {
  font-size: 12px;
  font-weight: 400;
  color: #6B6B6B;
  letter-spacing: 0.02em;
}

.dpl-age-gate__select-wrap {
  position: relative;
}

.dpl-age-gate__select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #F7F7F7;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 12px 40px 12px 14px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0D0D0D;
  cursor: pointer;
  outline: none;
}

.dpl-age-gate__select:focus {
  border-color: #FF9A01;
}

.dpl-age-gate__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6B6B6B;
  display: flex;
  align-items: center;
}

/* Age block */
.dpl-age-gate__age-block {
  width: 100%;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dpl-age-gate__age-question {
  font-size: 13px;
  font-weight: 400;
  color: #6B6B6B;
  margin: 0;
}

.dpl-age-gate__age-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dpl-age-gate__age-btn {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #E5E5E5;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  background: #F7F7F7;
  color: #0D0D0D;
}

.dpl-age-gate__age-btn--yes.active {
  background: #FF9A01;
  border-color: #FF9A01;
  color: #FFFFFF;
}

.dpl-age-gate__age-btn--no:hover {
  background: #0D0D0D;
  border-color: #0D0D0D;
  color: #FFFFFF;
}

/* Checkbox */
.dpl-age-gate__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.dpl-age-gate__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dpl-age-gate__checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid #E5E5E5;
  border-radius: 4px;
  background: #F7F7F7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background 0.15s, border-color 0.15s;
}

.dpl-age-gate__checkbox:checked + .dpl-age-gate__checkbox-box {
  background: #FF9A01;
  border-color: #FF9A01;
}

.dpl-age-gate__checkbox:checked + .dpl-age-gate__checkbox-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #FFFFFF;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.dpl-age-gate__checkbox-text {
  font-size: 13px;
  font-weight: 300;
  color: #4B4B4B;
  line-height: 1.5;
}

/* Continue button */
.dpl-age-gate__continue {
  width: 100%;
  height: 52px;
  background: #FF9A01;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.dpl-age-gate__continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dpl-age-gate__continue:not(:disabled):hover {
  background: #D97F00;
}

/* Cookie notice */
.dpl-age-gate__cookie {
  font-size: 12px;
  font-weight: 300;
  color: #ADADAD;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.dpl-age-gate__privacy-link {
  color: #FF9A01;
  text-decoration: underline;
}

/* Settings mode (opened from header) — hide age gate elements */
.dpl-age-gate[data-mode="settings"] .dpl-age-gate__gate-only {
  display: none;
}

/* Mobile */
@media screen and (max-width: 480px) {
  .dpl-age-gate__modal {
    padding: 28px 20px;
    gap: 16px;
  }
}
