/* ==========================================================================
   Admin Styles - Bobasoftware Publisher Paywall
   Extracted from inline <style> blocks for WordPress.org compliance
   ========================================================================== */

/* --- Access & Monetization page --- */
.sp-am-wrap{
    max-width:920px;
    margin:0 -20px 0 -10px;
    padding:8px 16px 28px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;
    background:#f6f7f7;
}
@media (max-width:782px){.sp-am-wrap{margin:0 -12px;padding:8px 12px 24px;}}
.sp-am-wrap > h1{
    font-size:22px;
    font-weight:600;
    letter-spacing:-0.2px;
    line-height:1.45;
    margin:0 0 12px;
}
.sp-am-lede{margin:0 0 16px;color:#6B7280;font-size:13px;line-height:1.45;font-weight:400;}
.sp-am-stack{display:flex;flex-direction:column;gap:22px;margin-top:2px;}
.sp-am-card{
    background:#FFFFFF;
    border:1px solid #E5E7EB;
    border-radius:11px;
    padding:0;
    overflow:hidden;
    box-shadow:0 1px 2px rgba(0,0,0,0.04);
}
.sp-am-card__head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    padding:16px 18px;
    border-bottom:1px solid #F1F5F9;
}
.sp-am-card__head .sp-switch{align-self:center;margin-top:2px;}
.sp-am-card__head > div:first-child{flex:1;min-width:0;}
.sp-am-card__title{margin:0;font-size:14px;font-weight:600;color:#1d2327;line-height:1.45;}
.sp-am-rules-card .sp-am-card__title{font-size:18px;font-weight:650;}
.sp-am-card__desc{margin:5px 0 0;font-size:12px;color:#6B7280;line-height:1.45;max-width:36rem;font-weight:400;}
.sp-am-card__body{padding:18px;background:#FFFFFF;}
.sp-am-card--off .sp-am-card__body{display:none;}
.sp-am-card--off .sp-am-card__head{border-bottom:none;}
.sp-am-section{margin-bottom:0;}
.sp-am-section__title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 6px;font-size:18px;font-weight:650;color:#1d2327;line-height:1.45;letter-spacing:-0.2px;}
.sp-am-section__desc{margin:0 0 0;font-size:12px;color:#6B7280;line-height:1.45;font-weight:400;}
.sp-am-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;}
@media (max-width:782px){.sp-am-grid-2{grid-template-columns:1fr;}}
.sp-am-field{display:flex;flex-direction:column;gap:7px;}
.sp-am-field__label{
    font-size:12px;
    font-weight:500;
    color:#4B5563;
    line-height:1.45;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:4px;
}
.sp-am-field__input{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    font-size:13px;
    line-height:1.45;
    padding:8px 12px;
    min-height:38px;
    border-radius:6px;
    border:1px solid #D1D5DB;
    background:#FFFFFF;
    transition:border-color .15s ease, box-shadow .15s ease;
}
.sp-am-field__input:focus{
    outline:none;
    border-color:#2563EB;
    box-shadow:0 0 0 2px rgba(37,99,235,0.15);
}
.sp-am-card--article .sp-am-card__body .sp-am-field{max-width:100%;}
@media (min-width:783px){.sp-am-card--article .sp-am-card__body .sp-am-field{max-width:min(100%,280px);}}
.sp-switch{position:relative;display:inline-block;width:40px;height:24px;flex-shrink:0;vertical-align:middle;cursor:pointer;}
.sp-switch-input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer;z-index:2;-webkit-appearance:none;appearance:none;border:0;background:transparent;box-shadow:none;}
.sp-switch-input[type="checkbox"]::before,
.sp-switch-input[type="checkbox"]::after{display:none !important;content:none !important;}
.sp-switch-input:focus{outline:none;}
.sp-switch-input:focus-visible + .sp-switch-ui{outline:2px solid #2563EB;outline-offset:2px;border-radius:999px;}
.sp-switch-ui{position:absolute;inset:0;background:#c3c4c7;border-radius:999px;pointer-events:none;z-index:1;transition:background .15s ease;}
.sp-switch-ui::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;background:#fff;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.12);transition:left .15s ease;}
.sp-switch-input:checked + .sp-switch-ui{background:#2563EB;}
.sp-switch-input:checked + .sp-switch-ui::after{left:20px;}
.sp-switch-input:disabled{cursor:default;}
.sp-switch-input:disabled + .sp-switch-ui{opacity:.55;}
.sp-pro-locked-row .sp-switch{cursor:default;pointer-events:none;}
.sp-pro-locked-row .sp-switch .sp-switch-input[type="checkbox"]{
    opacity:0 !important;
    visibility:hidden !important;
    position:absolute;
    width:1px !important;
    height:1px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    -webkit-appearance:none !important;
    appearance:none !important;
}
.sp-pro-locked-row .sp-switch .sp-switch-input[type="checkbox"]::before,
.sp-pro-locked-row .sp-switch .sp-switch-input[type="checkbox"]::after{
    display:none !important;
    content:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    width:0 !important;
    height:0 !important;
}
.sp-pro-locked-row .sp-switch-input:checked + .sp-switch-ui{background:#c3c4c7;}
.sp-pro-locked-row .sp-switch-input:checked + .sp-switch-ui::after{left:2px;}
.sp-tip-wrap{position:relative;display:inline-flex;align-items:center;margin-left:2px;vertical-align:middle;}
.sp-tip-btn{background:transparent;border:none;padding:0 2px;margin:0;cursor:help;color:#6B7280;line-height:1;font-size:14px;border-radius:2px;}
.sp-tip-btn:focus{outline:2px solid #2563EB;outline-offset:1px;}
.sp-tip-btn:focus:not(:focus-visible){outline:none;}
.sp-tip-btn:focus-visible{outline:2px solid #2563EB;outline-offset:1px;}
.sp-tip-bubble{position:absolute;left:0;bottom:100%;margin-bottom:6px;padding:8px 10px;background:#1d2327;color:#f0f0f1;font-size:12px;line-height:1.5;font-weight:400;border-radius:6px;box-shadow:0 2px 6px rgba(0,0,0,.2);width:max-content;max-width:260px;z-index:100000;opacity:0;visibility:hidden;pointer-events:none;}
.sp-tip-wrap:hover .sp-tip-bubble,.sp-tip-wrap:focus-within .sp-tip-bubble{opacity:1;visibility:visible;}
.sp-field-error .sp-am-field__input{border-color:#d63638 !important;box-shadow:0 0 0 1px #d63638 !important;}
.sp-field-error .sp-am-field__input:focus{border-color:#d63638 !important;box-shadow:0 0 0 2px rgba(214,54,56,0.2) !important;}
.sp-error-text{color:#d63638;margin:8px 0 0;font-size:12px;line-height:1.45;display:none;}
.sp-error-text.is-visible{display:block;}
.sp-inline-icon{color:#d63638;font-weight:bold;margin-right:4px;}
.sp-am-form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px;}
.sp-am-wrap .button{
    font-family:inherit;
    font-size:13px;
    font-weight:500;
    line-height:1.45;
    padding:8px 16px;
    min-height:38px;
    border-radius:6px;
    box-sizing:border-box;
    transition:background .15s ease, filter .15s ease, box-shadow .15s ease;
}
.sp-am-wrap .button.button-primary{font-weight:600;}
.sp-am-wrap #sp-reset-access-monetization-defaults:hover{background:#F3F4F6 !important;}
.sp-am-wrap #sp-save-access-monetization:not(:disabled):not(.sp-save-disabled):hover{
    filter:brightness(0.98);
    box-shadow:0 1px 2px rgba(0,0,0,0.06);
}
.sp-am-wrap #sp-save-access-monetization:disabled,
.sp-am-wrap #sp-save-access-monetization.sp-save-disabled{
    opacity:.5;
    cursor:not-allowed;
}
.sp-save-disabled{opacity:.5;cursor:not-allowed;}
.sp-am-rules-card .sp-am-card__body{display:flex;flex-direction:column;gap:0;padding:18px;}
.sp-am-rules-card .sp-am-card__head{padding:16px 18px;}
.sp-am-rules-intro{
    margin:0 0 12px;
    font-size:12px;
    font-weight:500;
    color:#6B7280;
    line-height:1.45;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:4px;
}
.sp-am-radio-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%;box-sizing:border-box;margin:0;padding:0;align-items:stretch;}
@media (max-width:782px){.sp-am-radio-cards{grid-template-columns:1fr;}}
.sp-am-radio-card{position:relative;display:flex;flex-direction:column;margin:0;padding:0;cursor:pointer;min-width:0;overflow:hidden;}
.sp-am-radio-card input{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;opacity:0;}
.sp-am-radio-card__inner{
    display:block;
    flex:1 1 auto;
    width:100%;
    box-sizing:border-box;
    min-height:4.5rem;
    padding:12px 14px;
    border:1px solid #E5E7EB;
    border-radius:8px;
    background:#FFFFFF;
    transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sp-am-radio-card:hover .sp-am-radio-card__inner{border-color:#CBD5F5;}
.sp-am-radio-card:hover input:checked + .sp-am-radio-card__inner{
    border-color:#2563EB;
    background:#F8FAFF;
    box-shadow:inset 0 0 0 1px #2563EB;
}
.sp-am-radio-card input:focus-visible + .sp-am-radio-card__inner{outline:2px solid #2563EB;outline-offset:2px;}
.sp-am-radio-card input:checked + .sp-am-radio-card__inner{
    border-color:#2563EB;
    background:#F8FAFF;
    box-shadow:inset 0 0 0 1px #2563EB;
}
.sp-am-radio-card__title{display:block;font-size:14px;font-weight:600;color:#1d2327;margin:0 0 5px;line-height:1.45;}
.sp-am-radio-card__desc{display:block;font-size:12px;color:#6B7280;line-height:1.45;margin:0;font-weight:400;}
.sp-pro-locked-row .sp-am-radio-card{cursor:default;pointer-events:none;}
.sp-pro-locked-row .sp-am-radio-card__inner,
.sp-pro-locked-row .sp-am-radio-card input:checked + .sp-am-radio-card__inner,
.sp-pro-locked-row .sp-am-radio-card:hover .sp-am-radio-card__inner,
.sp-pro-locked-row .sp-am-radio-card:hover input:checked + .sp-am-radio-card__inner{
    border-color:#E5E7EB !important;
    background:#F9FAFB !important;
    box-shadow:none !important;
}
.sp-pro-locked-row .sp-am-radio-card__title{color:#6B7280;}
.sp-am-field__input:disabled{
    background:#F9FAFB;
    color:#6B7280;
    cursor:not-allowed;
    border-color:#E5E7EB;
}
.sp-am-rules-pro-section{margin:0;}
.sp-am-card--publish-window .sp-am-card__body .sp-am-field{max-width:100%;}
@media (min-width:783px){
    .sp-am-card--publish-window .sp-am-card__body .sp-am-field{max-width:min(100%,280px);}
}
.sp-am-card--rules .sp-am-field--free-limit{margin-top:18px;padding-top:18px;border-top:1px solid #F1F5F9;}
.sp-am-rules-fields{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px 18px;
    align-items:start;
    width:100%;
    box-sizing:border-box;
    margin:18px 0 0;
    padding:18px 0 0;
    border-top:1px solid #F1F5F9;
    clear:both;
}
@media (max-width:782px){.sp-am-rules-fields{grid-template-columns:1fr;}}

/* --- Settings (Stripe) page --- */
@keyframes sp-stripe-sub-fade{
    from{opacity:0;}
    to{opacity:0.8;}
}
@media (prefers-reduced-motion:reduce){
    .sp-stripe-connect-status.is-connected .sp-stripe-connect-status__sub{animation:none;opacity:.8;}
}
.sp-stripe-settings-wrap{
    max-width:640px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;
}
.sp-stripe-settings-wrap > h1{
    font-size:22px;
    font-weight:600;
    letter-spacing:-0.2px;
    line-height:1.45;
}
.sp-stripe-setup-card{
    background:#FFFFFF;
    border:1px solid #E5E7EB;
    border-radius:11px;
    padding:26px 26px 22px;
    margin-top:12px;
    box-sizing:border-box;
    box-shadow:0 1px 2px rgba(0,0,0,0.04);
}
.sp-stripe-setup-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 8px;}
.sp-stripe-setup-card__title{margin:0;font-size:23px;font-weight:700;color:#1d2327;line-height:1.25;letter-spacing:-0.2px;flex:1;min-width:0;}
.sp-stripe-connect-status{text-align:right;flex-shrink:0;padding-top:4px;font-family:inherit;}
.sp-stripe-connect-status__row{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.45;font-weight:500;}
.sp-stripe-connect-status__dot{width:8px;height:8px;border-radius:50%;background:#c3c4c7;flex-shrink:0;}
.sp-stripe-connect-status__label{color:#6B7280;font-weight:500;}
.sp-stripe-connect-status.is-connected .sp-stripe-connect-status__dot{background:#1d7a3a;}
.sp-stripe-connect-status.is-connected .sp-stripe-connect-status__row{font-weight:600;}
.sp-stripe-connect-status.is-connected .sp-stripe-connect-status__label{color:#1d2327;font-weight:600;}
.sp-stripe-connect-status__sub{display:block;font-size:12px;color:#6B7280;margin-top:5px;line-height:1.45;font-weight:500;opacity:.8;}
.sp-stripe-connect-status.is-connected .sp-stripe-connect-status__sub{animation:sp-stripe-sub-fade .4s ease forwards;}
.sp-stripe-connect-status:not(.is-connected) .sp-stripe-connect-status__sub{display:none;}
.sp-email-delivery-status{text-align:right;flex-shrink:0;padding-top:4px;font-family:inherit;}
.sp-email-delivery-status__row{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.45;font-weight:500;}
.sp-email-delivery-status__dot{width:8px;height:8px;border-radius:50%;background:#c3c4c7;flex-shrink:0;}
.sp-email-delivery-status__label{color:#6B7280;font-weight:500;}
.sp-email-delivery-status.is-working .sp-email-delivery-status__dot{background:#1d7a3a;}
.sp-email-delivery-status.is-working .sp-email-delivery-status__row{font-weight:600;}
.sp-email-delivery-status.is-working .sp-email-delivery-status__label{color:#1d2327;font-weight:600;}
.sp-email-delivery-status.is-not-configured .sp-email-delivery-status__dot{background:#F59E0B;}
.sp-email-delivery-status.is-failing .sp-email-delivery-status__dot{background:#EF4444;}
.sp-email-delivery-status.is-failing .sp-email-delivery-status__row{font-weight:600;}
.sp-email-delivery-status.is-failing .sp-email-delivery-status__label{color:#1d2327;font-weight:600;}
.sp-email-delivery-status__error{margin:0 0 16px;font-size:12px;color:#6B7280;line-height:1.5;font-weight:400;}
.sp-stripe-setup-card__lede{margin:0 0 16px;font-size:13px;color:#6B7280;line-height:1.45;font-weight:400;}
.sp-stripe-step{
    display:flex;
    gap:16px;
    align-items:flex-start;
    padding:18px 0;
    border-bottom:none;
    border-top:1px solid #F1F5F9;
}
.sp-stripe-step:first-of-type{border-top:none;padding-top:0;}
.sp-stripe-step:last-of-type{padding-bottom:10px;}
.sp-stripe-step__marker{
    flex-shrink:0;
    width:28px;
    height:28px;
    border-radius:50%;
    border:1px solid #E5E7EB;
    background:#F9FAFB;
    color:#374151;
    font-size:12px;
    font-weight:500;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
}
.sp-stripe-step__content{flex:1;min-width:0;padding-top:3px;}
.sp-stripe-step__title{margin:0 0 14px;font-size:15px;font-weight:600;color:#1d2327;line-height:1.45;}
.sp-stripe-step__field{margin:0;}
.sp-stripe-step__field label{display:block;margin:0 0 7px;font-size:12px;font-weight:500;color:#4B5563;line-height:1.45;}
.sp-stripe-step__helper{margin:5px 0 0;font-size:12px;color:#6B7280;line-height:1.5;max-width:52em;font-weight:400;}
.sp-stripe-step__helper code{font-size:11px;line-height:1.45;}
.sp-stripe-step--textonly .sp-stripe-step__title{margin-bottom:8px;}
.sp-stripe-step--textonly .sp-stripe-step__helper{margin-top:0;}
.sp-stripe-webhook-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.sp-stripe-settings-wrap input.regular-text{
    font-size:13px;
    line-height:1.45;
    padding:8px 12px;
    min-height:38px;
    border-radius:6px;
    box-sizing:border-box;
    border:1px solid #D1D5DB;
    background:#FFFFFF;
    transition:border-color .15s ease, box-shadow .15s ease;
}
.sp-stripe-settings-wrap input.regular-text:focus{
    outline:none;
    border-color:#2563EB;
    box-shadow:0 0 0 2px rgba(37,99,235,0.15);
}
.sp-stripe-webhook-row input.regular-text{
    flex:1;
    min-width:200px;
    font-family:Consolas,Monaco,monospace;
    font-size:13px;
}
.sp-stripe-settings-wrap .button{
    font-family:inherit;
    font-size:13px;
    font-weight:500;
    line-height:1.45;
    padding:8px 16px;
    min-height:38px;
    border-radius:6px;
    box-sizing:border-box;
    transition:background .15s ease, filter .15s ease, box-shadow .15s ease;
}
.sp-stripe-settings-wrap .sp-stripe-webhook-row .button:not(.button-primary){
    transition:background .15s ease;
}
.sp-stripe-settings-wrap .sp-stripe-webhook-row .button:not(.button-primary):hover{
    background:#F3F4F6 !important;
}
.sp-stripe-settings-wrap .button.button-primary{font-weight:600;}
.sp-stripe-settings-wrap #sp-save-settings:not(:disabled):not(.sp-save-disabled):hover{
    filter:brightness(0.98);
    box-shadow:0 1px 2px rgba(0,0,0,0.06);
}
.sp-stripe-settings-wrap #sp-save-settings:disabled,
.sp-stripe-settings-wrap #sp-save-settings.sp-save-disabled{
    opacity:.5;
    cursor:not-allowed;
}
.sp-stripe-setup-card__actions{margin-top:20px;padding-top:8px;}
.sp-save-disabled{opacity:.5;cursor:not-allowed;}
.sp-secret-field{display:block;max-width:100%;}
.sp-stripe-settings-wrap .sp-secret-field input.regular-text.sp-secret-field__masked,
.sp-stripe-settings-wrap .sp-secret-field input.regular-text.sp-secret-field__real{
    display:block;
    font-family:Consolas,Monaco,monospace;
    font-size:13px;
}
.sp-secret-field .sp-secret-field__masked{
    background:#F9FAFB;
    color:#6B7280;
    cursor:default;
}
.sp-secret-field__toggle{
    display:inline-block;
    margin:6px 0 0;
    padding:0;
    background:none;
    border:none;
    font-family:inherit;
    font-size:12px;
    font-weight:500;
    line-height:1.45;
    color:#2563EB;
    text-decoration:none;
    cursor:pointer;
}
.sp-secret-field__toggle:hover,
.sp-secret-field__toggle:focus{
    color:#1D4ED8;
    text-decoration:underline;
    outline:none;
}

/* --- Email status banner (Settings / Onboarding) --- */
.sp-persistent-status-banner{
    display:flex;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:4px;
    margin:0 0 16px;
    padding:12px 16px;
    border-radius:8px;
    font-size:13px;
    line-height:1.45;
    border:1px solid transparent;
}
.sp-persistent-status-banner.is-warning{
    background:#FFFBEB;
    border-color:#FDE68A;
    border-left:3px solid #F59E0B;
    color:#92400E;
}
.sp-persistent-status-banner.is-warning .sp-persistent-status-banner__link{color:#B45309;}
.sp-persistent-status-banner.is-error{
    background:#FEF2F2;
    border-color:#FECACA;
    border-left:3px solid #EF4444;
    color:#991B1B;
}
.sp-persistent-status-banner.is-error .sp-persistent-status-banner__link{color:#DC2626;}
.sp-persistent-status-banner__link{
    font-weight:500;
    text-decoration:underline;
    text-underline-offset:2px;
}
.sp-persistent-status-banner__link:hover{opacity:.85;}

/* --- Setup wizard (Onboarding) --- */
.sp-onboarding-wrap{max-width:920px;margin:20px 0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;}
.sp-onboarding-hero h1{font-size:22px;font-weight:600;letter-spacing:-0.2px;margin:0 0 6px;line-height:1.45;}
.sp-onboarding-hero p{margin:0 0 18px;color:#6B7280;font-size:13px;line-height:1.45;}
.sp-onboarding-steps{display:flex;gap:10px;align-items:center;margin:0 0 16px;flex-wrap:wrap;}
.sp-onboarding-step-pill{display:flex;align-items:center;gap:8px;background:#f6f7f7;border:1px solid #E5E7EB;border-radius:10px;padding:10px 12px;}
a.sp-onboarding-step-pill{text-decoration:none;color:inherit;box-sizing:border-box;}
a.sp-onboarding-step-pill:hover:not(.is-active){border-color:#CBD5E1;background:#fafafa;}
a.sp-onboarding-step-pill:focus{outline:2px solid #2563EB;outline-offset:2px;}
.sp-onboarding-step-pill.is-active{border-color:#2563EB;background:#fff;}
.sp-onboarding-step-pill.is-locked{opacity:.55;cursor:not-allowed;}
.sp-onboarding-step-num{width:26px;height:26px;border-radius:999px;background:#fff;border:1px solid #E5E7EB;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:12px;color:#111827;}
.sp-onboarding-step-pill.is-done .sp-onboarding-step-num{background:#2563EB;border-color:#2563EB;color:#fff;}
.sp-onboarding-step-title{font-size:13px;font-weight:600;color:#111827;}
.sp-onboarding-card{background:#fff;border:1px solid #E5E7EB;border-radius:10px;padding:18px;box-shadow:0 1px 2px rgba(0,0,0,0.04);}
.sp-onboarding-actions{display:flex;gap:10px;align-items:center;margin-top:16px;}
.sp-onboarding-inline-note{margin-top:10px;color:#6B7280;font-size:12px;line-height:1.4;}
.sp-onboarding-options{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px;}
@media(min-width:782px){.sp-onboarding-options{grid-template-columns:1fr 1fr 1fr;}}
.sp-onboarding-option{border:1px solid #E5E7EB;border-radius:10px;padding:14px;background:#fff;}
.sp-onboarding-option input{margin:0 0 0 0;}
.sp-onboarding-option-title{font-weight:600;font-size:14px;margin:0 0 6px;}
.sp-onboarding-option-desc{color:#6B7280;font-size:12px;line-height:1.4;margin:0;}
.sp-onboarding-field{display:flex;flex-direction:column;gap:6px;margin-top:12px;max-width:420px;}
.sp-onboarding-field label{font-size:12px;font-weight:600;color:#4B5563;}
.sp-onboarding-field input[type="number"], .sp-onboarding-field input[type="text"]{width:100%;min-height:38px;border-radius:6px;border:1px solid #D1D5DB;padding:8px 12px;box-sizing:border-box;}
.sp-onboarding-status{display:flex;align-items:center;gap:8px;margin-top:8px;color:#6B7280;font-size:12px;}
.sp-onboarding-dot{width:10px;height:10px;border-radius:999px;background:#9CA3AF;}
.sp-onboarding-dot.is-connected{background:#22C55E;}
.sp-onboarding-error{margin:0 0 14px;}
.sp-onboarding-summary{margin:0 0 16px;}
.sp-onboarding-summary-section{margin-top:14px;padding-top:14px;border-top:1px solid #F1F5F9;}
.sp-onboarding-summary-section:first-of-type{border-top:none;padding-top:0;margin-top:0;}
.sp-onboarding-summary-section h3{margin:0 0 6px;font-size:13px;font-weight:600;color:#111827;}
.sp-onboarding-summary-section p{margin:0;color:#4B5563;font-size:13px;line-height:1.45;}
.sp-onboarding-summary-group{margin-top:18px;padding-top:18px;border-top:1px solid #F1F5F9;}
.sp-onboarding-summary-group:first-of-type{border-top:none;padding-top:0;margin-top:0;}
.sp-onboarding-summary-group__title{margin:0 0 10px;font-size:14px;font-weight:600;color:#111827;line-height:1.45;}
.sp-onboarding-summary-group--pro .sp-onboarding-summary-section h3,
.sp-onboarding-summary-group--pro .sp-onboarding-summary-section p{color:#9CA3AF;}
.sp-onboarding-summary-group__title--pro{color:#6B7280;font-weight:600;}
.sp-onboarding-summary-pro-note{margin:12px 0 0;font-size:12px;color:#9CA3AF;line-height:1.45;}
.sp-onboarding-summary-pro-note a{color:#2563EB;text-decoration:underline;text-underline-offset:2px;}
.sp-onboarding-summary-pro-note a:hover{color:#1D4ED8;}
.sp-onboarding-panel-hidden{display:none;}
.sp-onboarding-subblock{margin-top:12px;padding-top:12px;border-top:1px solid #F1F5F9;}
.sp-onboarding-subblock:first-of-type{border-top:none;padding-top:0;margin-top:0;}
.sp-onboarding-field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:520px;}
@media(max-width:600px){.sp-onboarding-field-row{grid-template-columns:1fr;}}
@keyframes sp-onboarding-stripe-sub-fade{from{opacity:0;}to{opacity:.8;}}
@media (prefers-reduced-motion:reduce){
    .sp-onboarding-stripe-setup .sp-stripe-connect-status.is-connected .sp-stripe-connect-status__sub{animation:none;opacity:.8;}
}
.sp-onboarding-stripe-setup .sp-stripe-setup-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 8px;}
.sp-onboarding-stripe-setup .sp-stripe-setup-card__title{margin:0;font-size:18px;font-weight:600;color:#111827;line-height:1.45;letter-spacing:-0.2px;flex:1;min-width:0;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status{text-align:right;flex-shrink:0;padding-top:2px;font-family:inherit;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status__row{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.45;font-weight:500;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status__dot{width:8px;height:8px;border-radius:50%;background:#c3c4c7;flex-shrink:0;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status__label{color:#6B7280;font-weight:500;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status.is-connected .sp-stripe-connect-status__dot{background:#1d7a3a;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status.is-connected .sp-stripe-connect-status__row{font-weight:600;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status.is-connected .sp-stripe-connect-status__label{color:#111827;font-weight:600;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status__sub{display:block;font-size:12px;color:#6B7280;margin-top:5px;line-height:1.45;font-weight:500;opacity:.8;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status.is-connected .sp-stripe-connect-status__sub{animation:sp-onboarding-stripe-sub-fade .4s ease forwards;}
.sp-onboarding-stripe-setup .sp-stripe-connect-status:not(.is-connected) .sp-stripe-connect-status__sub{display:none;}
.sp-onboarding-stripe-setup .sp-stripe-setup-card__lede{margin:0 0 16px;font-size:13px;color:#6B7280;line-height:1.45;font-weight:400;}
.sp-onboarding-stripe-setup .sp-stripe-step{display:flex;gap:16px;align-items:flex-start;padding:18px 0;border-top:1px solid #F1F5F9;}
.sp-onboarding-stripe-setup .sp-stripe-step:first-of-type{border-top:none;padding-top:0;}
.sp-onboarding-stripe-setup .sp-stripe-step:last-of-type{padding-bottom:4px;}
.sp-onboarding-stripe-setup .sp-stripe-step__marker{flex-shrink:0;width:28px;height:28px;border-radius:50%;border:1px solid #E5E7EB;background:#F9FAFB;color:#374151;font-size:12px;font-weight:500;line-height:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;}
.sp-onboarding-stripe-setup .sp-stripe-step__content{flex:1;min-width:0;padding-top:3px;}
.sp-onboarding-stripe-setup .sp-stripe-step__title{margin:0 0 14px;font-size:15px;font-weight:600;color:#111827;line-height:1.45;}
.sp-onboarding-stripe-setup .sp-stripe-step__field{margin:0;}
.sp-onboarding-stripe-setup .sp-stripe-step__field label{display:block;margin:0 0 7px;font-size:12px;font-weight:500;color:#4B5563;line-height:1.45;}
.sp-onboarding-stripe-setup .sp-stripe-step__helper{margin:5px 0 0;font-size:12px;color:#6B7280;line-height:1.5;max-width:52em;font-weight:400;}
.sp-onboarding-stripe-setup .sp-stripe-step__helper code{font-size:11px;line-height:1.45;}
.sp-onboarding-stripe-setup .sp-stripe-step--textonly .sp-stripe-step__title{margin-bottom:8px;}
.sp-onboarding-stripe-setup .sp-stripe-step--textonly .sp-stripe-step__helper{margin-top:0;}
.sp-onboarding-stripe-setup .sp-stripe-webhook-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.sp-onboarding-stripe-setup input.regular-text{font-size:13px;line-height:1.45;padding:8px 12px;min-height:38px;border-radius:6px;box-sizing:border-box;border:1px solid #D1D5DB;background:#FFFFFF;width:100%;max-width:100%;transition:border-color .15s ease,box-shadow .15s ease;}
.sp-onboarding-stripe-setup input.regular-text:focus{outline:none;border-color:#2563EB;box-shadow:0 0 0 2px rgba(37,99,235,0.15);}
.sp-onboarding-stripe-setup .sp-stripe-webhook-row input.regular-text{flex:1;min-width:200px;font-family:Consolas,Monaco,monospace;font-size:13px;}
.sp-onboarding-stripe-setup .sp-stripe-webhook-row .button:not(.button-primary):hover{background:#F3F4F6 !important;}
.sp-onboarding-email-section{margin-top:20px;padding-top:20px;border-top:1px solid #F1F5F9;}
.sp-onboarding-email-notice{margin:0 0 14px !important;}
.sp-onboarding-email-pass{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#1d2327;font-weight:500;line-height:1.45;}
.sp-onboarding-email-pass__dot{width:8px;height:8px;border-radius:50%;background:#1d7a3a;flex-shrink:0;}
.sp-email-setup-ack-panel{margin:0;}
.sp-email-setup-ack-panel__heading{margin:0 0 10px;font-size:15px;font-weight:600;color:#111827;line-height:1.45;display:flex;align-items:flex-start;gap:8px;}
.sp-email-setup-ack-panel__icon{color:#F59E0B;font-size:16px;line-height:1.45;flex-shrink:0;}
.sp-email-setup-ack-panel__body{margin:0 0 14px;font-size:13px;color:#4B5563;line-height:1.5;max-width:52em;}
.sp-email-setup-ack-panel__error{margin:0 0 14px;font-size:12px;color:#6B7280;line-height:1.5;}
.sp-email-setup-ack-panel__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;}
.sp-email-setup-ack-panel__test-form{margin:0;display:inline;}
.sp-email-setup-ack-panel__secondary{margin:0;font-size:13px;line-height:1.45;}
.sp-email-setup-ack-panel__secondary a{color:#2563EB;text-decoration:underline;text-underline-offset:2px;}
.sp-email-setup-ack-panel__secondary a:hover{color:#1D4ED8;}
.sp-continue-despite-warning__confirm{margin-top:4px;}
.sp-continue-despite-warning__consequence{margin:0 0 14px;font-size:13px;color:#4B5563;line-height:1.5;max-width:52em;}
.sp-continue-despite-warning__actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.sp-onboarding-stripe-setup .sp-secret-field{display:block;max-width:100%;}
.sp-onboarding-stripe-setup .sp-secret-field input.regular-text.sp-secret-field__masked,
.sp-onboarding-stripe-setup .sp-secret-field input.regular-text.sp-secret-field__real{display:block;width:100%;max-width:100%;font-family:Consolas,Monaco,monospace;font-size:13px;}
.sp-onboarding-stripe-setup .sp-secret-field .sp-secret-field__masked{background:#F9FAFB;color:#6B7280;cursor:default;}
.sp-onboarding-stripe-setup .sp-secret-field__toggle{display:inline-block;margin:6px 0 0;padding:0;background:none;border:none;font-family:inherit;font-size:12px;font-weight:500;line-height:1.45;color:#2563EB;text-decoration:none;cursor:pointer;}
.sp-onboarding-stripe-setup .sp-secret-field__toggle:hover,
.sp-onboarding-stripe-setup .sp-secret-field__toggle:focus{color:#1D4ED8;text-decoration:underline;outline:none;}

/* --- Help page --- */
.sp-help-wrap{
    max-width:920px;
    margin:0 -20px 0 -10px;
    padding:8px 16px 32px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;
    background:#F9FAFB;
}
@media (max-width:782px){.sp-help-wrap{margin:0 -12px;padding:8px 12px 24px;}}
.sp-help-title{
    margin:0 0 8px;
    font-size:22px;
    font-weight:600;
    letter-spacing:-0.2px;
    line-height:1.45;
    color:#111827;
}
.sp-help-stack{display:flex;flex-direction:column;gap:24px;margin-top:8px;}
.sp-help-section{margin:0;}
.sp-help-section__title{
    margin:0 0 8px;
    font-size:18px;
    font-weight:600;
    line-height:1.45;
    letter-spacing:-0.2px;
    color:#111827;
}
.sp-help-intro{
    margin:0 0 16px;
    font-size:14px;
    font-weight:400;
    line-height:1.5;
    color:#6B7280;
}
.sp-help-steps{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}
@media (max-width:782px){.sp-help-steps{grid-template-columns:1fr;}}
.sp-help-card,
.sp-help-faq-item,
.sp-help-contact-card{
    background:#FFFFFF;
    border:1px solid #E5E7EB;
    border-radius:8px;
    padding:24px;
}
.sp-help-card__title{
    margin:0 0 8px;
    font-size:16px;
    font-weight:600;
    line-height:1.5;
    color:#111827;
}
.sp-help-card__body{
    margin:0;
    font-size:14px;
    font-weight:400;
    line-height:1.5;
    color:#6B7280;
}
.sp-help-faq{display:flex;flex-direction:column;gap:16px;}
.sp-help-faq-item__question{
    margin:0 0 8px;
    font-size:15px;
    font-weight:600;
    line-height:1.5;
    color:#111827;
}
.sp-help-faq-item__answer{
    margin:0;
    font-size:14px;
    font-weight:400;
    line-height:1.5;
    color:#6B7280;
}
.sp-help-contact-card p{
    margin:0;
    font-size:14px;
    font-weight:400;
    line-height:1.5;
    color:#111827;
}
.sp-help-contact__email{
    color:#4F46E5;
    font-weight:500;
    text-decoration:none;
}
.sp-help-contact__email:hover,
.sp-help-contact__email:focus{
    color:#4338CA;
    text-decoration:underline;
}

/* --- Payments page --- */
.sp-payments-table--abandoned tbody tr.sp-payments-row--abandoned td { color: #646970; background-color: #f6f7f7; }
.sp-payments-table--abandoned tbody tr.sp-payments-row--abandoned code { color: #787c82; }
.sp-payments-abandoned-section { margin-top: 24px; }
.sp-payments-abandoned-toggle { margin: 12px 0 16px; }

/* --- Tools page (scenario toggles) --- */
.bspp-tools-scenario-toggles{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    margin:0 0 12px;
}
.sp-tools-scenario-toggle{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin:0;
}
.sp-tools-scenario-toggle input[type="number"]{width:88px;}

.bspp-tools-preview-controls{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.bspp-tools-scenario-heading{
    margin:0;
}
.bspp-tools-reader-state-control{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
}
.bspp-tools-reader-state-control select{
    flex:0 0 auto;
}
.bspp-tools-reader-state-control .description{
    flex:1 1 16em;
    margin:0;
}
