/* The Professional Magician Club: theme layer for OptimizePress 3 pages (checkout, access, thank-you).
   The PMC Site Kit loads this ONLY on OptimizePress pages and adds body.pmc-op. OptimizePress styles each
   element with ID selectors, so this layer uses !important to win, and stays scoped under body.pmc-op
   so it can never touch the rest of the site. Layout (rows, columns, widths) is left to OptimizePress. */

body.pmc-op{
  --ink:#0E0B12; --panel:#17121D; --panel-2:#1C1623; --field:#0F0C13; --line:rgba(255,255,255,.1);
  --text:#F3EEF7; --soft:#D9D0E2; --muted:#A99DB6; --gold:#E2BF6A; --gold-hi:#F3D58C; --violet:#8B5CD6;
  background:radial-gradient(ellipse 70% 50% at 80% 0%,#24173A 0%,var(--ink) 60%) fixed,var(--ink) !important;
  color:var(--soft) !important;
  font-family:'Inter Tight',system-ui,sans-serif !important;
  color-scheme:dark;
}

/* 1. Backgrounds: OptimizePress paints colors on layered [data-op3-background] divs. Clear them all,
      except the checkbox's own on/off layers. */
body.pmc-op .op3-element [data-op3-background]:not([data-op3-background="checked"]):not([data-op3-background="unchecked"]),
body.pmc-op .op3-element [data-op3-background]:not([data-op3-background="checked"]):not([data-op3-background="unchecked"])::before,
body.pmc-op .op3-element [data-op3-background]:not([data-op3-background="checked"]):not([data-op3-background="unchecked"])::after{
  background:none !important; background-color:transparent !important; background-image:none !important; opacity:1 !important;
}
/* (OptimizePress paints most section colors on the ::before layer: html[data-op3-support] … [data-op3-background="base"]::before) */
body.pmc-op .op3-element__background,
body.pmc-op .op3-element__background::before,
body.pmc-op .op3-element__background::after{background:none !important; background-color:transparent !important; background-image:none !important}
body.pmc-op .op3-element [data-op3-border]{border-color:var(--line) !important}

/* 2. Type */
body.pmc-op [data-op3-element-type="headline"] :is(h1,h2,h3,h4,h5,h6,div,p,span){
  font-family:'Fraunces',Georgia,serif !important; color:#E4DCEC !important; letter-spacing:-.01em;
}
body.pmc-op [data-op3-element-type="headline"] h1{color:var(--text) !important; font-weight:600 !important}
body.pmc-op [data-op3-element-type="headline"] :is(b,strong){color:var(--gold) !important}
body.pmc-op [data-op3-element-type="text"] :is(p,div,span,li),
body.pmc-op [data-op3-element-type="text"]{color:var(--soft) !important; font-family:'Inter Tight',system-ui,sans-serif !important}
body.pmc-op [data-op3-element-type="text"] a,
body.pmc-op .op3-element a:not(.op3-link){color:var(--gold) !important}
body.pmc-op [data-op3-element-type="bulletlist"] .op3-element__text{color:#E4DCEC !important; font-family:'Inter Tight',system-ui,sans-serif !important}
body.pmc-op [data-op3-element-type="bulletlist"] .op3-element__icon,
body.pmc-op [data-op3-element-type="icon"] .op3-element-icon__wrapper,
body.pmc-op [data-op3-element-type="textwithicon"] .op3-icon{color:var(--gold) !important}
body.pmc-op [data-op3-element-type="divider"] .op3-divider{border-color:var(--line) !important; background:var(--line) !important}

/* 3. The checkout form becomes one card */
body.pmc-op [data-op3-element-type="cart"]>[data-op3-element-container]{
  background:linear-gradient(170deg,var(--panel-2),#130F18) !important;
  border:1px solid rgba(226,191,106,.3) !important; border-radius:24px !important;
  box-shadow:0 40px 80px -40px rgba(0,0,0,.9) !important; padding:12px 8px !important;
}
/* the form's section titles ("Contact Information", "Payment Information"…) are headlines inside the cart */
body.pmc-op [data-op3-element-type="cart"] [data-op3-element-type="headline"] :is(h1,h2,h3,h4,h5,h6,div){
  font-family:'Inter Tight',system-ui,sans-serif !important; font-size:13px !important; font-weight:700 !important;
  letter-spacing:.18em !important; text-transform:uppercase !important; color:var(--gold) !important;
}

/* 4. Fields */
body.pmc-op :is(.op3-element-input-edit,.op3-element-select-edit) [data-op3-border]{
  background:var(--field) !important; border:1px solid rgba(255,255,255,.16) !important; border-radius:12px !important;
}
body.pmc-op :is(.op3-element-input-edit-text,.op3-element-select-edit-text){
  color:var(--text) !important; font-family:'Inter Tight',system-ui,sans-serif !important; font-size:16px !important;
  background:transparent !important;
}
body.pmc-op .op3-element-input-edit-text::placeholder{color:#7D7289 !important}
body.pmc-op .op3-element-select-edit-text option{background:#17121D; color:var(--text)}
body.pmc-op :is(.op3-element-input-edit,.op3-element-select-edit):focus-within [data-op3-border]{
  border-color:var(--gold) !important; box-shadow:0 0 0 3px rgba(226,191,106,.18) !important;
}
body.pmc-op :is(.op3-element-input-edit-icon,.op3-element-select-edit) .op3-icon{color:var(--gold) !important}
body.pmc-op .op3-element-checkbox-label,body.pmc-op .op3-element-checkbox-label *{color:var(--soft) !important}
body.pmc-op [data-op3-element-type="checkbox"] [data-op3-border]{border:1px solid rgba(255,255,255,.25) !important; border-radius:6px !important; overflow:hidden}
body.pmc-op [data-op3-element-type="checkbox"] [data-op3-background="unchecked"],
body.pmc-op [data-op3-element-type="checkbox"] [data-op3-background="unchecked"]::before{background:var(--field) !important; background-image:none !important}
body.pmc-op [data-op3-element-type="checkbox"] [data-op3-background="checked"],
body.pmc-op [data-op3-element-type="checkbox"] [data-op3-background="checked"]::before{background:var(--gold) !important; background-image:none !important}
body.pmc-op [data-op3-element-type="checkbox"]>[data-op3-element-container]{border-color:var(--line) !important}
body.pmc-op [data-op3-element-type="checkbox"] .op3-element-checkbox-checkmark .unchecked{background:var(--field) !important; border:1px solid rgba(226,191,106,.6) !important; border-radius:5px}
body.pmc-op [data-op3-element-type="checkbox"]:hover .op3-element-checkbox-checkmark .unchecked{background-color:#1C1623 !important}
body.pmc-op [data-op3-element-type="checkbox"] .op3-element-checkbox-checkmark .checked{background:var(--gold) !important; color:#1A1320 !important; border-radius:5px}
/* The card-number box is a Stripe frame: it can be framed and spaced, not restyled inside */
body.pmc-op .opc-card-entry-placeholder{color:var(--muted) !important}

/* 5. Order summary */
body.pmc-op .op3-descriptionlistitem-key,body.pmc-op .opc-footer-key{color:var(--soft) !important; font-family:'Inter Tight',system-ui,sans-serif !important}
body.pmc-op .op3-descriptionlistitem-value,body.pmc-op .opc-footer-value{color:var(--text) !important; font-variant-numeric:tabular-nums}
body.pmc-op [data-op3-element-type="descriptionlistitem"]:last-child :is(.op3-descriptionlistitem-key,.op3-descriptionlistitem-value){
  font-family:'Fraunces',Georgia,serif !important; font-size:22px !important; color:var(--gold) !important;
}

/* 6. Buttons: the gold pill, everywhere (Complete My Order, Download, Take Me to Your Offer…) */
body.pmc-op [data-op3-element-type="button"]>a.op3-link{
  background:linear-gradient(110deg,#C9A24A 0%,#E9C977 45%,#C9A24A 60%,#B88F36 100%) !important;
  background-size:220% 100% !important; animation:pmcShimmer 4.5s ease-in-out infinite;
  border:0 !important; border-radius:999px !important; box-shadow:0 12px 30px -10px rgba(226,191,106,.55) !important;
  transition:transform .2s ease !important;
}
body.pmc-op [data-op3-element-type="button"]>a.op3-link:hover{transform:translateY(-2px)}
body.pmc-op [data-op3-element-type="button"]>a.op3-link [data-op3-border]{border:0 !important}
body.pmc-op [data-op3-element-type="button"]>a.op3-link :is(.op3-text-container,.op3-text,.op3-text *){
  color:#1A1320 !important; font-family:'Inter Tight',system-ui,sans-serif !important; font-weight:700 !important; text-shadow:none !important;
}
@keyframes pmcShimmer{0%,100%{background-position:100% 0}50%{background-position:0 0}}

/* 7. Media */
body.pmc-op [data-op3-element-type="image"] img{border-radius:14px}
body.pmc-op [data-op3-element-type="video"] iframe{border-radius:14px}

/* 8. The kit's slim brand bar + footer (printed by the plugin when the OP template allows it) */
.pmc-op-bar{position:sticky;top:0;z-index:999;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px max(20px,env(safe-area-inset-right,0px)) 14px max(20px,env(safe-area-inset-left,0px));
  background:rgba(14,11,18,.88);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);font-family:'Inter Tight',system-ui,sans-serif}
.pmc-op-bar a{display:flex;align-items:center;gap:10px;color:#F3EEF7 !important;text-decoration:none}
.pmc-op-bar b{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:18px;line-height:1.05}
.pmc-op-bar small{display:block;font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:#E2BF6A;font-weight:600}
.pmc-op-bar .lock{display:flex;align-items:center;gap:8px;color:#A99DB6;font-size:14px}
.pmc-op-foot{padding:28px 20px 40px;text-align:center;color:#A99DB6;font:14px 'Inter Tight',system-ui,sans-serif;border-top:1px solid var(--line)}
@media (prefers-reduced-motion:reduce){body.pmc-op *{animation:none !important}}
