/* Compact 18+ declaration and customer-owned terms link in the sticky checkout. */
.checkout-consent {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 3px 6px;
  min-width: 0;
  margin: 0 2px 8px;
  padding: 1px 2px;
}
.age-terms-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  color: #69505d;
  font-size: 9.5px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}
.age-terms-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.age-terms-checkbox {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid #dfb6c8;
  border-radius: 5px;
  background: #fff;
  transition: .16s ease;
}
.age-terms-checkbox::after {
  content: "";
  width: 5px;
  height: 8px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.3);
  opacity: 0;
  transition: .16s ease;
}
.age-terms-label input:checked + .age-terms-checkbox {
  border-color: #d95f94;
  background: #d95f94;
  box-shadow: 0 2px 6px rgba(217, 95, 148, .16);
}
.age-terms-label input:checked + .age-terms-checkbox::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.age-terms-label input:focus-visible + .age-terms-checkbox {
  outline: 3px solid rgba(217, 95, 148, .2);
  outline-offset: 2px;
}
.age-terms-label input:disabled + .age-terms-checkbox {
  border-color: #eadfe5;
  background: #f7f2f5;
  box-shadow: none;
}
.age-terms-label:has(input:disabled) {
  cursor: not-allowed;
  color: #a99aa2;
}
.age-terms-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: #cf5d8d;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.age-terms-modal[hidden] { display: none !important; }
.age-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(45, 25, 39, .54);
  backdrop-filter: blur(5px);
}
.age-terms-dialog {
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  max-height: min(82dvh, 720px);
  padding: 18px;
  border: 1px solid #f1dce6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(51, 27, 43, .24);
}
.age-terms-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f3e5ec;
}
.age-terms-modal-kicker { color: #d06b96; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.age-terms-modal-header h2 { margin: 4px 0 0; color: #513c49; font-size: 18px; font-weight: 850; }
.age-terms-modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #f0dfe7;
  border-radius: 11px;
  background: #fff8fb;
  color: #a66a85;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.age-terms-modal-body {
  overflow: auto;
  min-height: 110px;
  padding: 15px 2px;
  color: #69535f;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
}
.age-terms-modal-done {
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(110deg, #e778a6, #cf5e91);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
body.terms-modal-open { overflow: hidden; }
@media (max-width: 380px) {
  .checkout-consent { gap: 3px 5px; margin-bottom: 7px; }
  .age-terms-label, .age-terms-link { font-size: 9px; }
}

