/* Marketing consent boxes (registration, checkout), My Account > Email
   Preferences and the unsubscribe page (marketing-consent.php).
   Theme tokens with fallbacks; text keeps at least 4.5:1 contrast. */

/* Boxes on the registration form and at checkout. */
.pp-mc {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--pp-border, #EAEAEC);
  border-radius: var(--pp-radius-card, 16px);
  background: var(--pp-card, #fff);
  min-width: 0;
}
.pp-mc-heading { margin: 0 0 8px; font-weight: 700; color: var(--pp-ink, #14141A); }
.pp-mc-small { margin: 8px 0 0; font-size: .84rem; line-height: 1.5; color: var(--pp-text-muted, #6B6B70); }

/* The label prefix outranks the theme's `.woocommerce form .form-row label`
   and `.woocommerce-account label` rules. */
.pp-mc label.pp-mc-option,
.pp-mc-prefs label.pp-mc-option,
.woocommerce form .form-row label.pp-mc-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}
.pp-mc-option input[type="checkbox"],
.woocommerce form .form-row .pp-mc-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--pp-red, #D10A0A);
}
.pp-mc-option span { min-width: 0; overflow-wrap: anywhere; }
.pp-mc-option input:focus-visible { outline: 2px solid var(--pp-red, #D10A0A); outline-offset: 2px; }

/* My Account > Email Preferences: same card as Spending Controls. */
.pp-mc-prefs { max-width: none; }
.pp-mc-intro { line-height: 1.6; color: var(--pp-text, #17171A); }
.pp-mc-card {
  background: var(--pp-card, #fff);
  border: 1px solid var(--pp-border, #EAEAEC);
  border-radius: var(--pp-radius-card, 16px);
  padding: 18px 18px 20px;
  margin: 0 0 18px;
}
.woocommerce-account .woocommerce-MyAccount-content .pp-mc-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.pp-mc-row { padding: 12px 0; border-bottom: 1px solid var(--pp-border, #EAEAEC); }
.pp-mc-row:first-of-type { padding-top: 0; }
.pp-mc-note { margin: 2px 0 0 28px; font-size: .86rem; line-height: 1.5; color: var(--pp-text-muted, #6B6B70); }
.pp-mc-note a { color: var(--pp-red-text, #B00A0A); font-weight: 600; }
.pp-mc-help { font-size: .86rem; color: var(--pp-text-muted, #6B6B70); margin: 12px 0; line-height: 1.5; }
.pp-mc-btn { border-radius: 999px !important; min-height: 46px; padding: 12px 26px !important; font-weight: 700; }

/* Unsubscribe confirmation page. */
.pp-mc-unsub-wrap { padding: 48px 16px 64px; }
.pp-mc-unsub { max-width: 560px; margin: 0 auto; text-align: center; padding: 28px 22px; }
.pp-mc-unsub h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 12px; }
.pp-mc-unsub p { line-height: 1.6; }
.pp-mc-unsub .button { display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 600px) {
  .pp-mc { padding: 12px 14px; }
  .pp-mc-btn { width: 100%; }
  .pp-mc-note { margin-left: 0; }
}
