.px-commerce-layer {
  color-scheme: light;
  --px-accent: #b44824;
  --px-accent-strong: #b44824;
  --px-panel: #ffffff;
  --px-panel-2: #f5f7fb;
  --px-border: #d9e2ee;
  --px-text: #18324e;
  --px-muted: #64748b;
}

.px-commerce-layer { position: fixed; inset: 0; z-index: 2147483000; font: 14px/1.45 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--px-text); }
.px-commerce-backdrop { position: absolute; inset: 0; background: rgba(24, 43, 66, .28); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.px-commerce-card { width: min(540px, calc(var(--editor-visible-width,100vw) - 32px)); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--px-border); border-radius: 18px; background: var(--px-panel); box-shadow: 0 22px 56px rgba(24,43,66,.18); position: relative; }
.px-commerce-stripe { height: 5px; background: #b44824; border-radius: 18px 18px 0 0; }
.px-commerce-head { padding: 28px 30px 18px; }
.px-commerce-head h2 { margin: 0 38px 8px 0; font-size: 28px; line-height: 1.12; letter-spacing: -.025em; }
.px-commerce-head p { margin: 0; color: var(--px-muted); }
.px-commerce-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 1px solid var(--px-border); border-radius: 10px; background: #f5f7fb; color: var(--px-text); font-size: 22px; cursor: pointer; }
.px-commerce-body { padding: 0 30px 30px; }
.px-commerce-price { display: flex; align-items: baseline; gap: 9px; margin: 10px 0 20px; }
.px-commerce-price strong { font-size: 38px; letter-spacing: -.04em; }
.px-commerce-price span { color: var(--px-muted); }
.px-commerce-benefits { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.px-commerce-benefits li { display: flex; gap: 10px; }
.px-commerce-benefits li::before { content: ""; width: 9px; height: 9px; margin-top: 6px; flex: none; border-radius: 3px; background: var(--px-accent); box-shadow: 0 0 0 3px rgba(43,99,188,.10); }
.px-commerce-consent { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--px-border); background: #f5f7fb; border-radius: 12px; color: var(--px-text); font-size: 12px; }
.px-commerce-consent label { display: flex; align-items: flex-start; gap: 9px; }
.px-commerce-consent input { margin-top: 2px; accent-color: var(--px-accent-strong); }
.px-commerce-consent a { color: #b44824; }
.px-commerce-primary { width: 100%; min-height: 48px; margin-top: 18px; border: 0; border-radius: 12px; background: var(--px-accent); color: #ffffff; font-weight: 750; cursor: pointer; }
.px-commerce-primary:hover { background: #b44824; }
.px-commerce-primary:disabled { cursor: not-allowed; opacity: .42; }
.px-commerce-danger { width: 100%; min-height: 44px; margin-top: 18px; border: 1px solid #8f4f50; border-radius: 12px; background: transparent; color: #a4313b; font-weight: 700; cursor: pointer; }
.px-commerce-danger:hover { background: rgba(220, 76, 78, .12); }
.px-commerce-danger:disabled { cursor: not-allowed; opacity: .42; }
.px-commerce-note { margin: 14px 0 0; color: var(--px-muted); font-size: 12px; }
.px-commerce-error { margin: 14px 0 0; padding: 11px 12px; border-radius: 10px; background: rgba(231,76,60,.14); color: #a61b15; }
.px-commerce-backdrop .paywall-modal {
  display: flex; width: min(520px, calc(var(--editor-visible-width,100vw) - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  flex-direction: column; overflow: hidden; color: #24262d; background: white; border: 0; border-radius: 20px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .22);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.paywall-header { position: relative; min-height: 126px; padding: 22px 56px 20px 24px; flex: 0 0 auto; color: #172006; background: #fbe8df; }
.paywall-modal .paywall-header h2 { max-width: 440px; margin: 0; color: #172006; font-size: 25px; font-weight: 700; line-height: 31px; letter-spacing: 0; }
.paywall-close { position: absolute; top: 14px; right: 14px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: rgba(23, 32, 6, .72); background: transparent; border: 0; border-radius: 50%; font: 400 28px/1 Arial, sans-serif; cursor: pointer; }
.paywall-close:hover, .paywall-close:focus-visible { color: #172006; background: rgba(255, 255, 255, .28); outline: none; }
.paywall-price-row { display: flex; margin-top: 12px; align-items: center; gap: 10px; }
.paywall-price-row strong { font-size: 20px; }
.paywall-price-row > span:not(.paywall-old-price, .paywall-discount) { font-size: 14px; }
.paywall-old-price { color: rgba(23, 32, 6, .58); font-size: 14px; text-decoration: line-through; }
.paywall-discount { padding: 4px 10px; color: #111; background: white; border-radius: 4px; font-size: 12px; font-weight: 700; }
.paywall-body { display: flex; min-height: 0; padding: 22px 24px 16px; flex: 1 1 auto; flex-direction: column; gap: 18px; overflow-y: auto; }
.paywall-benefits { display: grid; margin: 0; padding: 0; gap: 4px; list-style: none; }
.paywall-benefits li { position: relative; min-height: 24px; padding-left: 28px; color: #4a4a4a; font-size: 14px; line-height: 24px; }
.paywall-benefits li::before { position: absolute; left: 0; content: "✓"; color: #6366f2; font-size: 16px; font-weight: 600; }
.paywall-consent { display: grid; gap: 12px; }
.paywall-modal .paywall-consent label { display: grid; margin: 0; align-items: start; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; color: #94949e; font-size: 11px; line-height: 15px; cursor: pointer; }
.paywall-modal .paywall-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #6366f2; cursor: pointer; }
.paywall-modal .paywall-consent a { color: #6366f2; text-underline-offset: 2px; }
.paywall-actions { display: grid; padding: 0 24px 16px; flex: 0 0 auto; gap: 10px; background: white; }
.paywall-payment { display: flex; width: 100%; min-height: 52px; padding: 0 18px; align-items: center; justify-content: center; gap: 10px; color: #24262d; border-radius: 12px; font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.paywall-payment-card { background: #ffdd2d; border: 1px solid #ffdd2d; }
.paywall-payment:disabled { opacity: .42; cursor: not-allowed; }
.paywall-payment-card:not(:disabled):hover { background: #ffd51a; }
.paywall-card-icon { position: relative; width: 24px; height: 18px; border: 2px solid currentColor; border-radius: 4px; }
.paywall-card-icon::after { position: absolute; top: 4px; right: -2px; left: -2px; height: 2px; content: ""; background: currentColor; }
.paywall-note { margin: 0; color: #94949e; font-size: 11px; line-height: 15px; }
.paywall-modal .px-commerce-error { margin: 0; flex: 0 0 auto; color: #a61b15; }
.px-commerce-auth { width: min(420px, calc(var(--editor-visible-width,100vw) - 32px)); height: min(calc(var(--auth-height, 600px) + 44px), calc(100dvh - 32px)); padding-top: 44px; box-sizing: border-box; border: 1px solid var(--px-border); border-radius: 18px; overflow: hidden; background: white; box-shadow: 0 22px 56px rgba(24,43,66,.18); position: relative; }
.px-commerce-auth iframe { display: block; width: 100%; height: 100%; border: 0; }
.px-commerce-auth .px-commerce-close { z-index: 2; top: 5px; right: 12px; }
.px-commerce-auth > .px-commerce-error { position: absolute; bottom: 12px; left: 12px; right: 12px; background: #fff1f0; }
.px-commerce-fab { position: fixed; z-index: 2147482000; bottom: 20px; border: 1px solid #4a4f55; background: #24272b; color: white; box-shadow: 0 10px 32px rgba(0,0,0,.38); cursor: pointer; }
.px-commerce-fab:hover { border-color: var(--px-accent); }
#mspowerpoint-pro-button { right: 76px; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; color: #c5d9ff; }
#mspowerpoint-support-button { right: 20px; width: 42px; height: 42px; border-radius: 50%; font-size: 19px; }
.px-support-form { display: grid; gap: 12px; }
.px-support-form input, .px-support-form select, .px-support-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--px-border); border-radius: 10px; background: white; color: var(--px-text); padding: 11px 12px; font: inherit; }
.px-support-form textarea { min-height: 140px; resize: vertical; }
.px-support-success { padding: 18px; border-radius: 12px; background: #edf8ef; color: #25633c; }
@media (max-width: 620px) {
  .px-commerce-head, .px-commerce-body { padding-left: 20px; padding-right: 20px; }
  #mspowerpoint-pro-button { right: 70px; }
  .px-commerce-backdrop .paywall-modal { width: min(358px, calc(var(--editor-visible-width,100vw) - 32px)); max-height: calc(100dvh - 32px); border-radius: 18px; }
  .paywall-header { min-height: 136px; padding: 20px 52px 16px 20px; }
  .paywall-modal .paywall-header h2 { max-width: 285px; font-size: 23px; line-height: 28px; }
  .paywall-price-row { margin-top: 10px; }
  .paywall-old-price { font-size: 12px; }
  .paywall-discount { padding: 4px 8px; font-size: 11px; }
  .paywall-body { padding: 20px 20px 16px; gap: 18px; }
  .paywall-benefits { gap: 3px; }
  .paywall-benefits li { min-height: 24px; padding-left: 24px; font-size: 13px; line-height: 24px; }
  .paywall-benefits li::before { font-size: 15px; }
  .paywall-modal .paywall-consent label { grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 11px; line-height: 16px; }
  .paywall-actions { padding: 10px 20px 14px; gap: 8px; }
  .paywall-payment { min-height: 46px; font-size: 13px; }
  .paywall-card-icon { width: 20px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) { .px-commerce-layer * { scroll-behavior: auto !important; } }

.px-commerce-layer :focus-visible{outline:3px solid #b44824;outline-offset:3px}.support-history{max-height:35vh;overflow:auto;overflow-wrap:anywhere}.px-commerce-head a{color:#b44824}.paywall-consent span{color:#626473}

/* Keep dialogs within Safari's visible area, including keyboard and display cutouts. */
.px-commerce-layer{inset:auto;left:var(--editor-offset-left,0px);width:var(--editor-visible-width,100vw);top:var(--editor-offset-top,0px);height:var(--editor-viewport,100dvh)}
.px-commerce-backdrop{padding:max(16px,var(--safe-top,0px)) max(16px,var(--safe-right,0px)) max(16px,var(--safe-bottom,0px)) max(16px,var(--safe-left,0px))}
.px-commerce-card,.paywall-modal{max-height:calc(var(--editor-viewport,100dvh) - var(--safe-top,0px) - var(--safe-bottom,0px) - 32px)}
.px-commerce-auth{height:min(calc(var(--auth-height,600px) + 44px),calc(var(--editor-viewport,100dvh) - var(--safe-top,0px) - var(--safe-bottom,0px) - 32px))}
@media(max-width:760px){.px-commerce-layer input:not([type=checkbox]),.px-commerce-layer textarea,.px-commerce-layer select{font-size:16px}}
