/**
 * WPsigner checkout — Stripe hosted layout (full-bleed split).
 * Left: gray summary · Right: white payment form.
 *
 * @package WPS_License_Manager
 */

body.wpslm-checkout-brand {
    --wpslm-co-bg: #f6f9fc;
    --wpslm-co-surface: #ffffff;
    --wpslm-co-ink: #30313d;
    --wpslm-co-muted: #6d6e78;
    --wpslm-co-line: #e6e8eb;
    --wpslm-co-brand: #3b81f5;
    --wpslm-co-cta: #635bff;
    --wpslm-co-ok: #0d9488;
    --wpslm-co-ok-soft: #ecfdf5;
    --wpslm-co-danger: #df1b41;
    --wpslm-co-danger-soft: #fef2f2;
    --wpslm-co-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;

    margin: 0 !important;
    padding: 0 !important;
    background: var(--wpslm-co-surface) !important;
    color: var(--wpslm-co-ink);
    font-family: var(--wpslm-co-font);
    -webkit-font-smoothing: antialiased;
    /* clip keeps sticky left column working (hidden can break it) */
    overflow-x: clip;
}

/* Kill Astra / theme chrome + width cages */
body.wpslm-checkout-brand .main-header-bar,
body.wpslm-checkout-brand .ast-above-header-bar,
body.wpslm-checkout-brand .ast-below-header-bar,
body.wpslm-checkout-brand #ast-desktop-header,
body.wpslm-checkout-brand #ast-mobile-header,
body.wpslm-checkout-brand .site-header,
body.wpslm-checkout-brand .site-footer,
body.wpslm-checkout-brand footer#colophon,
body.wpslm-checkout-brand .ast-footer-overlay,
body.wpslm-checkout-brand .site-below-footer-wrap,
body.wpslm-checkout-brand .ast-small-footer,
body.wpslm-checkout-brand .ast-footer-copyright,
body.wpslm-checkout-brand .entry-header,
body.wpslm-checkout-brand .ast-breadcrumbs-wrapper,
body.wpslm-checkout-brand .ast-primary-header-bar,
body.wpslm-checkout-brand #ast-mobile-popup {
    display: none !important;
}

body.wpslm-checkout-brand #page,
body.wpslm-checkout-brand #content,
body.wpslm-checkout-brand .site-content,
body.wpslm-checkout-brand .ast-container,
body.wpslm-checkout-brand .site-content > .ast-container,
body.wpslm-checkout-brand .content-area,
body.wpslm-checkout-brand .site-main,
body.wpslm-checkout-brand article.hentry,
body.wpslm-checkout-brand .entry-content,
body.wpslm-checkout-brand .ast-article-single,
body.wpslm-checkout-brand .woocommerce,
body.wpslm-checkout-brand .wpslm-co-shell {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

body.wpslm-checkout-brand #primary,
body.wpslm-checkout-brand #main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

body.wpslm-checkout-brand .wpslm-co-top,
body.wpslm-checkout-brand .wpslm-co-intro,
body.wpslm-checkout-brand .wpslm-co-steps,
body.wpslm-checkout-brand .wpslm-co-benefits,
body.wpslm-checkout-brand .wpslm-co-guarantee,
body.wpslm-checkout-brand .wpslm-co-footnote,
body.wpslm-checkout-brand .wpslm-co-trust-row {
    display: none !important;
}

body.wpslm-checkout-brand .wpslm-co-hidden-chrome,
body.wpslm-checkout-brand .woocommerce-form-coupon-toggle,
body.wpslm-checkout-brand .woocommerce-form-login-toggle,
body.wpslm-checkout-brand form.checkout_coupon,
body.wpslm-checkout-brand .woocommerce-additional-fields,
body.wpslm-checkout-brand .woocommerce-billing-fields > h3 {
    display: none !important;
}

/* Returning customer login (in right column, outside checkout <form>) */
.wpslm-co-login {
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.wpslm-co-login__inner {
    padding: 12px 14px;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background: #f8fafc;
}

.wpslm-co-login__prompt {
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--wpslm-co-ink) !important;
}

.wpslm-co-login__toggle {
    margin-left: 4px;
    font-weight: 650 !important;
    color: var(--wpslm-co-cta) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* Checkout language selector */
.wpslm-co-lang {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
}

.wpslm-lang-switcher--checkout {
    position: relative;
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px 7px 10px;
    border: 1px solid var(--wpslm-co-line);
    border-radius: 999px;
    background: #fff;
    color: var(--wpslm-co-ink);
    cursor: pointer;
    font-family: var(--wpslm-co-font);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__trigger:hover {
    border-color: #c9cdd6;
    background: #f8fafc;
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__flag {
    font-size: 1rem;
    line-height: 1;
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__chevron {
    opacity: 0.65;
    transition: transform 0.15s ease;
}

.wpslm-lang-switcher--checkout.is-open .wpslm-lang-switcher__chevron {
    transform: rotate(180deg);
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 6px;
    border: 1px solid var(--wpslm-co-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    z-index: 40;
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__menu[hidden] {
    display: none !important;
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--wpslm-co-ink);
    font-family: var(--wpslm-co-font);
    font-size: 0.86rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__option:hover,
.wpslm-lang-switcher--checkout .wpslm-lang-switcher__option.is-active {
    background: #f4f6fb;
    color: var(--wpslm-co-cta);
}

.wpslm-lang-switcher--checkout .wpslm-lang-switcher__option:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ── Full-bleed Stripe split ───────────────────────────── */
body.wpslm-checkout-brand form.woocommerce-checkout,
body.wpslm-checkout-brand form#order_review {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/*
 * Hide Woo’s default stacked markup until JS builds the Stripe split.
 * Prevents the “misaligned flash” on first paint.
 * form#order_review = Billing → Pay (order-pay), not classic checkout.
 */
body.wpslm-checkout-brand--checkout form.woocommerce-checkout:not(.wpslm-co-layout-ready),
body.wpslm-checkout-brand--checkout form#order_review:not(.wpslm-co-layout-ready) {
    opacity: 0 !important;
    visibility: hidden !important;
    min-height: 100vh;
    pointer-events: none;
}

body.wpslm-checkout-brand--checkout form.woocommerce-checkout.wpslm-co-layout-ready,
body.wpslm-checkout-brand--checkout form#order_review.wpslm-co-layout-ready {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transition: opacity 0.12s ease;
}

/* Soft placeholder while the split mounts */
body.wpslm-checkout-brand--checkout:not(.wpslm-co-paint-ready)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 20;
    background:
        linear-gradient(90deg, #f6f9fc 0 34%, #ffffff 34% 100%);
    pointer-events: none;
}

body.wpslm-checkout-brand--checkout.wpslm-co-paint-ready::before {
    display: none;
}

.wpslm-co-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.wpslm-co-aside,
.wpslm-co-main {
    min-width: 0;
    box-sizing: border-box;
}

/* LEFT — order summary (gray), compact for one screen */
.wpslm-co-aside {
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 129, 245, 0.08), transparent 34%),
        var(--wpslm-co-bg);
    border: 0;
    border-bottom: 1px solid var(--wpslm-co-line);
    padding: 32px 24px 20px;
    display: flex;
    flex-direction: column;
}

.wpslm-co-aside-stack {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpslm-co-aside__header {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wpslm-co-aside__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    margin: 0;
    overflow: visible;
    flex: 0 1 auto;
    min-width: 0;
}

.wpslm-co-aside__brand .wpslm-co-brand__logo,
.wpslm-co-aside__brand svg.wpslm-co-brand__logo,
.wpslm-co-aside__brand img.wpslm-co-brand__logo {
    display: block !important;
    height: 52px !important;
    width: auto !important;
    max-width: 118px !important;
    overflow: visible !important;
}

.wpslm-co-aside__brand-name {
    display: none !important;
}

.wpslm-co-aside__secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #52606f;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.wpslm-co-aside__secure-icon {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7f8f0;
    color: #0b7a50;
}

.wpslm-co-aside__secure-icon svg {
    width: 11px;
    height: 11px;
}

.wpslm-co-pay-hero {
    margin: 2px 0 0;
}

.wpslm-co-pay-hero__label {
    display: block;
    margin: 0 0 3px !important;
    color: var(--wpslm-co-muted);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.wpslm-co-pay-hero__amount,
.wpslm-co-pay-hero__amount .amount,
.wpslm-co-pay-hero__amount .woocommerce-Price-amount {
    margin: 0 !important;
    font-size: clamp(2rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--wpslm-co-ink);
}

.wpslm-co-aside__footer {
    margin: 8px 0 0 !important;
    padding-top: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--wpslm-co-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.wpslm-co-aside__footer a {
    color: var(--wpslm-co-muted);
    text-decoration: none;
}

.wpslm-co-aside__footer a:hover {
    text-decoration: underline;
    color: var(--wpslm-co-ink);
}

/* RIGHT — payment form (white) */
.wpslm-co-main {
    background: var(--wpslm-co-surface);
    padding: 32px 24px 48px;
}

.wpslm-co-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.wpslm-co-panel > #customer_details {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.wpslm-co-panel > .wpslm-co-pay-card {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.wpslm-co-section-label {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wpslm-co-ink);
}

/* Removed — misleading when Card is listed with other methods */
.wpslm-co-or-pay {
    display: none !important;
}

.wpslm-co-notices {
    max-width: 420px;
    margin: 0 auto 16px;
    display: grid;
    gap: 8px;
}

.wpslm-co-notices:empty {
    display: none;
}

/* Products */
.wpslm-co-products {
    display: grid;
    gap: 10px;
    margin: 0;
}

.wpslm-co-product {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.wpslm-co-product__body {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    align-items: center;
    min-width: 0;
}

.wpslm-co-product__media {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8eef5;
}

.wpslm-co-product__media img,
.wpslm-co-product__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpslm-co-product__name {
    grid-column: 1;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
}

.wpslm-co-product__desc {
    display: none !important;
}

.wpslm-co-product__credit {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--wpslm-co-ok);
}

.wpslm-co-product__price {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--wpslm-co-ink);
    text-align: right;
    white-space: nowrap;
}

/* Coupon — clear input well against gray summary */
.wpslm-co-coupon {
    margin: 2px 0 0;
    padding: 12px;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wpslm-co-coupon__label {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--wpslm-co-ink) !important;
}

.wpslm-co-coupon__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
}

.wpslm-co-coupon__row .input-text {
    border: 1px solid #c5ceda !important;
    border-radius: 8px !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    background: #f8fafc !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    font-size: 0.9rem !important;
    color: var(--wpslm-co-ink) !important;
}

.wpslm-co-coupon__row .input-text::placeholder {
    color: #8b96a8 !important;
    opacity: 1;
}

.wpslm-co-coupon__row .input-text:focus {
    border-color: var(--wpslm-co-cta) !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15) !important;
}

.wpslm-co-coupon__btn {
    border: 0 !important;
    background: var(--wpslm-co-cta) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
    min-height: 42px !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
    cursor: pointer;
}

.wpslm-co-coupon__btn:hover {
    filter: brightness(1.06);
}

.wpslm-co-coupon-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wpslm-co-coupon-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--wpslm-co-ok-soft);
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
}

.wpslm-co-coupon-notices {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.wpslm-co-coupon-notices:empty {
    display: none;
}

.wpslm-co-coupon-notices .woocommerce-message,
.wpslm-co-coupon-notices .woocommerce-error,
.wpslm-co-coupon-notices .woocommerce-info,
.wpslm-co-coupon-notices .wpslm-co-notice {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}

.wpslm-co-coupon-notices .woocommerce-message,
.wpslm-co-coupon-notices .woocommerce-message li {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.wpslm-co-coupon-notices .woocommerce-error,
.wpslm-co-coupon-notices .woocommerce-error li {
    background: #fef2f2 !important;
    color: #9f1239 !important;
    border: 1px solid #fecdd3 !important;
}

.wpslm-co-coupon-notices .woocommerce-message::before,
.wpslm-co-coupon-notices .woocommerce-error::before,
.wpslm-co-coupon-notices .woocommerce-info::before {
    display: none !important;
}

/* Trust badges — compact reassurance card */
.wpslm-co-badges {
    list-style: none;
    margin: 6px 0 0 !important;
    padding: 12px !important;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.wpslm-co-badges__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--wpslm-co-ink);
    line-height: 1.25;
    white-space: nowrap;
}

.wpslm-co-badges__icon {
    display: inline-flex;
    color: var(--wpslm-co-cta);
    flex: 0 0 auto;
}

.wpslm-co-badges__icon svg {
    width: 16px;
    height: 16px;
}

/* Totals — only money rows (products already listed above) */
.wpslm-co-totals-host {
    margin: 0;
    padding-top: 2px;
}

.wpslm-co-totals-host .shop_table,
body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-checkout-review-order-table {
    margin: 0;
    border: 0 !important;
    width: 100%;
    border-collapse: collapse;
}

body.wpslm-checkout-brand #order_review.wpslm-co-review--payment-only > .woocommerce-checkout-review-order-table {
    display: none;
}

/* Hide Product/Subtotal header + line items — products live in .wpslm-co-products */
body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table thead,
body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table tbody,
body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table .cart_item,
body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table .order_item,
body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-checkout-review-order-table thead,
body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-checkout-review-order-table .cart_item {
    display: none !important;
}

body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table th,
body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table td,
body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-checkout-review-order-table th,
body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-checkout-review-order-table td {
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    padding: 6px 0 !important;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--wpslm-co-muted);
    background: transparent !important;
}

body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table tr,
body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-checkout-review-order-table tr {
    border: 0 !important;
}

body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table tfoot tr:first-child th,
body.wpslm-checkout-brand .wpslm-co-totals-host .shop_table tfoot tr:first-child td,
body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-checkout-review-order-table tfoot tr:first-child th,
body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-checkout-review-order-table tfoot tr:first-child td {
    padding-top: 10px !important;
    border-top: 1px solid var(--wpslm-co-line) !important;
}

body.wpslm-checkout-brand .wpslm-co-totals-host .order-total th,
body.wpslm-checkout-brand .wpslm-co-totals-host .order-total td,
body.wpslm-checkout-brand .wpslm-co-totals-host .order-total .amount {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--wpslm-co-ink) !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--wpslm-co-line) !important;
}

body.wpslm-checkout-brand .wpslm-co-totals-host .cart-discount .amount {
    color: var(--wpslm-co-ok);
}

body.wpslm-checkout-brand .wpslm-co-totals-host .woocommerce-remove-coupon {
    margin-left: 6px;
    font-size: 0.8rem;
    color: var(--wpslm-co-muted);
}

body.wpslm-checkout-brand .cart-discount .amount {
    color: var(--wpslm-co-ok);
}

/* Float kill */
body.wpslm-checkout-brand #customer_details,
body.wpslm-checkout-brand #order_review,
body.wpslm-checkout-brand #order_review_heading,
body.wpslm-checkout-brand .woocommerce-checkout #payment,
body.wpslm-checkout-brand form#order_review #payment,
body.wpslm-checkout-brand .col2-set,
body.wpslm-checkout-brand .col2-set .col-1,
body.wpslm-checkout-brand .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: none !important;
}

.wpslm-co-pay-card > #order_review,
.wpslm-co-pay-card > .wpslm-co-order-pay-review,
.wpslm-co-pay-card > #payment {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    border: 0;
    box-shadow: none;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Fields — Stripe inset labels (label inside the box) */
body.wpslm-checkout-brand .woocommerce form .form-row {
    margin: 0 0 10px;
    padding: 0;
    float: none !important;
    width: 100% !important;
}

body.wpslm-checkout-brand .woocommerce form .form-row-first,
body.wpslm-checkout-brand .woocommerce form .form-row-last {
    float: none !important;
    width: 100% !important;
}

body.wpslm-checkout-brand .woocommerce form .form-row label {
    display: block;
    color: var(--wpslm-co-muted);
    font-size: 0.72rem;
    font-weight: 500;
    margin: 0 0 2px;
    line-height: 1.2;
}

body.wpslm-checkout-brand .woocommerce form .form-row label .required,
body.wpslm-checkout-brand .woocommerce form .form-row label .optional {
    display: none !important;
}

body.wpslm-checkout-brand .woocommerce form .input-text,
body.wpslm-checkout-brand .woocommerce form select,
body.wpslm-checkout-brand .woocommerce form textarea,
body.wpslm-checkout-brand .select2-container--default .select2-selection--single {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    min-height: 22px;
    padding: 0 !important;
    color: var(--wpslm-co-ink);
    box-shadow: none !important;
    font-size: 0.92rem;
    width: 100% !important;
}

body.wpslm-checkout-brand .wpslm-co-field-hidden,
body.wpslm-checkout-brand #billing_address_2_field,
body.wpslm-checkout-brand #billing_company_field,
body.wpslm-checkout-brand #billing_phone_field {
    display: none !important;
}

body.wpslm-checkout-brand .wpslm-co-section-label {
    margin: 0 0 8px;
    font-size: 0.92rem;
}

body.wpslm-checkout-brand .wpslm-co-panel .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Email — single inset box, label inside (no “Contact” heading) */
body.wpslm-checkout-brand .wpslm-co-field-email {
    margin: 0 !important;
    padding: 8px 12px 7px !important;
    border: 1px solid var(--wpslm-co-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    float: none !important;
    width: 100% !important;
}

body.wpslm-checkout-brand .wpslm-co-field-email:focus-within {
    border-color: var(--wpslm-co-cta) !important;
    box-shadow: 0 0 0 1px rgba(99, 91, 255, 0.25);
}

body.wpslm-checkout-brand .wpslm-co-field-email label {
    display: block !important;
    margin: 0 0 1px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: var(--wpslm-co-muted) !important;
}

body.wpslm-checkout-brand .wpslm-co-field-email .input-text {
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 22px !important;
    padding: 1px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    color: var(--wpslm-co-ink) !important;
}

body.wpslm-checkout-brand .wpslm-co-field-email .input-text:focus {
    outline: none !important;
    box-shadow: none !important;
}

body.wpslm-checkout-brand .woocommerce-account-fields,
body.wpslm-checkout-brand #account_password_field {
    display: none !important;
}

/* Address group — stacked cells, labels inside */
.wpslm-co-address-box {
    margin: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.wpslm-co-address-box__title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--wpslm-co-ink);
}

.wpslm-co-address-box__fields {
    border: 1px solid var(--wpslm-co-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.wpslm-co-address-box__name,
.wpslm-co-address-box__locality,
.wpslm-co-address-box__fields > .form-row {
    border: 0;
    border-bottom: 1px solid var(--wpslm-co-line);
    margin: 0 !important;
    background: #fff;
}

.wpslm-co-address-box__fields > .form-row:last-child,
.wpslm-co-address-box__locality:last-child {
    border-bottom: 0;
}

/* Name + last name — true two columns */
.wpslm-co-address-box__name {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.wpslm-co-address-box__name .form-row {
    margin: 0 !important;
    padding: 8px 12px 7px !important;
    border: 0 !important;
    border-radius: 0 !important;
    float: none !important;
    width: 100% !important;
    clear: none !important;
}

.wpslm-co-address-box__name .form-row:first-child {
    border-right: 1px solid var(--wpslm-co-line) !important;
}

.wpslm-co-address-box__fields > .form-row {
    padding: 8px 12px 7px !important;
    float: none !important;
    width: 100% !important;
}

/* City / State / Postcode row */
.wpslm-co-address-box__locality {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

body.wpslm-checkout-brand.wpslm-co-has-state .wpslm-co-address-box__locality {
    grid-template-columns: 1.1fr 1fr 0.9fr;
}

.wpslm-co-address-box__locality .form-row {
    margin: 0 !important;
    padding: 8px 12px 7px !important;
    border: 0 !important;
    border-right: 1px solid var(--wpslm-co-line) !important;
    float: none !important;
    width: 100% !important;
}

.wpslm-co-address-box__locality .form-row:last-child {
    border-right: 0 !important;
}

body.wpslm-checkout-brand #billing_state_field.wpslm-co-state-idle {
    display: none !important;
}

.wpslm-co-address-box .form-row label {
    margin: 0 0 1px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: var(--wpslm-co-muted) !important;
}

.wpslm-co-address-box .input-text,
.wpslm-co-address-box select,
.wpslm-co-address-box .select2-container--default .select2-selection--single {
    border: 0 !important;
    border-radius: 0 !important;
    min-height: 22px !important;
    padding: 1px 0 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
}

.wpslm-co-address-box .select2-container {
    width: 100% !important;
}

.wpslm-co-address-box__fields:focus-within {
    border-color: var(--wpslm-co-cta);
    box-shadow: 0 0 0 1px rgba(99, 91, 255, 0.2);
}

body.wpslm-checkout-brand #payment .wc-credit-card-form .input-text,
body.wpslm-checkout-brand #payment .wc-payment-form .input-text {
    min-height: 52px !important;
    padding: 0 14px !important;
    font-size: 1rem !important;
}

body.wpslm-checkout-brand .woocommerce form .input-text:focus,
body.wpslm-checkout-brand .woocommerce form select:focus {
    outline: none;
    box-shadow: none !important;
}

/* Payment methods — single Stripe-style box (rows, not loose cards) */
body.wpslm-checkout-brand .woocommerce-checkout-payment {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

body.wpslm-checkout-brand #payment ul.payment_methods {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 1px solid var(--wpslm-co-line);
    border-radius: 8px;
    background: #fff;
    overflow: visible;
    box-shadow: none;
}

body.wpslm-checkout-brand #payment ul.payment_methods > li.wc_payment_method {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    margin: 0;
    padding: 14px 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
    overflow: visible;
    box-shadow: none;
}

body.wpslm-checkout-brand #payment ul.payment_methods > li.wc_payment_method.wpslm-co-method-active,
body.wpslm-checkout-brand #payment ul.payment_methods > li.wc_payment_method:has(> input:checked) {
    align-items: start;
}

body.wpslm-checkout-brand #payment ul.payment_methods > li.wc_payment_method:not(.wpslm-co-method-active):not(:has(> input:checked)) > .payment_box {
    display: none !important;
}

body.wpslm-checkout-brand #payment ul.payment_methods > li.wc_payment_method + li.wc_payment_method {
    border-top: 1px solid var(--wpslm-co-line);
}

body.wpslm-checkout-brand.wpslm-co-no-applepay #payment li.wc_payment_method.payment_method_ppcp-applepay,
body.wpslm-checkout-brand.wpslm-co-no-applepay #payment li.wc_payment_method.payment_method_ppcp_applepay,
body.wpslm-checkout-brand.wpslm-co-no-applepay #payment input#payment_method_ppcp-applepay,
body.wpslm-checkout-brand.wpslm-co-no-applepay #payment input#payment_method_ppcp_applepay,
body.wpslm-checkout-brand.wpslm-co-no-applepay #payment .woocommerce-paypal-payments-applepay-button-wrapper,
body.wpslm-checkout-brand.wpslm-co-no-applepay #payment #ppc-button-ppcp-applepay {
    display: none !important;
}

body.wpslm-checkout-brand #payment ul.payment_methods > li > input.input-radio {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    margin: 2px 0 0 !important;
    width: 16px;
    height: 16px;
    accent-color: var(--wpslm-co-cta);
    z-index: 1;
}

body.wpslm-checkout-brand #payment ul.payment_methods li > label {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.25;
    color: var(--wpslm-co-ink);
    cursor: pointer;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    z-index: 1;
    /* Never stretch over the payment_box / hosted fields */
    height: auto !important;
    max-height: none !important;
}

/* Brand icons — keep GPay/PayPal on the same row; Card icons wrap below title */
body.wpslm-checkout-brand #payment ul.payment_methods li > label img,
body.wpslm-checkout-brand #payment ul.payment_methods li > label .ppcp-card-icon {
    float: none !important;
    display: inline-block;
    flex: 0 0 auto;
    max-height: 20px !important;
    height: 20px !important;
    width: auto !important;
    margin: 0 !important;
    vertical-align: middle;
    object-fit: contain;
}

body.wpslm-checkout-brand #payment ul.payment_methods li:not(.payment_method_ppcp_card):not(.payment_method_ppcp-credit-card-gateway) > label img:first-of-type,
body.wpslm-checkout-brand #payment ul.payment_methods li:not(.payment_method_ppcp_card):not(.payment_method_ppcp-credit-card-gateway) > label .ppcp-card-icon:first-of-type {
    margin-left: auto !important;
}

/* Card title; brands live inside payment_box */
body.wpslm-checkout-brand #payment ul.payment_methods li.payment_method_ppcp_card > label,
body.wpslm-checkout-brand #payment ul.payment_methods li.payment_method_ppcp-credit-card-gateway > label {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.25;
}

body.wpslm-checkout-brand #payment .wpslm-co-card-brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 12px;
}

body.wpslm-checkout-brand #payment .wpslm-co-card-brands img,
body.wpslm-checkout-brand #payment .wpslm-co-card-brands .ppcp-card-icon {
    max-height: 22px !important;
    height: 22px !important;
    width: auto !important;
    margin: 0 !important;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
    background: #fff;
}

body.wpslm-checkout-brand #payment ul.payment_methods > li.wc_payment_method:has(> input:checked),
body.wpslm-checkout-brand #payment ul.payment_methods > li.wc_payment_method.wpslm-co-method-active {
    background: #fff;
}

body.wpslm-checkout-brand #payment ul.payment_methods > li.wc_payment_method:has(> input:checked) > label,
body.wpslm-checkout-brand #payment ul.payment_methods > li.wpslm-co-method-active > label {
    color: var(--wpslm-co-ink);
    font-weight: 600;
}

/* Expanded method content — above radios/labels so hosted fields stay clickable */
body.wpslm-checkout-brand #payment div.payment_box {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    z-index: 6;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid var(--wpslm-co-line) !important;
    margin: 10px 0 0 !important;
    padding: 12px 0 0 !important;
    color: var(--wpslm-co-muted);
    border-radius: 0;
    width: 100% !important;
    box-sizing: border-box;
    pointer-events: auto !important;
}

body.wpslm-checkout-brand #payment div.payment_box::before {
    display: none !important;
}

body.wpslm-checkout-brand #payment div.payment_box > p:first-child {
    margin: 0 0 8px !important;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--wpslm-co-muted);
}

/*
 * Payment Plugins card form — polished Stripe Payment Element style.
 * Critical: never cover hosted-field iframes (no overflow:hidden shells,
 * no catchers, pointer-events auto, payment_box above the method label).
 */
body.wpslm-checkout-brand #payment li.payment_method_ppcp_card .payment_box,
body.wpslm-checkout-brand #payment li.payment_method_ppcp-credit-card-gateway .payment_box,
body.wpslm-checkout-brand #payment .wpslm-co-card-box,
body.wpslm-checkout-brand #payment .wc-ppcp-card-payment-form,
body.wpslm-checkout-brand #payment .wc-ppcp_card-payment-method__container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 6;
}

/* Card payment box — light panel, only for card method */
body.wpslm-checkout-brand #payment .wpslm-co-card-box,
body.wpslm-checkout-brand #payment li.payment_method_ppcp_card > .payment_box,
body.wpslm-checkout-brand #payment li.payment_method_ppcp-credit-card-gateway > .payment_box {
    margin-top: 10px !important;
    padding: 12px !important;
    border: 1px solid var(--wpslm-co-line) !important;
    border-top: 1px solid var(--wpslm-co-line) !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    box-shadow: none;
}

body.wpslm-checkout-brand #payment .wpslm-co-card-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

body.wpslm-checkout-brand #payment .wpslm-co-card-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 0;
    padding: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #64748b;
}

body.wpslm-checkout-brand #payment .wpslm-co-card-secure svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--wpslm-co-ok);
}

/*
 * Card fields ONLY — conventional Stripe-style form.
 * Labels above fields; number full width; expiration + CVC in equal columns.
 */
body.wpslm-checkout-brand #payment .ppcp-card-fields--container:not(.card-name-field),
body.wpslm-checkout-brand #payment .wpslm-co-card-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

body.wpslm-checkout-brand #payment .ppcp-card-fields--container.card-name-field {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.wpslm-checkout-brand #payment .ppcp-card-fields--container.card-name-field > .ppcp-card-field--container {
    width: 100% !important;
}

body.wpslm-checkout-brand #payment .card-number-field,
body.wpslm-checkout-brand #payment .card-name-field,
body.wpslm-checkout-brand #payment .wpslm-co-card-row-full,
body.wpslm-checkout-brand #payment .ppcp-card-fields--container:not(.card-name-field) > .card-number-field,
body.wpslm-checkout-brand #payment .ppcp-card-fields--container:not(.card-name-field) > .ppcp-card-field--container.card-number-field,
body.wpslm-checkout-brand #payment .wc-ppcp-save-payment-method--container {
    grid-column: 1 / -1;
}

body.wpslm-checkout-brand #payment .ppcp-card-field--container {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 auto !important;
    align-items: stretch;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
    background: transparent !important;
    border: 0 !important;
    font-size: 16px !important;
    font-family: var(--wpslm-co-font) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: var(--wpslm-co-ink) !important;
}

body.wpslm-checkout-brand #payment .ppcp-card-field--label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #334155 !important;
    line-height: 1.25 !important;
    pointer-events: none !important;
}

/* Bordered boxes where the card data is typed */
body.wpslm-checkout-brand #payment #ppcp-card-number,
body.wpslm-checkout-brand #payment #ppcp-card-exp,
body.wpslm-checkout-brand #payment #ppcp-card-cvv,
body.wpslm-checkout-brand #payment #ppcp-card-name {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    z-index: 3;
    font-size: 16px !important;
    font-family: var(--wpslm-co-font) !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: var(--wpslm-co-ink) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.wpslm-checkout-brand #payment #ppcp-card-number:focus-within,
body.wpslm-checkout-brand #payment #ppcp-card-exp:focus-within,
body.wpslm-checkout-brand #payment #ppcp-card-cvv:focus-within,
body.wpslm-checkout-brand #payment #ppcp-card-name:focus-within {
    border-color: var(--wpslm-co-cta) !important;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.14) !important;
}

body.wpslm-checkout-brand #payment #ppcp-card-number iframe,
body.wpslm-checkout-brand #payment #ppcp-card-exp iframe,
body.wpslm-checkout-brand #payment #ppcp-card-cvv iframe,
body.wpslm-checkout-brand #payment #ppcp-card-name iframe,
body.wpslm-checkout-brand #payment .wc-ppcp-card-payment-form iframe {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 28px !important;
    height: 28px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 4 !important;
    transform: none !important;
    zoom: 1 !important;
}

body.wpslm-checkout-brand #payment .ppcp-card-field-error:empty {
    display: none !important;
}

body.wpslm-checkout-brand #payment .ppcp-card-field-error:not(:empty) {
    display: block !important;
    margin: 2px 0 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    color: var(--wpslm-co-danger) !important;
}

body.wpslm-checkout-brand #payment .ppcp-card-cvv-icon {
    display: none !important;
}

body.wpslm-checkout-brand #payment li.payment_method_ppcp_card .wpslm-co-terms-catcher,
body.wpslm-checkout-brand #payment .wc-ppcp-card-payment-form .wpslm-co-terms-catcher {
    display: none !important;
    pointer-events: none !important;
}

body.wpslm-checkout-brand #payment div.payment_box .woocommerce-SavedPaymentMethods,
body.wpslm-checkout-brand #payment div.payment_box .woocommerce-SavedPaymentMethods-saveNew,
body.wpslm-checkout-brand #payment div.payment_box .form-row.woocommerce-SavedPaymentMethods-saveNew {
    grid-column: 1 / -1;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.wpslm-checkout-brand #payment div.payment_box .woocommerce-SavedPaymentMethods-saveNew label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem !important;
    color: var(--wpslm-co-ink) !important;
    font-weight: 400 !important;
}

/* Wallet / PayPal CTAs — full width, stable height inside the row */
body.wpslm-checkout-brand #payment div.payment_box .paypal-buttons,
body.wpslm-checkout-brand #payment div.payment_box .ppcp-button-wrapper,
body.wpslm-checkout-brand #payment div.payment_box .ppc-button-wrapper,
body.wpslm-checkout-brand #payment div.payment_box [id^="ppc-button-"],
body.wpslm-checkout-brand #payment div.payment_box .woocommerce-paypal-payments-applepay-button-wrapper,
body.wpslm-checkout-brand #payment div.payment_box .woocommerce-paypal-payments-googlepay-button-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-height: 48px;
}

body.wpslm-checkout-brand #payment div.payment_box iframe,
body.wpslm-checkout-brand #payment div.payment_box .paypal-buttons,
body.wpslm-checkout-brand #payment div.payment_box [class*="apple-pay"],
body.wpslm-checkout-brand #payment div.payment_box [class*="gpay"] {
    max-width: 100% !important;
}

body.wpslm-checkout-brand .wpslm-co-aside .paypal-buttons,
body.wpslm-checkout-brand .wpslm-co-aside .ppcp-button-wrapper,
body.wpslm-checkout-brand .wpslm-co-aside .ppc-button-wrapper,
body.wpslm-checkout-brand .wpslm-co-aside #ppc-button,
body.wpslm-checkout-brand .wpslm-co-aside .woocommerce-paypal-payments-applepay-button-wrapper,
body.wpslm-checkout-brand .wpslm-co-aside .woocommerce-paypal-payments-googlepay-button-wrapper {
    display: none !important;
}

body.wpslm-checkout-brand .wpslm-co-pay-card > .ppc-button-wrapper,
body.wpslm-checkout-brand #ppc-button-ppcp-gateway {
    margin: 0 0 12px;
    width: 100%;
}

body.wpslm-checkout-brand.wpslm-co-pay-paypal #order_review > .ppc-button-wrapper,
body.wpslm-checkout-brand.wpslm-co-pay-paypal .wpslm-co-pay-card .ppc-button-wrapper,
body.wpslm-checkout-brand.wpslm-co-pay-paypal #ppc-button-ppcp-gateway {
    display: block !important;
}

body.wpslm-checkout-brand #place_order.ppcp-dcc-order-button {
    display: none !important;
}

body.wpslm-checkout-brand #place_order.wpslm-co-submit {
    display: inline-flex !important;
}

body.wpslm-checkout-brand.wpslm-co-wallet-method #place_order.wpslm-co-submit {
    display: none !important;
}

body.wpslm-checkout-brand #wpslm-co-wallet-host,
body.wpslm-checkout-brand .wpslm-co-wallet-host {
    display: none !important;
}

@media (max-width: 959px) {
    body.wpslm-checkout-brand #payment ul.payment_methods li > label {
        flex-wrap: wrap;
    }

    body.wpslm-checkout-brand #payment ul.payment_methods li > label img:first-of-type,
    body.wpslm-checkout-brand #payment ul.payment_methods li > label .ppcp-card-icon:first-of-type {
        margin-left: 0 !important;
    }

    /* Mobile: kill horizontal drift / white gap on swipe */
    html:has(body.wpslm-checkout-brand) {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    body.wpslm-checkout-brand {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    body.wpslm-checkout-brand .wpslm-co-layout,
    body.wpslm-checkout-brand .wpslm-co-aside,
    body.wpslm-checkout-brand .wpslm-co-main,
    body.wpslm-checkout-brand .wpslm-co-panel,
    body.wpslm-checkout-brand form.woocommerce-checkout,
    body.wpslm-checkout-brand form#order_review {
        max-width: 100% !important;
        overflow-x: clip;
    }
}

/* Narrow phones: keep expiration/CVC in two equal, fluid columns. */
@media (max-width: 599px) {
    .wpslm-co-aside {
        padding: 22px 18px 18px;
    }

    .wpslm-co-aside-stack {
        gap: 10px;
    }

    .wpslm-co-aside__header {
        min-height: 44px;
        gap: 10px;
    }

    .wpslm-co-aside__brand .wpslm-co-brand__logo,
    .wpslm-co-aside__brand svg.wpslm-co-brand__logo,
    .wpslm-co-aside__brand img.wpslm-co-brand__logo {
        height: 46px !important;
        max-width: 104px !important;
    }

    .wpslm-co-aside__secure {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

    .wpslm-co-product {
        grid-template-columns: 44px 1fr;
        padding: 10px;
    }

    .wpslm-co-product__media {
        width: 44px;
        height: 44px;
    }

    .wpslm-co-badges {
        padding: 10px !important;
    }

    body.wpslm-checkout-brand #payment .ppcp-card-fields--container:not(.card-name-field),
    body.wpslm-checkout-brand #payment .wpslm-co-card-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.wpslm-checkout-brand #payment .ppcp-card-field--container,
    body.wpslm-checkout-brand #payment .ppcp-card-fields--container.card-name-field {
        min-width: 0 !important;
    }

    body.wpslm-checkout-brand #payment .ppcp-card-field-error:not(:empty) {
        width: 100%;
    }
}

/* Terms */
body.wpslm-checkout-brand .wpslm-co-terms {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

body.wpslm-checkout-brand .wpslm-co-terms label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--wpslm-co-ink);
    font-weight: 400;
}

body.wpslm-checkout-brand .wpslm-co-terms input[type="checkbox"] {
    margin: 3px 0 0 !important;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--wpslm-co-cta);
}

body.wpslm-checkout-brand .wpslm-co-terms a {
    color: var(--wpslm-co-cta);
    font-weight: 500;
    text-decoration: underline;
}

body.wpslm-checkout-brand .wpslm-co-terms .required {
    color: var(--wpslm-co-danger);
}

body.wpslm-checkout-brand .wpslm-co-terms-catcher {
    position: absolute !important;
    inset: 0 !important;
    z-index: 10050 !important;
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
}

body.wpslm-checkout-brand.wpslm-co-terms-ok .wpslm-co-terms-catcher {
    display: none !important;
}

body.wpslm-checkout-brand .wpslm-co-terms-error {
    margin: 8px 0 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #fecdd3;
    border-left: 3px solid var(--wpslm-co-danger);
    border-radius: 6px;
    background: var(--wpslm-co-danger-soft);
    color: #9f1239;
    font-size: 0.85rem;
    font-weight: 500;
}

body.wpslm-checkout-brand .wpslm-co-terms-error[hidden] {
    display: none !important;
}

body.wpslm-checkout-brand .wpslm-co-terms--pulse {
    outline: 2px solid var(--wpslm-co-cta);
    outline-offset: 4px;
    border-radius: 6px;
}

body.wpslm-checkout-brand #payment iframe {
    max-width: 100%;
    pointer-events: auto !important;
}

body.wpslm-checkout-brand #payment .blockUI.blockOverlay {
    pointer-events: none !important;
}

/* CTA — Stripe purple */
body.wpslm-checkout-brand #place_order,
body.wpslm-checkout-brand .wpslm-co-submit {
    width: 100%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 4px 0 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--wpslm-co-cta);
    color: #fff !important;
    font-family: var(--wpslm-co-font);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: none;
    transition: filter 0.12s ease;
}

body.wpslm-checkout-brand #place_order:hover,
body.wpslm-checkout-brand .wpslm-co-submit:hover {
    filter: brightness(1.08);
}

/* Notices */
.wpslm-co-notices .woocommerce-info,
.wpslm-co-notices .woocommerce-message,
.wpslm-co-notices .woocommerce-error,
.wpslm-co-notices .woocommerce-notice,
.wpslm-co-notices .wpslm-co-notice,
.wpslm-co-notices .woocommerce-NoticeGroup {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid var(--wpslm-co-line) !important;
    border-left: 3px solid var(--wpslm-co-cta) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--wpslm-co-ink) !important;
    box-shadow: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.wpslm-co-notices .woocommerce-info::before,
.wpslm-co-notices .woocommerce-message::before,
.wpslm-co-notices .woocommerce-error::before {
    display: none !important;
}

.wpslm-co-notices .woocommerce-message {
    border-left-color: var(--wpslm-co-ok) !important;
    background: var(--wpslm-co-ok-soft) !important;
}

.wpslm-co-notices .woocommerce-error,
.wpslm-co-notices .woocommerce-error li {
    border-left-color: var(--wpslm-co-danger) !important;
    background: var(--wpslm-co-danger-soft) !important;
    color: #9f1239 !important;
}

/* Order-received UI lives in wpslm-thankyou.css (hook-based, update-safe). */

/* Desktop: narrower summary (left) + wider form (right) — matches VeyoHost */
@media (min-width: 960px) {
    .wpslm-co-layout {
        display: grid;
        grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
        min-height: 100vh;
        width: 100vw;
        max-width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .wpslm-co-aside {
        border-bottom: 0;
        border-right: 1px solid var(--wpslm-co-line);
        position: sticky;
        top: 0;
        align-self: start;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        padding: 40px 28px 24px;
        justify-content: flex-start;
        align-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* WP admin bar offsets sticky summary */
    body.admin-bar .wpslm-co-aside {
        top: 32px;
        height: calc(100vh - 32px);
        max-height: calc(100vh - 32px);
    }

    .wpslm-co-aside-stack {
        margin: 0 auto;
        max-width: 360px;
        width: 100%;
        min-height: 0;
        gap: 12px;
    }

    .wpslm-co-main {
        min-height: 100vh;
        padding: 36px clamp(32px, 4.5vw, 72px) 40px;
        display: flex;
        flex-direction: column;
    }

    .wpslm-co-panel,
    .wpslm-co-notices,
    .wpslm-co-login,
    .wpslm-co-lang {
        margin-left: 0;
        margin-right: 0;
        max-width: min(720px, 100%);
        width: 100%;
    }
}

@media (min-width: 1400px) {
    .wpslm-co-layout {
        grid-template-columns: minmax(280px, 30%) minmax(0, 1fr);
    }

    .wpslm-co-aside {
        padding-left: clamp(40px, 4vw, 72px);
        padding-right: clamp(40px, 4vw, 72px);
    }

    .wpslm-co-main {
        padding-left: clamp(40px, 4vw, 80px);
        padding-right: clamp(40px, 5vw, 96px);
    }

    .wpslm-co-aside-stack {
        max-width: 360px;
    }

    .wpslm-co-panel,
    .wpslm-co-notices,
    .wpslm-co-login,
    .wpslm-co-lang {
        max-width: min(820px, 100%);
    }
}

/* Pay confirming overlay */
.wpslm-co-paybusy[hidden] {
    display: none !important;
}

.wpslm-co-paybusy {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: wpslm-co-paybusy-in 0.22s ease-out;
}

.wpslm-co-paybusy__scrim {
    position: absolute;
    inset: 0;
    background: rgba(24, 28, 42, 0.48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.wpslm-co-paybusy__card {
    position: relative;
    width: min(100%, 360px);
    padding: 28px 26px 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    text-align: center;
    color: var(--wpslm-co-ink);
    font-family: var(--wpslm-co-font);
}

.wpslm-co-paybusy__mark {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
}

.wpslm-co-paybusy__ring {
    display: block;
}

.wpslm-co-paybusy__ring-track,
.wpslm-co-paybusy__ring-spin {
    fill: none;
    stroke-width: 3.5;
}

.wpslm-co-paybusy__ring-track {
    stroke: #e8eaf0;
}

.wpslm-co-paybusy__ring-spin {
    stroke: var(--wpslm-co-cta);
    stroke-linecap: round;
    stroke-dasharray: 60 130;
    transform-origin: 36px 36px;
    animation: wpslm-co-paybusy-spin 1s linear infinite;
}

.wpslm-co-paybusy__shield {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wpslm-co-cta);
}

.wpslm-co-paybusy__check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: wpslm-co-paybusy-check 1.8s ease-in-out infinite;
}

.wpslm-co-paybusy__kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wpslm-co-cta);
}

.wpslm-co-paybusy__title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--wpslm-co-ink);
}

.wpslm-co-paybusy__sub {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--wpslm-co-muted);
}

.wpslm-co-paybusy__steps {
    list-style: none;
    margin: 0;
    padding: 14px 14px 10px;
    border: 1px solid var(--wpslm-co-line);
    border-radius: 12px;
    background: #fafbfe;
    text-align: left;
}

.wpslm-co-paybusy__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 0.86rem;
    color: #9aa1b2;
    transition: color 0.2s ease;
}

.wpslm-co-paybusy__steps li:last-child {
    margin-bottom: 0;
}

.wpslm-co-paybusy__steps li.is-active {
    color: var(--wpslm-co-ink);
    font-weight: 600;
}

.wpslm-co-paybusy__steps li.is-done {
    color: #0f766e;
}

.wpslm-co-paybusy__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #d4d8e2;
    flex: 0 0 14px;
    box-sizing: border-box;
    background: #fff;
    position: relative;
}

.wpslm-co-paybusy__steps li.is-active .wpslm-co-paybusy__dot {
    border-color: var(--wpslm-co-cta);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.16);
    animation: wpslm-co-paybusy-pulse 1.1s ease-in-out infinite;
}

.wpslm-co-paybusy__steps li.is-done .wpslm-co-paybusy__dot {
    border-color: #0d9488;
    background: #0d9488;
}

.wpslm-co-paybusy__steps li.is-done .wpslm-co-paybusy__dot::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

body.wpslm-co-paying {
    overflow: hidden;
}

body.wpslm-co-paying #place_order.wpslm-co-submit {
    pointer-events: none;
    opacity: 0.72;
}

@keyframes wpslm-co-paybusy-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wpslm-co-paybusy-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes wpslm-co-paybusy-check {
    0%,
    35% {
        stroke-dashoffset: 20;
    }
    55%,
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes wpslm-co-paybusy-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.14);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(99, 91, 255, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpslm-co-paybusy,
    .wpslm-co-paybusy__ring-spin,
    .wpslm-co-paybusy__check,
    .wpslm-co-paybusy__steps li.is-active .wpslm-co-paybusy__dot {
        animation: none !important;
    }
}
