/**
 * SRA Checkout Redesign — matches the SRA Dashboard / Member Profile / Collab UI.
 *
 * Design tokens mirror sra-dashboard/assets/sra-user-dashboard.css.
 * All rules are scoped to `body.sra-checkout-redesign` to avoid leaking.
 *
 * @package SRA
 * @since   1.0.0
 */

/* =============================================
   Tokens
   ============================================= */
body.sra-checkout-redesign {
    --sra-red: #c51414;
    --sra-red-dark: #a01010;
    --sra-red-light: #e52929;
    --sra-white: #ffffff;
    --sra-black: #0a0a0a;
    --sra-gray-50: #fafafa;
    --sra-gray-100: #f5f5f5;
    --sra-gray-200: #e5e5e5;
    --sra-gray-300: #d4d4d4;
    --sra-gray-400: #a3a3a3;
    --sra-gray-500: #737373;
    --sra-gray-600: #525252;
    --sra-gray-800: #262626;

    --sra-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --sra-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
    --sra-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --sra-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);

    --sra-radius-sm: 0.375rem;
    --sra-radius: 0.5rem;
    --sra-radius-lg: 0.75rem;
    --sra-radius-xl: 1rem;

    --sra-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Page header
   ============================================= */
body.sra-checkout-redesign .entry-content > h1,
body.sra-checkout-redesign .page-title,
body.sra-checkout-redesign h1.entry-title {
    color: var(--sra-red);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* =============================================
   Returning-customer / login notice strip
   ============================================= */
body.sra-checkout-redesign .woocommerce-form-login-toggle {
    margin: 1.5rem 0;
}
body.sra-checkout-redesign .woocommerce-form-login-toggle .woocommerce-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: var(--sra-radius-lg);
    color: #1e3a8a;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    box-shadow: var(--sra-shadow-sm);
}
body.sra-checkout-redesign .woocommerce-form-login-toggle .woocommerce-info::before {
    color: #3b82f6;
}
body.sra-checkout-redesign .woocommerce-form-login-toggle a,
body.sra-checkout-redesign .showlogin {
    color: var(--sra-red) !important;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--sra-red);
    transition: color var(--sra-transition);
}
body.sra-checkout-redesign .woocommerce-form-login-toggle a:hover,
body.sra-checkout-redesign .showlogin:hover {
    color: var(--sra-red-dark) !important;
    border-bottom-color: var(--sra-red-dark);
}

/* =============================================
   Top-level notices (errors / success / info)
   Grey background + red accent border to match site palette.
   ============================================= */
body.sra-checkout-redesign .woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}
body.sra-checkout-redesign .woocommerce-notices-wrapper:empty {
    display: none;
}
body.sra-checkout-redesign .woocommerce-message,
body.sra-checkout-redesign .woocommerce-error,
body.sra-checkout-redesign .woocommerce-NoticeGroup .woocommerce-error,
body.sra-checkout-redesign .woocommerce-notices-wrapper .woocommerce-info {
    background: var(--sra-gray-50);
    border: 1px solid var(--sra-gray-200);
    border-left: 4px solid var(--sra-red);
    border-radius: var(--sra-radius-lg);
    box-shadow: var(--sra-shadow-sm);
    padding: 1rem 1.25rem 1rem 3.25rem;
    list-style: none;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--sra-gray-800);
    margin: 0 0 1rem;
}
body.sra-checkout-redesign .woocommerce-message::before,
body.sra-checkout-redesign .woocommerce-error::before,
body.sra-checkout-redesign .woocommerce-notices-wrapper .woocommerce-info::before {
    color: var(--sra-red);
    left: 1.125rem;
    top: 1rem;
    margin-top: 0;
    font-size: 1.125rem;
    line-height: 1;
}
body.sra-checkout-redesign .woocommerce-message {
    border-left-color: #16a34a;
}
body.sra-checkout-redesign .woocommerce-message::before {
    color: #16a34a;
}
body.sra-checkout-redesign .woocommerce-error li,
body.sra-checkout-redesign .woocommerce-message li,
body.sra-checkout-redesign .woocommerce-info li {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
body.sra-checkout-redesign .woocommerce-error .button,
body.sra-checkout-redesign .woocommerce-message .button,
body.sra-checkout-redesign .woocommerce-info .button {
    float: right;
}

/* =============================================
   Section headings
   ============================================= */
body.sra-checkout-redesign .woocommerce-billing-fields > h3,
body.sra-checkout-redesign #order_review_heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sra-black);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sra-gray-100);
    position: relative;
}
body.sra-checkout-redesign .woocommerce-billing-fields > h3::after,
body.sra-checkout-redesign #order_review_heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--sra-red);
}

/* =============================================
   Two-column layout
   WC may render either:
     form.checkout > #customer_details + #order_review
   or wrap in:
     form.checkout > .col2-set > .col-1(#customer_details) + .col-2(#order_review)
   We grid the deepest container that holds both columns.
   ============================================= */
body.sra-checkout-redesign form.checkout,
body.sra-checkout-redesign form[name="checkout"] {
    max-width: 1100px;
    margin: 0 auto;
    display: block;
}
body.sra-checkout-redesign form.checkout > .col2-set,
body.sra-checkout-redesign form.checkout {
    /* applied only when form is the grid container (no col2-set) — see below */
}
body.sra-checkout-redesign form.checkout > .col2-set {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
    width: 100%;
    float: none;
}
/* When there is NO .col2-set wrapper, grid the form itself */
body.sra-checkout-redesign form.checkout:not(:has(> .col2-set)) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-flow: row dense;
    gap: 1.5rem 2rem;
    align-items: start;
}
body.sra-checkout-redesign form.checkout > *,
body.sra-checkout-redesign form.checkout > .col2-set > * {
    min-width: 0;
}
body.sra-checkout-redesign form.checkout .col-1,
body.sra-checkout-redesign form.checkout #customer_details {
    grid-column: 1;
    width: 100%;
    float: none;
    padding: 0;
    margin: 0;
}
body.sra-checkout-redesign form.checkout .col-2,
body.sra-checkout-redesign form.checkout h3#order_review_heading,
body.sra-checkout-redesign form.checkout #order_review,
body.sra-checkout-redesign form.checkout .woocommerce-checkout-review-order {
    grid-column: 2;
    width: 100%;
    float: none;
    padding: 0;
    margin: 0;
}
/* When form is the grid (no col2-set), customer_details spans the rows */
body.sra-checkout-redesign form.checkout:not(:has(> .col2-set)) #customer_details {
    grid-row: 1 / span 3;
}
/* Inside .col2-set, h3 + #order_review need to stack inside col-2 */
body.sra-checkout-redesign form.checkout > .col2-set > .col-2 > * {
    width: 100%;
}

@media (max-width: 900px) {
    body.sra-checkout-redesign form.checkout > .col2-set,
    body.sra-checkout-redesign form.checkout:not(:has(> .col2-set)) {
        grid-template-columns: 1fr;
    }
    body.sra-checkout-redesign form.checkout .col-1,
    body.sra-checkout-redesign form.checkout .col-2,
    body.sra-checkout-redesign form.checkout h3#order_review_heading,
    body.sra-checkout-redesign form.checkout #order_review,
    body.sra-checkout-redesign form.checkout .woocommerce-checkout-review-order,
    body.sra-checkout-redesign form.checkout #customer_details {
        grid-column: 1;
        grid-row: auto;
    }
}

/* =============================================
   Billing details — card + inputs
   ============================================= */
body.sra-checkout-redesign .woocommerce-billing-fields {
    background: var(--sra-white);
    border: 1px solid var(--sra-gray-200);
    border-radius: var(--sra-radius-xl);
    padding: 1.75rem;
    box-shadow: var(--sra-shadow);
}

/* Flex-based field grid that respects WC's form-row-* classes */
body.sra-checkout-redesign .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
}
body.sra-checkout-redesign .woocommerce-billing-fields__field-wrapper > .form-row {
    flex: 1 1 100%;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}
body.sra-checkout-redesign .woocommerce-billing-fields__field-wrapper > .form-row-first,
body.sra-checkout-redesign .woocommerce-billing-fields__field-wrapper > .form-row-last,
body.sra-checkout-redesign #billing_first_name_field,
body.sra-checkout-redesign #billing_last_name_field,
body.sra-checkout-redesign #billing_email_field,
body.sra-checkout-redesign #billing_phone_field,
body.sra-checkout-redesign #billing_city_field,
body.sra-checkout-redesign #billing_country_field {
    flex: 1 1 calc(50% - 0.625rem) !important;
    width: calc(50% - 0.625rem) !important;
    max-width: calc(50% - 0.625rem) !important;
}

@media (max-width: 540px) {
    body.sra-checkout-redesign .woocommerce-billing-fields__field-wrapper > .form-row-first,
    body.sra-checkout-redesign .woocommerce-billing-fields__field-wrapper > .form-row-last,
    body.sra-checkout-redesign #billing_first_name_field,
    body.sra-checkout-redesign #billing_last_name_field,
    body.sra-checkout-redesign #billing_email_field,
    body.sra-checkout-redesign #billing_phone_field,
    body.sra-checkout-redesign #billing_city_field,
    body.sra-checkout-redesign #billing_country_field {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

body.sra-checkout-redesign .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sra-gray-800);
    margin-bottom: 0.375rem;
}
body.sra-checkout-redesign .form-row label .optional {
    color: var(--sra-gray-400);
    font-weight: 400;
    font-style: normal;
}
body.sra-checkout-redesign .form-row label .required {
    color: var(--sra-red);
    text-decoration: none;
}

body.sra-checkout-redesign .form-row .input-text,
body.sra-checkout-redesign .form-row input[type="text"],
body.sra-checkout-redesign .form-row input[type="email"],
body.sra-checkout-redesign .form-row input[type="tel"],
body.sra-checkout-redesign .form-row input[type="password"],
body.sra-checkout-redesign .form-row input[type="number"],
body.sra-checkout-redesign .form-row input[type="file"],
body.sra-checkout-redesign .form-row textarea,
body.sra-checkout-redesign .form-row select,
body.sra-checkout-redesign .select2-container .select2-selection--single {
    width: 100%;
    box-sizing: border-box;
    background: var(--sra-white);
    border: 1px solid var(--sra-gray-300);
    border-radius: var(--sra-radius);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--sra-gray-800);
    line-height: 1.5;
    transition: border-color var(--sra-transition), box-shadow var(--sra-transition);
    min-height: 42px;
    box-shadow: var(--sra-shadow-sm);
}
body.sra-checkout-redesign .form-row textarea {
    min-height: 96px;
    resize: vertical;
}
body.sra-checkout-redesign .form-row .input-text:focus,
body.sra-checkout-redesign .form-row select:focus,
body.sra-checkout-redesign .form-row textarea:focus,
body.sra-checkout-redesign .select2-container--focus .select2-selection--single,
body.sra-checkout-redesign .select2-container--open .select2-selection--single {
    border-color: var(--sra-red);
    box-shadow: 0 0 0 3px rgba(197, 20, 20, 0.12);
    outline: none;
}

/* Select2 dropdown */
body.sra-checkout-redesign .select2-container .select2-selection--single {
    height: 42px;
    display: flex;
    align-items: center;
}
body.sra-checkout-redesign .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: var(--sra-gray-800);
    line-height: 1.5;
}
body.sra-checkout-redesign .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 8px;
}

/* File input — strip the default wrapper border/bg so we don't get a double box.
   THWCFE wraps file inputs in an extra .thwcfe-input-field-wrapper that adds padding. */
body.sra-checkout-redesign .form-row input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: var(--sra-radius);
    padding: 0.5rem 0;
    box-shadow: none;
    min-height: 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--sra-gray-600);
}
body.sra-checkout-redesign .form-row input[type="file"]:focus {
    outline: none;
    box-shadow: none;
}
body.sra-checkout-redesign .form-row input[type="file"]::-webkit-file-upload-button,
body.sra-checkout-redesign .form-row input[type="file"]::file-selector-button {
    background: var(--sra-black);
    color: var(--sra-white);
    border: 0;
    border-radius: var(--sra-radius-sm);
    padding: 0.375rem 0.875rem;
    margin-right: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: background var(--sra-transition);
}
body.sra-checkout-redesign .form-row input[type="file"]::-webkit-file-upload-button:hover,
body.sra-checkout-redesign .form-row input[type="file"]::file-selector-button:hover {
    background: var(--sra-red);
}

/* THWCFE / inner wrappers around the file input should not paint their own box */
body.sra-checkout-redesign .form-row .thwcfe-input-field-wrapper,
body.sra-checkout-redesign .form-row .woocommerce-input-wrapper {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    display: block;
    width: 100%;
}

/* Validation states */
body.sra-checkout-redesign .form-row.woocommerce-invalid .input-text,
body.sra-checkout-redesign .form-row.woocommerce-invalid select {
    border-color: var(--sra-red);
    box-shadow: 0 0 0 3px rgba(197, 20, 20, 0.08);
}
body.sra-checkout-redesign .form-row.woocommerce-validated .input-text,
body.sra-checkout-redesign .form-row.woocommerce-validated select {
    border-color: #16a34a;
}

/* =============================================
   Order review card
   ============================================= */
body.sra-checkout-redesign #order_review {
    background: var(--sra-white);
    border: 1px solid var(--sra-gray-200);
    border-radius: var(--sra-radius-xl);
    padding: 1.25rem 1.25rem 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--sra-shadow);
    position: sticky;
    top: 1.5rem;
}

body.sra-checkout-redesign .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.25rem;
}
body.sra-checkout-redesign .woocommerce-checkout-review-order-table thead th {
    background: transparent;
    color: var(--sra-gray-500);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sra-gray-200);
    text-align: left;
}
body.sra-checkout-redesign .woocommerce-checkout-review-order-table tbody td,
body.sra-checkout-redesign .woocommerce-checkout-review-order-table tfoot td,
body.sra-checkout-redesign .woocommerce-checkout-review-order-table tfoot th {
    padding: 0.75rem 0.625rem;
    border-bottom: 1px solid var(--sra-gray-100);
    font-size: 0.9375rem;
    color: var(--sra-gray-800);
    background: transparent;
}
body.sra-checkout-redesign .woocommerce-checkout-review-order-table tfoot .order-total th,
body.sra-checkout-redesign .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sra-black);
    border-bottom: none;
    padding-top: 1rem;
}
body.sra-checkout-redesign .woocommerce-checkout-review-order-table tfoot .order-total td .amount {
    color: var(--sra-red);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Quantity stepper */
body.sra-checkout-redesign .woocommerce-checkout-review-order-table .product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
body.sra-checkout-redesign .woocommerce-checkout-review-order-table .product-quantity input[type="number"] {
    width: 48px;
    text-align: center;
    padding: 0.25rem;
    min-height: 32px;
}
body.sra-checkout-redesign .woocommerce-checkout-review-order-table .product-quantity button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sra-gray-100);
    border: 1px solid var(--sra-gray-200);
    color: var(--sra-gray-800);
    line-height: 1;
    cursor: pointer;
    transition: all var(--sra-transition);
}
body.sra-checkout-redesign .woocommerce-checkout-review-order-table .product-quantity button:hover {
    background: var(--sra-red);
    color: var(--sra-white);
    border-color: var(--sra-red);
}

/* Remove-from-cart × */
body.sra-checkout-redesign .woocommerce-checkout-review-order-table .product-remove .remove,
body.sra-checkout-redesign .woocommerce-checkout-review-order-table .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sra-gray-100);
    color: var(--sra-gray-600) !important;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: all var(--sra-transition);
}
body.sra-checkout-redesign .woocommerce-checkout-review-order-table .remove:hover {
    background: var(--sra-red) !important;
    color: var(--sra-white) !important;
}

/* =============================================
   Membership Application info box
   ============================================= */
body.sra-checkout-redesign #order_review .woocommerce-info,
body.sra-checkout-redesign #payment .woocommerce-info {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde68a;
    border-left: 4px solid #ca8a04;
    color: #713f12;
    border-radius: var(--sra-radius-lg);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.55;
    box-shadow: none;
    margin: 1.25rem 0;
}
body.sra-checkout-redesign #order_review .woocommerce-info::before,
body.sra-checkout-redesign #payment .woocommerce-info::before {
    color: #ca8a04;
}
body.sra-checkout-redesign #order_review .woocommerce-info strong,
body.sra-checkout-redesign #payment .woocommerce-info strong {
    color: #854d0e;
}

/* =============================================
   Payment box + terms + place-order
   ============================================= */
body.sra-checkout-redesign #payment,
body.sra-checkout-redesign .woocommerce-checkout-payment {
    background: transparent;
    border-radius: 0;
    padding: 0;
}
body.sra-checkout-redesign #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    background: var(--sra-gray-50);
    border: 1px solid var(--sra-gray-200);
    border-radius: var(--sra-radius-lg);
    overflow: hidden;
}
body.sra-checkout-redesign #payment ul.payment_methods li {
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid var(--sra-gray-200);
    background: transparent;
    transition: background var(--sra-transition);
}
body.sra-checkout-redesign #payment ul.payment_methods li:last-child {
    border-bottom: none;
}
body.sra-checkout-redesign #payment ul.payment_methods li:hover {
    background: var(--sra-white);
}
body.sra-checkout-redesign #payment ul.payment_methods li label {
    font-weight: 600;
    color: var(--sra-gray-800);
    cursor: pointer;
}
body.sra-checkout-redesign #payment ul.payment_methods li .payment_box {
    background: var(--sra-white);
    border: 1px solid var(--sra-gray-200);
    border-radius: var(--sra-radius);
    padding: 0.875rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--sra-gray-600);
}
body.sra-checkout-redesign #payment ul.payment_methods li .payment_box::before {
    display: none;
}

/* Terms-and-conditions */
body.sra-checkout-redesign .woocommerce-terms-and-conditions-wrapper {
    margin: 1rem 0 1.25rem;
}
body.sra-checkout-redesign .woocommerce-terms-and-conditions-wrapper .form-row,
body.sra-checkout-redesign .form-row.validate-required {
    margin: 0;
}
body.sra-checkout-redesign .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--sra-gray-800);
    cursor: pointer;
    line-height: 1.5;
}
body.sra-checkout-redesign .woocommerce-form__input-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--sra-red);
    cursor: pointer;
    flex-shrink: 0;
}
body.sra-checkout-redesign .woocommerce-terms-and-conditions-link {
    color: var(--sra-red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--sra-red);
}
body.sra-checkout-redesign .woocommerce-terms-and-conditions-link:hover {
    color: var(--sra-red-dark);
    border-bottom-color: var(--sra-red-dark);
}

/* Privacy-policy paragraph */
body.sra-checkout-redesign .woocommerce-privacy-policy-text {
    background: var(--sra-gray-50);
    border-radius: var(--sra-radius);
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: var(--sra-gray-600);
    line-height: 1.55;
    margin: 1rem 0;
}
body.sra-checkout-redesign .woocommerce-privacy-policy-text a {
    color: var(--sra-red);
    font-weight: 600;
}

/* Place-order button */
body.sra-checkout-redesign #place_order,
body.sra-checkout-redesign .woocommerce-checkout-payment button[type="submit"] {
    display: block;
    width: 100%;
    background: var(--sra-red);
    color: var(--sra-white);
    border: none;
    border-radius: 50px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-transform: none;
    transition: all var(--sra-transition);
    box-shadow: 0 4px 12px rgba(197, 20, 20, 0.25);
    margin-top: 0.5rem;
    text-shadow: none;
    line-height: 1.5;
    min-height: 48px;
}
body.sra-checkout-redesign #place_order:hover,
body.sra-checkout-redesign .woocommerce-checkout-payment button[type="submit"]:hover {
    background: var(--sra-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(197, 20, 20, 0.35);
}
body.sra-checkout-redesign #place_order:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(197, 20, 20, 0.25);
}
body.sra-checkout-redesign #place_order:disabled,
body.sra-checkout-redesign #place_order.processing {
    background: var(--sra-gray-400);
    box-shadow: none;
    cursor: wait;
    transform: none;
}

/* =============================================
   AJAX overlay (block-ui)
   ============================================= */
body.sra-checkout-redesign .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(2px);
}
body.sra-checkout-redesign .blockUI.blockOverlay::before {
    border-top-color: var(--sra-red) !important;
}

/* =============================================
   Coupon (if shown)
   ============================================= */
body.sra-checkout-redesign .checkout_coupon {
    background: var(--sra-gray-50);
    border: 1px solid var(--sra-gray-200);
    border-radius: var(--sra-radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
}
body.sra-checkout-redesign .woocommerce-form-coupon-toggle {
    margin-bottom: 1rem;
}

/* =============================================
   Hide noisy WC defaults that clash with the new layout
   ============================================= */
body.sra-checkout-redesign .woocommerce-additional-fields {
    display: none;
}

/* =============================================
   Required-field emphasis
   Subtle red tint on the input border + a thin left accent stripe
   on the row so users can scan required fields at a glance.
   ============================================= */
body.sra-checkout-redesign .form-row.validate-required > label .required,
body.sra-checkout-redesign .form-row.validate-required > label .optional {
    margin-left: 0.25rem;
}
body.sra-checkout-redesign .form-row.validate-required:not(.woocommerce-invalid):not(.woocommerce-validated) .input-text,
body.sra-checkout-redesign .form-row.validate-required:not(.woocommerce-invalid):not(.woocommerce-validated) select,
body.sra-checkout-redesign .form-row.validate-required:not(.woocommerce-invalid):not(.woocommerce-validated) textarea {
    border-color: #fecaca;
    background-color: #fffafa;
}
body.sra-checkout-redesign .form-row.validate-required:not(.woocommerce-invalid):not(.woocommerce-validated) .input-text:focus,
body.sra-checkout-redesign .form-row.validate-required:not(.woocommerce-invalid):not(.woocommerce-validated) select:focus,
body.sra-checkout-redesign .form-row.validate-required:not(.woocommerce-invalid):not(.woocommerce-validated) textarea:focus {
    border-color: var(--sra-red);
    background-color: var(--sra-white);
}
body.sra-checkout-redesign .form-row.validate-required > label .required {
    color: var(--sra-red);
    font-weight: 700;
}

/* =============================================
   SMM checkout notice (Membership Application advisory)
   ============================================= */
body.sra-checkout-redesign .smm-checkout-notice {
    text-align: left;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body.sra-checkout-redesign .smm-checkout-notice,
body.sra-checkout-redesign .smm-checkout-notice p {
    font-size: 0.8125rem;
    line-height: 1.55;
    text-align: left;
}
