/* Parsona Checkout Recovery 0.1.3 — isolated, core-template recovery surface */
:root {
    --pscr-bg: #f6f6f4;
    --pscr-card: #ffffff;
    --pscr-border: #e7e5e1;
    --pscr-text: #182036;
    --pscr-muted: #737373;
    --pscr-accent: #cda777;
    --pscr-accent-hover: #b98e5c;
    --pscr-danger: #d83c3c;
    --pscr-radius: 16px;
}

html { scroll-behavior: auto !important; }
body.pscr-recovery-shell {
    margin: 0 !important;
    min-height: 100vh;
    background: var(--pscr-bg) !important;
    color: var(--pscr-text) !important;
    overflow-x: hidden !important;
}
body.pscr-recovery-shell #wpadminbar { position: fixed !important; }
body.pscr-recovery-shell .pscr-shell,
body.pscr-recovery-shell .pscr-shell * { box-sizing: border-box; }
body.pscr-recovery-shell .pscr-shell {
    width: 100%;
    min-height: 100vh;
    isolation: isolate;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.pscr-shell__header {
    min-height: 68px;
    padding: 14px clamp(16px, 4vw, 52px);
    background: #fff;
    border-bottom: 1px solid var(--pscr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: static !important;
}
.pscr-shell__brand {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.5;
}
.pscr-shell__safe { font-size: 12px; color: var(--pscr-muted); }

.pscr-steps {
    width: min(1180px, calc(100% - 32px));
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.pscr-step {
    min-width: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ecebea;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--pscr-text) !important;
    text-decoration: none !important;
    opacity: .62;
}
.pscr-step.is-active {
    background: #fff;
    border-color: var(--pscr-border);
    opacity: 1;
    box-shadow: 0 1px 7px rgba(0,0,0,.04);
}
.pscr-step[aria-current="step"] { outline: 2px solid rgba(205,167,119,.22); outline-offset: 1px; }
.pscr-step span {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
}
.pscr-step b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.pscr-shell__main { width: min(1180px, calc(100% - 32px)); margin: 26px auto 56px; }
.pscr-shell__intro { margin: 0 0 18px; }
.pscr-shell__intro h1 { margin: 0 0 6px !important; font-size: clamp(25px, 3vw, 34px) !important; line-height: 1.35 !important; }
.pscr-shell__intro p { margin: 0 !important; font-size: 13px; color: var(--pscr-muted); }

.pscr-commerce {
    width: 100%;
    min-width: 0;
    background: var(--pscr-card);
    border: 1px solid var(--pscr-border);
    border-radius: var(--pscr-radius);
    padding: clamp(18px, 2.5vw, 30px);
    box-shadow: 0 8px 28px rgba(0,0,0,.035);
    overflow: visible !important;
    position: relative;
}

/* Hard reset of dangerous theme layout rules on the recovery surface. */
body.pscr-recovery-shell .pscr-commerce .woocommerce,
body.pscr-recovery-shell .pscr-commerce .woocommerce-cart-form,
body.pscr-recovery-shell .pscr-commerce .cart-collaterals,
body.pscr-recovery-shell .pscr-commerce form.checkout,
body.pscr-recovery-shell .pscr-commerce #customer_details,
body.pscr-recovery-shell .pscr-commerce #order_review,
body.pscr-recovery-shell .pscr-commerce #payment,
body.pscr-recovery-shell .pscr-commerce .woocommerce-checkout-review-order,
body.pscr-recovery-shell .pscr-commerce .woocommerce-billing-fields,
body.pscr-recovery-shell .pscr-commerce .woocommerce-shipping-fields,
body.pscr-recovery-shell .pscr-commerce .woocommerce-additional-fields,
body.pscr-recovery-shell .pscr-commerce .col2-set,
body.pscr-recovery-shell .pscr-commerce .col-1,
body.pscr-recovery-shell .pscr-commerce .col-2 {
    inset: auto !important;
    transform: none !important;
    float: none !important;
    clear: none !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    z-index: auto !important;
}
body.pscr-recovery-shell .pscr-commerce .woocommerce { width: 100% !important; }

/* Shared Woo controls */
body.pscr-recovery-shell .pscr-commerce input,
body.pscr-recovery-shell .pscr-commerce select,
body.pscr-recovery-shell .pscr-commerce textarea,
body.pscr-recovery-shell .pscr-commerce .select2-container,
body.pscr-recovery-shell .pscr-commerce .select2-selection {
    max-width: 100% !important;
}
body.pscr-recovery-shell .pscr-commerce input:not([type="checkbox"]):not([type="radio"]),
body.pscr-recovery-shell .pscr-commerce select,
body.pscr-recovery-shell .pscr-commerce textarea,
body.pscr-recovery-shell .pscr-commerce .select2-selection--single {
    width: 100% !important;
    min-height: 46px !important;
    border: 1px solid #dfe2e8 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
}
body.pscr-recovery-shell .pscr-commerce textarea { min-height: 100px !important; resize: vertical; }
body.pscr-recovery-shell .pscr-commerce input[type="checkbox"],
body.pscr-recovery-shell .pscr-commerce input[type="radio"] { width: auto !important; min-height: 0 !important; }
body.pscr-recovery-shell .pscr-commerce .select2-container { width: 100% !important; }
body.pscr-recovery-shell .pscr-commerce .select2-selection__rendered { line-height: 44px !important; }
body.pscr-recovery-shell .pscr-commerce .select2-selection__arrow { height: 44px !important; }

body.pscr-recovery-shell .pscr-commerce button,
body.pscr-recovery-shell .pscr-commerce .button,
body.pscr-recovery-shell .pscr-commerce a.button,
body.pscr-recovery-shell .pscr-commerce #place_order,
body.pscr-recovery-shell .pscr-commerce .checkout-button {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    z-index: 2 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    min-height: 46px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    border-radius: 11px !important;
}
body.pscr-recovery-shell .pscr-commerce .button.alt,
body.pscr-recovery-shell .pscr-commerce #place_order,
body.pscr-recovery-shell .pscr-commerce .checkout-button {
    background: var(--pscr-accent) !important;
    border-color: var(--pscr-accent) !important;
    color: #fff !important;
}
body.pscr-recovery-shell .pscr-commerce .button.alt:hover,
body.pscr-recovery-shell .pscr-commerce #place_order:hover,
body.pscr-recovery-shell .pscr-commerce .checkout-button:hover { background: var(--pscr-accent-hover) !important; }

body.pscr-recovery-shell .pscr-commerce .woocommerce-error,
body.pscr-recovery-shell .pscr-commerce .woocommerce-message,
body.pscr-recovery-shell .pscr-commerce .woocommerce-info {
    position: static !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    z-index: auto !important;
}

/* ---------------- Cart ---------------- */
body.pscr-recovery-cart .pscr-commerce .woocommerce-cart-form { width: 100% !important; }
body.pscr-recovery-cart .pscr-commerce table.shop_table,
body.pscr-recovery-cart .pscr-commerce table.cart {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
}
body.pscr-recovery-cart .pscr-commerce table.cart th,
body.pscr-recovery-cart .pscr-commerce table.cart td {
    padding: 14px 10px !important;
    vertical-align: middle !important;
    border-color: #ececec !important;
}
body.pscr-recovery-cart .pscr-commerce table.cart .product-remove { width: 44px !important; text-align: center !important; }
body.pscr-recovery-cart .pscr-commerce table.cart .product-thumbnail { width: 92px !important; }
body.pscr-recovery-cart .pscr-commerce table.cart .product-thumbnail img { width: 72px !important; height: 72px !important; object-fit: cover !important; border-radius: 10px !important; }
body.pscr-recovery-cart .pscr-commerce table.cart .product-name { min-width: 220px !important; }
body.pscr-recovery-cart .pscr-commerce table.cart .product-price { width: 180px !important; white-space: normal !important; }
body.pscr-recovery-cart .pscr-commerce table.cart .product-quantity { width: 150px !important; }
/* Recovery intentionally shows only one line-item price. Cart totals still show the order total. */
body.pscr-recovery-cart .pscr-commerce table.cart th.product-subtotal,
body.pscr-recovery-cart .pscr-commerce table.cart td.product-subtotal { display: none !important; }
body.pscr-recovery-cart .pscr-commerce .product-price del {
    opacity: .48 !important;
    text-decoration: line-through 2px !important;
    text-decoration-color: var(--pscr-danger) !important;
    margin-inline-end: 6px;
}
body.pscr-recovery-cart .pscr-commerce .product-price ins { text-decoration: none !important; font-weight: 800 !important; }
body.pscr-recovery-cart .pscr-commerce .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 104px !important;
    max-width: 140px !important;
    position: static !important;
    overflow: visible !important;
}
body.pscr-recovery-cart .pscr-commerce .quantity .qty { width: 72px !important; min-width: 58px !important; text-align: center !important; }
body.pscr-recovery-cart .pscr-commerce table.cart .actions {
    padding-top: 18px !important;
}
body.pscr-recovery-cart .pscr-commerce table.cart .actions .coupon {
    float: none !important;
    display: inline-grid !important;
    grid-template-columns: minmax(180px, 1fr) auto !important;
    gap: 8px !important;
    width: min(100%, 480px) !important;
}
body.pscr-recovery-cart .pscr-commerce table.cart .actions .coupon input { width: 100% !important; }
body.pscr-recovery-cart .pscr-commerce table.cart .actions > button[name="update_cart"] { float: inline-end !important; }
body.pscr-recovery-cart .pscr-commerce .cart-collaterals {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px) !important;
    gap: 22px !important;
    align-items: start !important;
    margin-top: 26px !important;
}
body.pscr-recovery-cart .pscr-commerce .cart-collaterals .cross-sells { grid-column: 1 !important; width: 100% !important; }
body.pscr-recovery-cart .pscr-commerce .cart-collaterals .cart_totals {
    grid-column: 2 !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid var(--pscr-border) !important;
    border-radius: 14px !important;
    background: #fbfbfa !important;
}
body.pscr-recovery-cart .pscr-commerce .wc-proceed-to-checkout { padding: 10px 0 0 !important; }
body.pscr-recovery-cart .pscr-commerce .checkout-button { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; margin: 0 !important; }

/* ---------------- Checkout ---------------- */
body.pscr-recovery-checkout .pscr-commerce form.checkout.woocommerce-checkout {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
    grid-template-rows: auto 1fr !important;
    gap: 0 28px !important;
    align-items: start !important;
}
body.pscr-recovery-checkout .pscr-commerce form.checkout > #customer_details {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 100% !important;
    margin: 0 !important;
}
body.pscr-recovery-checkout .pscr-commerce form.checkout > h3#order_review_heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 0 12px !important;
}
body.pscr-recovery-checkout .pscr-commerce form.checkout > #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
}
body.pscr-recovery-checkout .pscr-commerce #customer_details > .col-1,
body.pscr-recovery-checkout .pscr-commerce #customer_details > .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
body.pscr-recovery-checkout .pscr-commerce #customer_details > .col-2 { margin-top: 22px !important; }
body.pscr-recovery-checkout .pscr-commerce .woocommerce-billing-fields__field-wrapper,
body.pscr-recovery-checkout .pscr-commerce .woocommerce-shipping-fields__field-wrapper,
body.pscr-recovery-checkout .pscr-commerce .woocommerce-additional-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}
body.pscr-recovery-checkout .pscr-commerce .form-row {
    width: auto !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.pscr-recovery-checkout .pscr-commerce .form-row-wide { grid-column: 1 / -1 !important; }
body.pscr-recovery-checkout .pscr-commerce .woocommerce-checkout-review-order {
    border: 1px solid var(--pscr-border) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    background: #fbfbfa !important;
}
body.pscr-recovery-checkout .pscr-commerce #order_review table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}
body.pscr-recovery-checkout .pscr-commerce #order_review th,
body.pscr-recovery-checkout .pscr-commerce #order_review td {
    padding: 10px 6px !important;
    vertical-align: top !important;
    overflow-wrap: anywhere !important;
}
body.pscr-recovery-checkout .pscr-commerce #payment {
    width: 100% !important;
    margin-top: 14px !important;
    position: static !important;
}
body.pscr-recovery-checkout .pscr-commerce #payment ul.payment_methods,
body.pscr-recovery-checkout .pscr-commerce #payment .payment_box {
    width: 100% !important;
    position: static !important;
}
body.pscr-recovery-checkout .pscr-commerce #place_order {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
}
body.pscr-recovery-checkout .pscr-commerce form.checkout_coupon {
    width: 100% !important;
    margin: 0 0 20px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
}
body.pscr-recovery-checkout .pscr-commerce form.checkout_coupon > p:first-child { grid-column: 1 / -1 !important; }
body.pscr-recovery-checkout .pscr-commerce form.checkout_coupon .form-row { width: auto !important; }

/* Keep loaders over their own section, never over neighboring controls. */
body.pscr-recovery-shell .pscr-commerce .blockUI.blockOverlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 999 !important;
}

/* Explicit back/forward navigation outside Woo templates. */
.pscr-flow-nav {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.pscr-flow-nav__button {
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--pscr-border);
}
.pscr-flow-nav__button.is-secondary { background: #fff; color: var(--pscr-text) !important; }
.pscr-flow-nav__button.is-primary { background: var(--pscr-accent); border-color: var(--pscr-accent); color: #fff !important; }
body.pscr-recovery-checkout .pscr-flow-nav,
body.pscr-recovery-cart .pscr-flow-nav { justify-content: flex-start; }

.pscr-shell__footer { width: min(1180px, calc(100% - 32px)); margin: -28px auto 30px; text-align: center; font-size: 13px; }
.pscr-shell__footer a { color: inherit !important; opacity: .65; }

/* Tablet: never allow the checkout sidebar to become a thin unusable column. */
@media (max-width: 1080px) {
    body.pscr-recovery-checkout .pscr-commerce form.checkout.woocommerce-checkout {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 22px !important;
    }
    body.pscr-recovery-checkout .pscr-commerce form.checkout > #customer_details,
    body.pscr-recovery-checkout .pscr-commerce form.checkout > h3#order_review_heading,
    body.pscr-recovery-checkout .pscr-commerce form.checkout > #order_review {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
    }
    body.pscr-recovery-checkout .pscr-commerce form.checkout > h3#order_review_heading { margin: 4px 0 -10px !important; }
    body.pscr-recovery-cart .pscr-commerce .cart-collaterals { grid-template-columns: 1fr !important; }
    body.pscr-recovery-cart .pscr-commerce .cart-collaterals .cross-sells,
    body.pscr-recovery-cart .pscr-commerce .cart-collaterals .cart_totals { grid-column: 1 !important; }
    body.pscr-recovery-cart .pscr-commerce .cart-collaterals .cart_totals { width: min(100%, 540px) !important; margin-inline-start: auto !important; }
}

/* Phone / narrow tablet */
@media (max-width: 860px) {
    body.pscr-recovery-shell { padding-bottom: env(safe-area-inset-bottom); }
    .pscr-shell__header { min-height: 56px; padding: 10px 14px; }
    .pscr-shell__safe { display: none; }
    .pscr-steps { width: calc(100% - 20px); margin-top: 12px; gap: 6px; }
    .pscr-step { min-height: 42px; padding: 7px 6px; gap: 5px; }
    .pscr-step span { width: 24px; height: 24px; flex-basis: 24px; font-size: 11px; }
    .pscr-step b { display: none; }
    .pscr-shell__main { width: calc(100% - 16px); margin: 16px auto 40px; }
    .pscr-shell__intro { padding-inline: 2px; margin-bottom: 12px; }
    .pscr-shell__intro h1 { font-size: 25px !important; }
    .pscr-shell__intro p { font-size: 12px; }
    .pscr-commerce { border-radius: 12px; padding: 12px 10px; }

    /* Cart becomes cards; no horizontal table, no hidden/overlapped buttons. */
    body.pscr-recovery-cart .pscr-commerce table.cart,
    body.pscr-recovery-cart .pscr-commerce table.cart tbody { display: block !important; width: 100% !important; }
    body.pscr-recovery-cart .pscr-commerce table.cart thead { display: none !important; }
    body.pscr-recovery-cart .pscr-commerce table.cart tr.woocommerce-cart-form__cart-item {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 76px minmax(0, 1fr) !important;
        gap: 8px 12px !important;
        width: 100% !important;
        margin: 0 0 12px !important;
        padding: 12px !important;
        border: 1px solid var(--pscr-border) !important;
        border-radius: 12px !important;
        background: #fff !important;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart tr.woocommerce-cart-form__cart-item > td {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: start !important;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart tr.woocommerce-cart-form__cart-item > td.product-subtotal {
        display: none !important;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-remove {
        position: absolute !important;
        top: 8px !important;
        inset-inline-end: 8px !important;
        z-index: 4 !important;
        width: 32px !important;
        height: 32px !important;
        text-align: center !important;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-thumbnail { grid-column: 1 !important; grid-row: 1 / span 3 !important; }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-thumbnail img { width: 72px !important; height: 72px !important; }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-name { grid-column: 2 !important; padding-inline-end: 32px !important; font-weight: 700 !important; }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-price { grid-column: 2 !important; width: 100% !important; }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-price::before {
        content: attr(data-title) ": ";
        font-weight: 500;
        opacity: .62;
        margin-inline-end: 4px;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-quantity {
        grid-column: 2 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-quantity::before {
        content: attr(data-title) ": ";
        font-weight: 500;
        opacity: .62;
    }
    body.pscr-recovery-cart .pscr-commerce .quantity { min-width: 96px !important; }
    body.pscr-recovery-cart .pscr-commerce table.cart tr:last-child.actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        padding: 4px 0 0 !important;
        border: 0 !important;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart td.actions { display: grid !important; width: 100% !important; gap: 9px !important; }
    body.pscr-recovery-cart .pscr-commerce table.cart .actions .coupon {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 8px !important;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart .actions .coupon input,
    body.pscr-recovery-cart .pscr-commerce table.cart .actions .coupon button,
    body.pscr-recovery-cart .pscr-commerce table.cart .actions > button[name="update_cart"] { width: 100% !important; margin: 0 !important; }
    body.pscr-recovery-cart .pscr-commerce .cart-collaterals { margin-top: 18px !important; gap: 14px !important; }
    body.pscr-recovery-cart .pscr-commerce .cart-collaterals .cart_totals { width: 100% !important; padding: 14px !important; }

    /* Checkout is always one clean column on phones. */
    body.pscr-recovery-checkout .pscr-commerce form.checkout.woocommerce-checkout { display: block !important; width: 100% !important; }
    body.pscr-recovery-checkout .pscr-commerce #customer_details,
    body.pscr-recovery-checkout .pscr-commerce #order_review,
    body.pscr-recovery-checkout .pscr-commerce h3#order_review_heading { width: 100% !important; margin-inline: 0 !important; }
    body.pscr-recovery-checkout .pscr-commerce h3#order_review_heading { margin-top: 22px !important; }
    body.pscr-recovery-checkout .pscr-commerce .woocommerce-billing-fields__field-wrapper,
    body.pscr-recovery-checkout .pscr-commerce .woocommerce-shipping-fields__field-wrapper,
    body.pscr-recovery-checkout .pscr-commerce .woocommerce-additional-fields__field-wrapper {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    body.pscr-recovery-checkout .pscr-commerce .form-row-wide { grid-column: 1 !important; }
    body.pscr-recovery-checkout .pscr-commerce .woocommerce-checkout-review-order { padding: 12px !important; }
    body.pscr-recovery-checkout .pscr-commerce form.checkout_coupon { grid-template-columns: 1fr !important; gap: 8px !important; }
    body.pscr-recovery-checkout .pscr-commerce form.checkout_coupon > * { width: 100% !important; grid-column: 1 !important; }

    .pscr-flow-nav { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .pscr-flow-nav__button { width: 100%; }
    .pscr-shell__footer { width: calc(100% - 20px); margin-top: -26px; }
}

/* Very narrow devices: protect text, inputs and price rows down to ~320px. */
@media (max-width: 380px) {
    .pscr-shell__main { width: calc(100% - 12px); }
    .pscr-commerce { padding-inline: 8px; }
    body.pscr-recovery-cart .pscr-commerce table.cart tr.woocommerce-cart-form__cart-item {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        padding: 10px !important;
        gap: 7px 9px !important;
    }
    body.pscr-recovery-cart .pscr-commerce table.cart td.product-thumbnail img { width: 60px !important; height: 60px !important; }
    body.pscr-recovery-checkout .pscr-commerce #order_review th,
    body.pscr-recovery-checkout .pscr-commerce #order_review td { padding-inline: 4px !important; font-size: 12px !important; }
}
