/**
 * Fluid Checkout PRO - Main Styles (Clean Modern Design)
 * Optimized for Arabic + RTL
 */

.fcp-checkout-wrapper {
    --fcp-primary-color: #2271b1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

.fcp-checkout-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* Steps Navigation - Clean Progress */
.fcp-steps-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 10px;
}

.fcp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.fcp-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.fcp-step.active .fcp-step-number,
.fcp-step.completed .fcp-step-number {
    background: var(--fcp-primary-color, #2271b1);
    color: #fff;
}

.fcp-step-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.fcp-step-connector {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-top: -18px;
}

/* Two-step customer and shipping layout */
.fcp-fields-section {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 20px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #ffffff;
}

.fcp-fields-section-title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
    font-size: 18px;
}

.fcp-same-address-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 18px;
    color: #333333;
    cursor: pointer;
}

.fcp-same-address-option input {
    width: 18px !important;
    min-height: 18px !important;
    flex: 0 0 18px;
}

.fcp-additional-address-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fcp-primary-color, #2271b1);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.fcp-additional-address-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 50%;
    line-height: 1;
}

.fcp-additional-address[hidden] {
    display: none !important;
}

.fcp-checkout-wrapper .fcp-field-error {
    display: block;
    margin-top: 6px;
    color: #b32d2e;
    font-size: 13px;
    line-height: 1.5;
}

.fcp-checkout-wrapper .fcp-validation-summary {
    margin: -6px 0 20px;
    padding: 14px 16px;
    border: 1px solid #e7b8b8;
    border-inline-start: 4px solid #b32d2e;
    border-radius: 8px;
    background: #fff7f7;
    color: #6f1d1e;
    text-align: start;
}

.fcp-checkout-wrapper .fcp-validation-summary-title,
.fcp-checkout-wrapper .fcp-validation-summary-count {
    display: block;
}

.fcp-checkout-wrapper .fcp-validation-summary-title {
    margin-bottom: 3px;
    font-size: 15px;
    color: #8a2425;
}

.fcp-checkout-wrapper .fcp-validation-summary-count {
    font-size: 13px;
    line-height: 1.6;
}

.fcp-checkout-wrapper .fcp-validation-summary-list {
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.fcp-checkout-wrapper .fcp-validation-summary-list li {
    margin: 0;
    padding: 0;
}

.fcp-checkout-wrapper .fcp-validation-summary-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #8a2425;
    font: inherit;
    font-size: 13px;
    line-height: 1.55;
    text-align: start;
    text-decoration: underline;
    cursor: pointer;
}

.fcp-checkout-wrapper .fcp-validation-summary-item:hover {
    color: #5f1112;
}

.fcp-checkout-wrapper .fcp-validation-summary-item:focus-visible {
    outline: 2px solid var(--fcp-primary-color, #2271b1);
    outline-offset: 2px;
    border-radius: 3px;
}

.fcp-checkout-wrapper .fcp-form-row-invalid > label,
.fcp-checkout-wrapper .fcp-form-row-invalid label:first-child {
    color: #8a2425;
}

.fcp-billing-address-fields[hidden],
.fcp-billing-address-fields[aria-hidden="true"] {
    display: none !important;
}

.fcp-billing-address-fields[aria-hidden="false"] {
    display: block !important;
}

/* Step Content */
.fcp-checkout-step {
    margin-bottom: 20px;
}

.fcp-step-heading {
    font-size: 22px;
    margin-bottom: 20px;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Clean Form Fields */
.fcp-fields-wrapper .form-row {
    margin-bottom: 18px;
}

.fcp-fields-wrapper label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* Step Actions */
.fcp-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.fcp-step-actions .button {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
}

.fcp-step-actions .button.alt {
    background: var(--fcp-primary-color, #2271b1);
    color: #fff;
    border: none;
}

.fcp-step-actions .button.alt:hover {
    background: #1a5a8f;
}

/* Express Checkout Section (Priority #2) */
.fcp-express-checkout-wrapper {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.fcp-express-divider {
    margin: 15px 0;
    position: relative;
}

.fcp-express-divider span {
    background: #f8f9fa;
    padding: 0 15px;
    font-size: 13px;
    color: #666;
}

.fcp-express-empty {
    padding: 12px;
    color: #666;
    font-size: 13px;
}

.fcp-field-invalid {
    border-color: #b32d2e !important;
    box-shadow: 0 0 0 1px #b32d2e;
}


.fcp-order-review {
    margin-bottom: 25px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
}

/* RTL Adjustments */
.fcp-checkout-wrapper[dir="rtl"],
.fcp-checkout-wrapper.rtl {
    direction: rtl;
}

.fcp-steps-nav {
    flex-direction: row-reverse;
}

/* Step content alignment */
.fcp-checkout-wrapper .fcp-step-shipping,
.fcp-checkout-wrapper .fcp-step-billing {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.fcp-checkout-wrapper .fcp-step-shipping .fcp-step-heading,
.fcp-checkout-wrapper .fcp-step-billing .fcp-step-heading {
    text-align: center;
}

.fcp-checkout-wrapper .fcp-step-payment {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Payment gateways must be allowed to fill the responsive checkout column. */
.fcp-checkout-wrapper .fcp-order-review #payment,
.fcp-checkout-wrapper .fcp-order-review #payment ul.payment_methods,
.fcp-checkout-wrapper .fcp-order-review #payment li,
.fcp-checkout-wrapper .fcp-order-review #payment .payment_box,
.fcp-checkout-wrapper .fcp-order-review #payment .wc-payment-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    float: none;
}

.fcp-checkout-wrapper .fcp-order-review #payment .payment_box {
    margin-left: 0;
    margin-right: 0;
}

.fcp-checkout-wrapper .fcp-order-review #payment input,
.fcp-checkout-wrapper .fcp-order-review #payment select,
.fcp-checkout-wrapper .fcp-order-review #payment textarea,
.fcp-checkout-wrapper .fcp-order-review #payment li:not(.payment_method_paymob-pixel) iframe {
    max-width: 100%;
    box-sizing: border-box;
}

.fcp-checkout-wrapper .fcp-order-review #payment li:not(.payment_method_paymob-pixel) iframe {
    width: 100% !important;
}

.fcp-checkout-wrapper .fcp-order-review .woocommerce-checkout-review-order-table {
    table-layout: fixed;
    word-break: normal;
}

@media (max-width: 768px) {
    .fcp-checkout-wrapper .fcp-step-shipping,
    .fcp-checkout-wrapper .fcp-step-billing,
    .fcp-checkout-wrapper .fcp-step-payment {
        width: 100%;
        max-width: 100%;
    }

    .fcp-checkout-wrapper .fcp-order-review {
        width: 100%;
        overflow: visible;
    }

    .fcp-checkout-wrapper .fcp-order-review #payment,
    .fcp-checkout-wrapper .fcp-order-review #payment .payment_box {
        padding: 10px !important;
        overflow: visible;
    }

    .fcp-checkout-wrapper .fcp-order-review #payment .form-row,
    .fcp-checkout-wrapper .fcp-order-review #payment .form-row-wide,
    .fcp-checkout-wrapper .fcp-order-review #payment .form-row-first,
    .fcp-checkout-wrapper .fcp-order-review #payment .form-row-last {
        width: 100% !important;
        float: none !important;
        clear: both;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .fcp-checkout-wrapper .fcp-order-review .woocommerce-checkout-review-order-table th,
    .fcp-checkout-wrapper .fcp-order-review .woocommerce-checkout-review-order-table td {
        padding: 8px 4px;
        font-size: 13px;
        word-break: break-word;
    }
}

/* BeTheme-safe field normalization */
.fcp-checkout-wrapper .fcp-fields-wrapper .form-row-wide {
    width: 100%;
    float: none;
    clear: both;
}

.fcp-checkout-wrapper .fcp-fields-wrapper .form-row-first,
.fcp-checkout-wrapper .fcp-fields-wrapper .form-row-last {
    width: calc(50% - 8px);
}

.fcp-checkout-wrapper .fcp-fields-wrapper input,
.fcp-checkout-wrapper .fcp-fields-wrapper select,
.fcp-checkout-wrapper .fcp-fields-wrapper textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    font-size: 15px;
}

.fcp-checkout-wrapper .fcp-order-review,
.fcp-checkout-wrapper .fcp-order-review #payment,
.fcp-checkout-wrapper .fcp-order-review .woocommerce-checkout-review-order-table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fcp-checkout-wrapper .fcp-order-review #payment {
    float: none;
}

.fcp-checkout-wrapper .fcp-order-review .payment_methods {
    margin: 0;
}

@media (max-width: 768px) {
    .fcp-checkout-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 8px;
    }

    .fcp-checkout-container {
        width: 100%;
        box-sizing: border-box;
        padding: 16px 12px;
        border-radius: 8px;
    }

    .fcp-steps-nav {
        margin-bottom: 24px;
        padding: 0;
    }

    .fcp-step-title {
        font-size: 12px;
        line-height: 1.4;
    }

    .fcp-step-number {
        width: 32px;
        height: 32px;
        margin-bottom: 5px;
    }

    .fcp-step-connector {
        display: block;
        margin: -16px 4px 0;
    }

    .fcp-step-heading {
        margin-bottom: 16px;
        font-size: 20px;
    }

    .fcp-checkout-wrapper .fcp-fields-wrapper .form-row-first,
    .fcp-checkout-wrapper .fcp-fields-wrapper .form-row-last,
    .fcp-checkout-wrapper .fcp-fields-wrapper .form-row-wide {
        width: 100%;
        float: none;
        clear: both;
        margin-left: 0;
        margin-right: 0;
    }

    .fcp-step-actions {
        flex-direction: column;
        gap: 10px;
    }

    .fcp-step-actions .button,
    .fcp-step-actions button,
    .fcp-step-actions input {
        width: 100%;
        min-height: 46px;
        margin: 0;
    }

    .fcp-express-checkout-wrapper {
        padding: 12px;
    }

    .fcp-checkout-wrapper .fcp-order-review {
        padding: 8px;
        margin-left: 0;
        margin-right: 0;
        overflow-x: auto;
    }

    .fcp-checkout-wrapper .fcp-order-review #payment,
    .fcp-checkout-wrapper .fcp-order-review .woocommerce-checkout-review-order-table {
        min-width: 0;
    }
}

/* Final mobile containment override for themes with narrow checkout columns. */
@media (max-width: 768px) {
    .fcp-checkout-wrapper.fcp-mobile-full-width {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    .fcp-checkout-container,
    .fcp-checkout-wrapper .fcp-step-payment,
    .fcp-checkout-wrapper .fcp-order-review,
    .fcp-checkout-wrapper .fcp-order-review > *,
    .fcp-checkout-wrapper .fcp-order-review #payment,
    .fcp-checkout-wrapper .fcp-order-review #payment > *,
    .fcp-checkout-wrapper .fcp-order-review #payment .payment_box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .fcp-checkout-wrapper .fcp-order-review {
        padding: 8px 0 !important;
        overflow-x: hidden !important;
    }

    .fcp-checkout-wrapper .fcp-order-review #payment,
    .fcp-checkout-wrapper .fcp-order-review #payment .payment_box {
        padding-left: 8px !important;
        padding-right: 8px !important;
        overflow-x: hidden !important;
    }
}

/* Payment-step experience */
.fcp-order-summary-toggle {
    display: none;
}

.fcp-review-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fcp-review-thumbnail {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px;
    border-radius: 7px;
    object-fit: cover;
}

.fcp-review-product-name {
    min-width: 0;
    line-height: 1.5;
}

.fcp-checkout-wrapper #payment ul.payment_methods {
    padding: 0 !important;
    border: 0 !important;
}

.fcp-checkout-wrapper #payment ul.payment_methods > li.wc_payment_method {
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 15px !important;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
    list-style: none;
}

.fcp-checkout-wrapper #payment ul.payment_methods > li.wc_payment_method:has(> input[type="radio"]:checked) {
    border-color: var(--fcp-primary-color, #2271b1);
    box-shadow: 0 0 0 1px var(--fcp-primary-color, #2271b1);
}

.fcp-checkout-wrapper #payment .wc_payment_method > input[type="radio"] {
    width: 19px !important;
    min-height: 19px !important;
    margin: 2px 0 0 8px !important;
    vertical-align: top;
}

.fcp-checkout-wrapper #payment .wc_payment_method > label {
    display: inline;
    margin: 0;
    font-weight: 700;
    cursor: pointer;
}

.fcp-checkout-wrapper #payment .payment_box {
    margin: 14px 0 0 !important;
    padding: 14px !important;
    border-radius: 8px;
    box-sizing: border-box;
}

.fcp-checkout-wrapper #payment .fcp-native-express-heading {
    display: block !important;
    width: 100% !important;
    margin: 2px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
    list-style: none !important;
}

.fcp-checkout-wrapper #payment .fcp-native-express-heading > span {
    display: block;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.fcp-checkout-wrapper #payment .fcp-native-express-heading > small {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
}

.fcp-checkout-wrapper #payment ul.payment_methods > li.fcp-native-express-method {
    min-height: 64px;
    border-color: #1d1d1f;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.fcp-checkout-wrapper #payment ul.payment_methods > li.fcp-native-express-method:has(> input[type="radio"]:checked) {
    border-color: var(--fcp-primary-color, #2271b1);
    box-shadow: 0 0 0 1px var(--fcp-primary-color, #2271b1), 0 4px 12px rgba(16, 24, 40, 0.1);
}

.fcp-checkout-wrapper #payment .fcp-native-express-method > label::after {
    content: attr(data-fcp-express-label);
    display: inline-flex;
    align-items: center;
    margin-inline-start: 9px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #1d1d1f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
}

.fcp-checkout-wrapper #payment .fcp-apple-pay-method > label img,
.fcp-checkout-wrapper #payment .fcp-google-pay-method > label img {
    width: auto !important;
    max-width: 72px !important;
    max-height: 30px !important;
    margin-inline-start: 7px;
    object-fit: contain;
    vertical-align: middle;
}

.fcp-checkout-wrapper #payment .fcp-payment-method-divider {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    margin: 4px 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
    list-style: none !important;
}

.fcp-checkout-wrapper #payment .fcp-payment-method-divider::before,
.fcp-checkout-wrapper #payment .fcp-payment-method-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: #d9dee7;
}

.fcp-checkout-wrapper #payment .fcp-payment-method-divider > span {
    flex: 0 0 auto;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.fcp-checkout-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 8px 0 14px;
    color: #43634d;
    font-size: 13px;
    text-align: center;
}

.fcp-checkout-wrapper #payment .place-order {
    padding: 16px !important;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

.fcp-checkout-wrapper #payment #place_order {
    width: 100% !important;
    min-height: 52px;
    margin: 0 !important;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
}

.fcp-checkout-wrapper #payment #place_order:disabled {
    cursor: wait;
    opacity: 0.65;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr:not(.fcp-shipping-totals-row) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100% !important;
    box-sizing: border-box;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr[hidden],
.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr[aria-hidden="true"],
.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr[style*="display: none"],
.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr[style*="display:none"] {
    display: none !important;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr.fcp-totals-full-row {
    grid-template-columns: minmax(0, 1fr) !important;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr.fcp-totals-full-row > th,
.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr.fcp-totals-full-row > td {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr:not(.fcp-shipping-totals-row) > th,
.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot.fcp-shipping-layout > tr:not(.fcp-shipping-totals-row) > td {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot tr.fcp-shipping-totals-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: #f7f9fb;
    box-sizing: border-box;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot tr.fcp-shipping-totals-row > th,
.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot tr.fcp-shipping-totals-row > td.fcp-shipping-methods-cell {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    background: #f7f9fb;
    vertical-align: top;
    box-sizing: border-box;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot tr.fcp-shipping-totals-row > th {
    padding: 14px 12px 5px !important;
    border-bottom: 0 !important;
    color: #20252b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    text-align: start !important;
}

.fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot tr.fcp-shipping-totals-row > td.fcp-shipping-methods-cell {
    padding: 5px 10px 14px !important;
    text-align: start !important;
}

/* WooCommerce-native shipping methods presented as wide RTL cards. */
.fcp-checkout-wrapper .fcp-shipping-options-heading {
    width: 100%;
    margin: 0 0 10px;
    color: #667383;
    font-size: 12px;
    line-height: 1.6;
    text-align: start;
    box-sizing: border-box;
}

.fcp-checkout-wrapper .fcp-shipping-options-heading strong {
    display: none;
}

.fcp-checkout-wrapper .fcp-shipping-options-heading span {
    display: block;
}

.fcp-checkout-wrapper ul.fcp-shipping-methods {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box;
}

.fcp-checkout-wrapper ul.fcp-shipping-methods > li.fcp-shipping-method-card {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    min-width: 0;
    min-height: 62px;
    margin: 0 !important;
    padding: 14px 15px !important;
    border: 1px solid #dfe4ea !important;
    border-radius: 9px;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(26, 38, 52, 0.05);
    box-sizing: border-box;
    cursor: pointer;
    list-style: none !important;
    text-align: start;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.fcp-checkout-wrapper ul.fcp-shipping-methods > li.fcp-shipping-method-card:hover {
    border-color: #aebbc8 !important;
    box-shadow: 0 3px 9px rgba(26, 38, 52, 0.08);
}

.fcp-checkout-wrapper ul.fcp-shipping-methods > li.fcp-shipping-method-card:focus-within,
.fcp-checkout-wrapper ul.fcp-shipping-methods > li.fcp-shipping-method-selected {
    border-color: var(--fcp-primary-color, #2271b1) !important;
    background: #fbfcff !important;
    box-shadow: 0 0 0 1px var(--fcp-primary-color, #2271b1), 0 4px 12px rgba(26, 38, 52, 0.08);
}

.fcp-checkout-wrapper ul.fcp-shipping-methods > li.fcp-shipping-method-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.fcp-checkout-wrapper ul.fcp-shipping-methods > li > input[name^="shipping_method"] {
    position: static !important;
    float: none !important;
    flex: 0 0 20px;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    accent-color: var(--fcp-primary-color, #2271b1);
}

.fcp-checkout-wrapper ul.fcp-shipping-methods > li > input[type="hidden"] {
    display: none !important;
}

.fcp-checkout-wrapper ul.fcp-shipping-methods > li > label {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: #20252b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    text-align: start !important;
    white-space: normal;
    cursor: pointer;
}

.fcp-checkout-wrapper ul.fcp-shipping-methods > li > input[type="hidden"] + label {
    width: 100% !important;
}

.fcp-checkout-wrapper ul.fcp-shipping-methods .woocommerce-Price-amount {
    flex: 0 0 auto;
    margin-inline-start: auto;
    color: var(--fcp-primary-color, #2271b1);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.fcp-checkout-wrapper ul.fcp-shipping-methods label small,
.fcp-checkout-wrapper ul.fcp-shipping-methods .tax_label {
    color: #687584;
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot tr.fcp-shipping-totals-row > th {
        padding-inline: 10px !important;
    }

    .fcp-checkout-wrapper .woocommerce-checkout-review-order-table tfoot tr.fcp-shipping-totals-row > td.fcp-shipping-methods-cell {
        padding-inline: 8px !important;
    }

    .fcp-checkout-wrapper ul.fcp-shipping-methods > li.fcp-shipping-method-card {
        min-height: 60px;
        padding: 13px 12px !important;
    }

    .fcp-checkout-wrapper ul.fcp-shipping-methods > li > label {
        gap: 9px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .fcp-order-summary-toggle {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 50px;
        margin: 0 0 10px;
        padding: 12px 14px;
        border: 1px solid #dfe5eb;
        border-radius: 9px;
        background: #ffffff;
        color: #222222;
        text-align: right;
        cursor: pointer;
    }

    .fcp-summary-label {
        font-weight: 700;
    }

    .fcp-summary-total {
        color: var(--fcp-primary-color, #2271b1);
        font-weight: 700;
        white-space: nowrap;
    }

    .fcp-summary-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #eef5fb;
        color: var(--fcp-primary-color, #2271b1);
        font-size: 18px;
        line-height: 1;
    }

    .fcp-order-review tbody[hidden] {
        display: none !important;
    }

    .fcp-checkout-wrapper #payment ul.payment_methods > li.wc_payment_method {
        padding: 13px !important;
    }

    .fcp-checkout-wrapper.fcp-sticky-place-order #payment .place-order {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 14px 0 0 !important;
        padding: 12px 10px calc(12px + env(safe-area-inset-bottom)) !important;
        box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.08);
    }
}

/* Saudi address guidance keeps canonical WooCommerce fields readable. */
.fcp-checkout-wrapper .fcp-saudi-address-hint {
    clear: both;
    margin: 2px 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f5f8fb;
    color: #586574;
    font-size: 12px;
    line-height: 1.7;
}

.fcp-checkout-wrapper #shipping_postcode,
.fcp-checkout-wrapper #billing_postcode,
.fcp-checkout-wrapper #billing_phone {
    direction: ltr;
    text-align: right;
}

.fcp-checkout-wrapper .select2-container .select2-selection--single {
    min-height: 46px;
    border-color: #d9dce1;
    border-radius: 8px;
}

.fcp-checkout-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 8px 12px;
    line-height: 28px;
    text-align: right;
}

.fcp-checkout-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 8px;
    height: 44px;
}

/* Gateway-safe submission state: visually lock without disabling native controls. */
.fcp-checkout-wrapper.fcp-payment-processing #place_order {
    pointer-events: none;
    cursor: wait;
    opacity: 0.72;
}

.fcp-checkout-wrapper .fcp-payment-processing-message {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    padding: 11px 12px;
    border: 1px solid #b9d8ee;
    border-radius: 9px;
    background: #f1f8fd;
    color: #174b6c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
}

.fcp-checkout-wrapper .fcp-payment-processing-message::before {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid rgba(23, 75, 108, 0.24);
    border-top-color: #2271b1;
    border-radius: 50%;
    content: '';
    animation: fcp-payment-spin 0.8s linear infinite;
}

.fcp-checkout-wrapper .fcp-payment-processing-message.is-retry {
    border-color: #eed09a;
    background: #fff8e8;
    color: #704c08;
}

.fcp-checkout-wrapper .fcp-payment-processing-message.is-retry::before {
    border: 0;
    content: '!';
    animation: none;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

@keyframes fcp-payment-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Native checkout cart editing. */
.fcp-checkout-wrapper .fcp-cart-editor {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 8px 8px 0 0;
    direction: ltr;
    vertical-align: middle;
}

.fcp-checkout-wrapper .fcp-cart-qty-button,
.fcp-checkout-wrapper .fcp-cart-quantity {
    box-sizing: border-box;
    width: 32px;
    min-width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d7dce1 !important;
    border-radius: 7px !important;
    background: #fff;
    color: #222;
    line-height: 30px;
    text-align: center;
}

.fcp-checkout-wrapper .fcp-cart-qty-button {
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
}

.fcp-checkout-wrapper .fcp-cart-qty-button:hover,
.fcp-checkout-wrapper .fcp-cart-qty-button:focus-visible {
    border-color: var(--fcp-primary-color) !important;
    color: var(--fcp-primary-color);
}

.fcp-checkout-wrapper .fcp-cart-quantity {
    appearance: textfield;
    font-size: 13px;
    font-weight: 700;
}

.fcp-checkout-wrapper .fcp-cart-quantity::-webkit-inner-spin-button,
.fcp-checkout-wrapper .fcp-cart-quantity::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.fcp-checkout-wrapper .fcp-remove-cart-item {
    margin: 0 7px 0 0;
    padding: 4px 3px;
    border: 0;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fcp-checkout-wrapper .fcp-cart-editor.is-quantity-locked .fcp-cart-quantity {
    background: #f3f4f6;
    color: #555;
}

.fcp-checkout-wrapper .fcp-checkout-coupon-row td,
.fcp-checkout-wrapper .fcp-cart-feedback-row td {
    padding: 12px 0 !important;
    border: 0 !important;
}

.fcp-checkout-wrapper .fcp-checkout-coupon {
    padding: 12px;
    border: 1px dashed #cfd5dc;
    border-radius: 10px;
    background: #fafbfc;
}

.fcp-checkout-wrapper .fcp-checkout-coupon > label {
    display: block;
    margin: 0 0 7px;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.fcp-checkout-wrapper .fcp-checkout-coupon-fields {
    display: flex;
    gap: 8px;
    direction: rtl;
}

.fcp-checkout-wrapper .fcp-checkout-coupon-code {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 40px;
    margin: 0 !important;
    direction: ltr;
    text-align: right;
}

.fcp-checkout-wrapper .fcp-apply-checkout-coupon {
    flex: 0 0 auto;
    min-height: 40px;
    margin: 0 !important;
    white-space: nowrap;
}

.fcp-checkout-wrapper .fcp-cart-feedback {
    padding: 9px 11px;
    border: 1px solid #acd7bb;
    border-radius: 8px;
    background: #f0faf3;
    color: #176b36;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.fcp-checkout-wrapper .fcp-cart-feedback.is-error {
    border-color: #f0b8b3;
    background: #fff4f3;
    color: #9f2017;
}

.fcp-checkout-wrapper.fcp-cart-updating .fcp-cart-editor,
.fcp-checkout-wrapper.fcp-cart-updating .fcp-checkout-coupon {
    cursor: wait;
    opacity: 0.65;
}

.fcp-checkout-wrapper.fcp-payment-processing .fcp-cart-editor,
.fcp-checkout-wrapper.fcp-payment-processing .fcp-checkout-coupon {
    pointer-events: none;
}

@media (max-width: 480px) {
    .fcp-checkout-wrapper .fcp-cart-editor {
        display: flex;
        width: max-content;
        margin-right: 0;
    }

    .fcp-checkout-wrapper .fcp-checkout-coupon-fields {
        align-items: stretch;
    }
}

