/* Journal options popup only. Reuses the accepted shared-header/checkout styling. */
@font-face {
  font-family: "DP Header Space";
  src: url("../daftpink_header/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

/* The close control belongs to the parent page, above the iframe. */
html.dp-header-active .popup-wrapper.popup-options {
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  overflow: hidden !important;
}
html.dp-header-active .popup-wrapper.popup-options .popup-container {
  box-sizing: border-box;
  width: 560px !important;
  max-width: calc(100vw - 32px) !important;
  height: min(600px, calc(100vh - 48px)) !important;
  height: min(600px, calc(100dvh - 48px)) !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #ded8e1;
  border-radius: 18px !important;
  background: #fff;
  box-shadow: 0 16px 42px #18141924;
}
html.dp-header-active .popup-wrapper.popup-options .popup-body,
html.dp-header-active .popup-wrapper.popup-options .popup-inner-body {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: inherit;
  background: #fff;
}
html.dp-header-active .popup-wrapper.popup-options .popup-inner-body > iframe {
  display: block;
  flex: 1 1 auto;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0;
  background: #fff;
}
html.dp-header-active .popup-wrapper.popup-options .popup-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  top: 10px !important;
  right: 10px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #6b6570 !important;
  box-shadow: none !important;
  transform: none !important;
  z-index: 100;
  cursor: pointer;
}
html.dp-header-active .popup-wrapper.popup-options .popup-close::before,
html.dp-header-active .popup-wrapper.popup-options .popup-close::after {
  content: "" !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  margin: 0;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
html.dp-header-active .popup-wrapper.popup-options .popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
html.dp-header-active .popup-wrapper.popup-options .popup-close:hover {
  background: #fff1f4 !important;
  color: #b42346 !important;
}
html.dp-header-active .popup-wrapper.popup-options .popup-close:focus-visible {
  outline: 2px solid #c82551 !important;
  outline-offset: 2px;
}

/* All selectors below apply only inside Journal's native options iframe. */
html.popup-options {
  --dpo-ink: #181419;
  --dpo-muted: #6b6570;
  --dpo-line: #ded8e1;
  --dpo-pink: #ff3c8f;
  --dpo-lavender: #f5f0ff;
  height: 100%;
  overflow: hidden !important;
  background: #fff !important;
}
html.popup-options body {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  color: var(--dpo-ink);
  font: 400 14px/1.5 "DP Header Space", Arial, sans-serif !important;
  text-align: left;
}
html.popup-options *,
html.popup-options *::before,
html.popup-options *::after { box-sizing: border-box; }
html.popup-options .site-wrapper,
html.popup-options .product-info {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: #fff !important;
}
html.popup-options #product {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  background: #fff !important;
  color: var(--dpo-ink);
  font-family: "DP Header Space", Arial, sans-serif !important;
}
html.popup-options #product .dp-options-intro {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 24px 62px 24px 24px;
  border-bottom: 1px solid var(--dpo-line);
  background: #fff;
}
html.popup-options #product .dp-options-intro > img {
  display: block;
  flex: 0 0 80px;
  width: 80px !important;
  height: 80px !important;
  max-width: 80px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--dpo-lavender);
  object-fit: cover;
}
html.popup-options #product .dp-options-heading { flex: 1; min-width: 0; }
html.popup-options #product #dp-options-title:focus { outline: none !important; }
html.popup-options #product .dp-options-eyebrow {
  margin: 0 0 6px;
  color: var(--dpo-muted);
  font: 500 12px/1.4 "DP Header Space", Arial, sans-serif;
  letter-spacing: .02em;
  text-transform: none;
}
html.popup-options #product .dp-options-heading h1 {
  display: block !important;
  padding: 0;
  margin: 0 0 8px;
  border: 0;
  background: none;
  color: var(--dpo-ink);
  font: 700 21px/1.25 "DP Header Space", Arial, sans-serif !important;
  letter-spacing: -.5px;
  text-transform: none;
  overflow-wrap: anywhere;
}
html.popup-options #product .dp-options-details {
  display: inline-block;
  color: #6b6570;
  font: 500 12px/1.5 "DP Header Space", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.popup-options #product .dp-options-details:hover { color: #c82551; }
html.popup-options #product .dp-options-optional { color: var(--dpo-muted); font-weight: 400; }
html.popup-options #product .dp-options-feedback {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #eab1bf;
  border-radius: 8px;
  background: #fff1f4;
  color: #92253e;
  font: 400 13px/1.5 "DP Header Space", Arial, sans-serif;
}
html.popup-options #product .dp-options-feedback[hidden] { display: none !important; }
html.popup-options #product .dp-options-retry {
  display: block;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
html.popup-options #product .dp-options-price-unavailable .price-wrapper { visibility: hidden; }
html.popup-options #product .product-price-group[aria-busy="true"] .price-wrapper { opacity: .5; }
html.popup-options #product .product-options {
  display: block !important;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-height: none;
  padding: 24px !important;
  margin: 0 !important;
  border: 0 !important;
  background: #fff !important;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
html.popup-options #product .product-options > .options-title { display: none !important; }
html.popup-options #product .product-options .form-group {
  display: block;
  padding: 0;
  margin: 0 0 24px !important;
  border: 0;
}
html.popup-options #product .product-options .form-group:last-child { margin-bottom: 0 !important; }
html.popup-options #product .product-options .control-label {
  display: block;
  width: auto;
  padding: 0;
  margin: 0 0 10px;
  color: var(--dpo-ink);
  font: 700 14px/1.4 "DP Header Space", Arial, sans-serif !important;
  text-align: left;
  text-transform: none;
}
html.popup-options #product .product-options .required > .control-label::before { color: #b42346; }
html.popup-options #product .product-option-radio > div[id^="input-option"],
html.popup-options #product .product-option-checkbox > div[id^="input-option"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}
html.popup-options #product .product-options .radio,
html.popup-options #product .product-options .checkbox {
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
}
html.popup-options #product .product-options .radio label,
html.popup-options #product .product-options .checkbox label {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  height: 100%;
  padding: 14px !important;
  margin: 0 !important;
  border: 1px solid var(--dpo-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--dpo-ink) !important;
  font: 500 14px/1.4 "DP Header Space", Arial, sans-serif !important;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
  transition: border-color .15s ease, background-color .15s ease;
}
html.popup-options #product .product-options .radio label:hover,
html.popup-options #product .product-options .checkbox label:hover { border-color: #a99bad !important; }
html.popup-options #product .product-options label.active,
html.popup-options #product .product-options label.dp-options-selected {
  border-color: var(--dpo-pink) !important;
  background: #fff6fa !important;
  box-shadow: inset 0 0 0 1px var(--dpo-pink) !important;
}
@supports selector(label:has(input:checked)) {
  html.popup-options #product .product-options .radio label:has(input:checked),
  html.popup-options #product .product-options .checkbox label:has(input:checked) {
    border-color: var(--dpo-pink) !important;
    background: #fff6fa !important;
    box-shadow: inset 0 0 0 1px var(--dpo-pink) !important;
  }
}
html.popup-options #product .product-options input[type="radio"],
html.popup-options #product .product-options input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  display: block !important;
  position: static !important;
  flex: 0 0 22px;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  accent-color: #c82551;
  cursor: pointer;
}
/* Restore text/prices hidden by Journal's image-based push-option rules. */
html.popup-options #product .product-options .option-value {
  display: block !important;
  position: static !important;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dpo-ink) !important;
  font: inherit !important;
  line-height: 1.4 !important;
  text-align: left !important;
  white-space: normal !important;
  transform: none !important;
  box-shadow: none !important;
  overflow-wrap: anywhere;
}
html.popup-options #product .product-options .option-price {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 0 !important;
  margin: 3px 0 0 !important;
  color: var(--dpo-muted) !important;
  font: 400 12px/1.4 "DP Header Space", Arial, sans-serif !important;
}
html.popup-options #product .product-options label > img {
  display: block !important;
  flex: 0 0 32px;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  object-fit: cover;
  box-shadow: none !important;
}
html.popup-options #product .product-options .form-control {
  min-height: 48px;
  height: auto;
  padding: 12px 14px;
  border: 1px solid var(--dpo-line);
  border-radius: 9px;
  background: #fff;
  color: var(--dpo-ink);
  font: 400 16px/1.4 "DP Header Space", Arial, sans-serif;
  box-shadow: none;
}
html.popup-options #product .product-options textarea.form-control { min-height: 96px; resize: vertical; }
html.popup-options #product .product-options .btn {
  min-height: 48px;
  border: 1px solid var(--dpo-line);
  border-radius: 9px;
  background: #fff;
  color: var(--dpo-ink);
  font: 500 14px/1.4 "DP Header Space", Arial, sans-serif;
  text-transform: none;
}
html.popup-options #product .product-options .has-error label,
html.popup-options #product .product-options .has-error .form-control { border-color: #b42346 !important; }
html.popup-options #product .text-danger {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin: 10px 0 0;
  border: 1px solid #edb9c6;
  border-radius: 8px;
  background: #fff1f4;
  color: #b42346 !important;
  font: 500 13px/1.45 "DP Header Space", Arial, sans-serif;
  white-space: normal;
}
html.popup-options #product :focus-visible {
  outline: 2px solid #c82551 !important;
  outline-offset: 3px;
}

/* Price and native add-to-cart controls occupy real space below the options. */
html.popup-options #product .button-group-page {
  position: static !important;
  display: block !important;
  flex: none;
  width: 100% !important;
  padding: 20px !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--dpo-line) !important;
  background: var(--dpo-lavender) !important;
  box-shadow: none !important;
  z-index: auto;
}
html.popup-options #product .button-group-page .product-price-group {
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dpo-ink);
  pointer-events: auto;
}
html.popup-options #product .dp-options-price-label {
  color: var(--dpo-ink);
  font: 600 14px/1.4 "DP Header Space", Arial, sans-serif;
}
html.popup-options #product .button-group-page .price-wrapper {
  min-width: 0;
  padding: 0;
  margin: 0;
  text-align: right;
}
html.popup-options #product .button-group-page .price-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 0;
}
html.popup-options #product .button-group-page .product-price,
html.popup-options #product .button-group-page .product-price-new {
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--dpo-ink) !important;
  font: 700 26px/1.2 "DP Header Space", Arial, sans-serif !important;
  letter-spacing: -.7px;
}
html.popup-options #product .button-group-page .product-price-old {
  padding: 0 !important;
  margin: 0 !important;
  color: var(--dpo-muted) !important;
  font: 400 14px/1.4 "DP Header Space", Arial, sans-serif !important;
  text-decoration: line-through;
}
html.popup-options #product .button-group-page .product-tax,
html.popup-options #product .button-group-page .product-reward,
html.popup-options #product .button-group-page .product-discount {
  color: var(--dpo-muted);
  font: 400 12px/1.4 "DP Header Space", Arial, sans-serif;
}
html.popup-options #product .buttons-wrapper,
html.popup-options #product .stepper-group {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  background: transparent;
}
html.popup-options #product .stepper,
html.popup-options #product .wishlist-compare:empty { display: none !important; }
html.popup-options #product #button-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 54px !important;
  max-height: none !important;
  padding: 12px 16px !important;
  margin: 0 0 3px !important;
  border: 2px solid var(--dpo-ink) !important;
  border-radius: 11px !important;
  background: var(--dpo-pink) !important;
  color: var(--dpo-ink) !important;
  font: 700 17px/1.3 "DP Header Space", Arial, sans-serif !important;
  letter-spacing: 0;
  text-transform: none !important;
  text-decoration: none;
  white-space: normal;
  box-shadow: 0 3px 0 var(--dpo-ink) !important;
  cursor: pointer;
}
html.popup-options #product #button-cart .btn-text {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit !important;
  font: inherit !important;
}
html.popup-options #product #button-cart::before { display: none !important; }
html.popup-options #product #button-cart:hover { background: #ed2d7b !important; }
html.popup-options #product #button-cart.disabled,
html.popup-options #product #button-cart[disabled],
html.popup-options #product #button-cart[aria-disabled="true"],
html.popup-options #product #button-cart[aria-busy="true"] {
  opacity: .65;
  cursor: wait;
  pointer-events: none;
}
html.popup-options #product #button-cart.disabled::after,
html.popup-options #product #button-cart[aria-busy="true"]::after {
  content: "";
  position: static !important;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  background: none;
  animation: dpo-spin .7s linear infinite;
}
@keyframes dpo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
html.popup-options #product .minimum {
  flex: none;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid var(--dpo-line);
  border-radius: 8px;
  background: #fff;
  color: var(--dpo-muted);
  font: 400 12px/1.45 "DP Header Space", Arial, sans-serif;
}
@media (min-width: 440px) {
  html.popup-options #product .product-option-radio > div[id^="input-option"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 359px) {
  html.popup-options #product .dp-options-intro { gap: 10px; padding: 16px 44px 16px 16px; }
  html.popup-options #product .dp-options-intro > img { flex-basis: 56px; width: 56px !important; height: 56px !important; }
  html.popup-options #product .dp-options-heading h1 { font-size: 17px !important; }
  html.popup-options #product .product-options { padding: 20px 16px !important; }
  html.popup-options #product .button-group-page { padding: 16px !important; }
}
/* A short iframe must scroll as a page so the options never become a sliver. */
@media (max-height: 450px) {
  html.popup-options,
  html.popup-options body { height: auto; overflow-y: auto !important; }
  html.popup-options .site-wrapper,
  html.popup-options .product-info { height: auto !important; }
  html.popup-options #product {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: visible;
  }
  html.popup-options #product .product-options { flex: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  html.dp-header-active .popup-wrapper.popup-options .popup-container,
  html.dp-header-active .popup-wrapper.popup-options .popup-close,
  html.popup-options #product .product-options label,
  html.popup-options #product #button-cart { transition: none !important; }
  html.popup-options #product #button-cart::after { animation: none !important; }
}
