/* =============================================================
   P7 handoff UI (perks7oh.com → PUREDOZO checkout): drawer additions, return banner, 21+ gate.
   Visual language = cart-drawer-dozo.css (purple #4D008C, chillax / Outfit).
   ============================================================= */

/* ----- Drawer: note under the subtotal ----- */
.dz-p7-note {
  margin: -6px 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-align: right;
  line-height: 1.35;
}
.dz-p7-note.is-warning {
  color: #b42318;
  font-weight: 700;
  text-align: left;
}

/* «Final price at checkout» / «Calculating…» in place of a number */
.dz-subtotal__amount.dz-subtotal__amount--pending {
  font-size: 14px;
  font-weight: 700;
  color: #4D008C;
}

/* second distributor line («Charges appear as PUREDOZO») sits tight under the first */
.dz-distributor-note.dz-distributor-note--descriptor { margin-top: 2px; }

/* ----- Drawer: a line PD will not sell ----- */
.dz-cart-item.is-p7-unavailable .dz-cart-item__image-wrap { opacity: .45; filter: grayscale(100%); }
.dz-cart-item.is-p7-unavailable .dz-cart-item__price { color: #9aa0b5; }
.dz-cart-item__p7-issue {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 6px;
  padding: 3px 8px;
  margin: 3px 0 1px;
  line-height: 1.25;
}

/* ----- Drawer: «+N FREE — our pick» line (added by PD at checkout) ----- */
.dz-cart-item--p7-free .dz-cart-item__title { color: #0f7a34; }
.dz-p7-free-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* ----- Return banner (#p7-ordered, #p7-error-*, #p7-unavailable, #p7-preview) ----- */
.p7-banner {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 560px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #4D008C;
  color: #fff;
  font-family: "chillax", "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.p7-banner.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.p7-banner[data-tone="ok"] { background: #0f7a34; }
.p7-banner[data-tone="warn"] { background: #b42318; }
.p7-banner__text { flex: 1 1 auto; }
.p7-banner__close {
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

/* ----- 21+ age gate (above the drawer: drawer z-index is 9999) ----- */
.p7-age {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .6);
  font-family: "chillax", "Outfit", sans-serif;
}
.p7-age__box {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.p7-age__title { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #4D008C; }
.p7-age__text { margin: 0 0 20px; font-size: 14px; line-height: 1.45; color: #444; }
.p7-age__actions { display: flex; gap: 10px; }
.p7-age__actions button {
  flex: 1 1 0;
  height: 46px;
  border-radius: 2.5px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.p7-age__yes { background: #4D008C; color: #fff; border: 0; }
.p7-age__yes:hover { background: #4860d8; }
.p7-age__no { background: #fff; color: #4D008C; border: 1.5px solid #4D008C; }

/* ----- /cart page: PD handoff note under the button ----- */
.p7-cart-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.4;
}
