/* ─────────────────────────────────────────
   Thrive Peptides — Age Gate & Post-Purchase Popup
   thrive-popups.css  v1.0.0
───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --tp-dark:         #0D0A20;
  --tp-indigo:       #3D2FA8;
  --tp-indigo-mid:   #5B4FD4;
  --tp-indigo-light: #EAEAFC;
  --tp-indigo-text:  #2A1F85;
  --tp-accent:       #8B7FF8;
}

.thrive-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 20, 0.9);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.thrive-overlay--hidden {
  display: none !important;
}

.thrive-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.thrive-modal__header {
  background: var(--tp-dark);
  padding: 1.75rem 2.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.thrive-modal__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 28px,
    rgba(91,79,212,0.07) 28px, rgba(91,79,212,0.07) 29px
  );
  pointer-events: none;
}

.thrive-modal__logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  display: block;
  margin-bottom: 1rem;
  position: relative;
}

.thrive-modal__title {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.35;
  letter-spacing: -0.01em;
  position: relative;
  margin: 0;
}

.thrive-modal__title strong { font-weight: 500; color: #fff; }

.thrive-modal__body { padding: 1.5rem 2.25rem 1.75rem; }

.thrive-modal__intro {
  font-size: 14px; color: #555; line-height: 1.65; margin: 0 0 1.25rem;
}

.thrive-checks { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.375rem; }

.thrive-check-row { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }

.thrive-check-row input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--tp-indigo); cursor: pointer;
}

.thrive-check-row span { font-size: 14px; color: #333; line-height: 1.55; }
.thrive-check-row a { color: var(--tp-indigo-mid); text-decoration: none; }
.thrive-check-row a:hover { text-decoration: underline; }

.thrive-divider { height: 1px; background: #eee; margin-bottom: 1.25rem; }

.thrive-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  border-radius: 8px; padding: 0.7rem 1.25rem;
  cursor: pointer; width: 100%; display: block;
  text-align: center; transition: background 0.15s, opacity 0.15s;
  margin-bottom: 0.5rem; border: none; box-sizing: border-box;
}

.thrive-btn--primary { background: var(--tp-indigo); color: #fff; }
.thrive-btn--primary:hover:not(:disabled) { background: var(--tp-indigo-mid); }
.thrive-btn--primary:disabled { opacity: 0.28; cursor: not-allowed; }

.thrive-btn--ghost { background: transparent; color: #666; border: 1px solid #ddd !important; }
.thrive-btn--ghost:hover { background: #f6f6f6; }

.thrive-btn--skip {
  background: transparent; color: #aaa; border: none !important;
  text-decoration: underline; text-underline-offset: 2px;
  font-size: 13px; font-weight: 400; padding: 0.3rem 0;
}

.thrive-btn--loading { opacity: 0.55; pointer-events: none; }

.thrive-fine-print { font-size: 12px; color: #888; text-align: center; margin: 0.875rem 0 0; line-height: 1.55; }

/* POST-PURCHASE */
.thrive-modal--pp { max-width: 480px; }

.thrive-modal__header--pp {
  display: flex; align-items: center; gap: 0.875rem; padding: 1.5rem 2.25rem;
}

.thrive-pp-check {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(91,79,212,0.2); border: 1px solid rgba(139,127,248,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; color: var(--tp-accent);
}

.thrive-pp-eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tp-accent); margin: 0 0 0.15rem; position: relative;
}

.thrive-pp-hd-title { font-size: 15px; font-weight: 500; color: #fff; margin: 0; position: relative; line-height: 1.3; }

.thrive-pp-logo { height: 26px; width: auto; max-width: 130px; margin-left: auto; position: relative; opacity: 0.75; flex-shrink: 0; object-fit: contain; }

.thrive-pp-heading { font-size: 19px; font-weight: 400; color: #1a1a2e; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.thrive-pp-heading strong { font-weight: 500; }

.thrive-pp-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--tp-indigo-light); color: var(--tp-indigo-text);
  font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 6px; margin-bottom: 1.125rem;
}

.thrive-pp-perks { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.thrive-pp-perks li { font-size: 14px; color: #333; padding-left: 1.25rem; position: relative; }
.thrive-pp-perks li::before { content: '→'; position: absolute; left: 0; color: var(--tp-indigo-mid); font-size: 12px; }

.thrive-input {
  width: 100%; border: 1px solid #ddd; border-radius: 8px;
  padding: 0.65rem 0.875rem; font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: #333; background: #fff;
  margin-bottom: 0.625rem; box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.thrive-input:focus {
  outline: none; border-color: var(--tp-indigo-mid);
  box-shadow: 0 0 0 3px rgba(91,79,212,0.09);
}

.thrive-error { font-size: 12px; color: #c0392b; margin: -0.25rem 0 0.625rem; min-height: 1rem; }

@media (max-width: 540px) {
  .thrive-modal__header, .thrive-modal__header--pp, .thrive-modal__body {
    padding-left: 1.25rem; padding-right: 1.25rem;
  }
  .thrive-modal__logo { height: 28px; }
}
