/* ============================================================
   SHOPIFY-STYLE MODERN CHECKOUT & CART STYLES  v3.0
   Compatible with Bootstrap 4.0.0
   Sectioned layout with distinct backgrounds
   ============================================================ */

/* ----- CSS Variables (fallback for older browsers) ----- */
:root {
    --checkout-primary: #1773b7;
    --checkout-primary-hover: #145f96;
    --checkout-success: #27ae60;
    --checkout-danger: #e74c3c;
    --checkout-bg: #f0f1f3;
    --checkout-card-bg: #ffffff;
    --checkout-border: #e1e1e1;
    --checkout-text: #333333;
    --checkout-text-muted: #737373;
    --checkout-shadow: 0 1px 4px rgba(0,0,0,0.06);
    --checkout-radius: 8px;
    --checkout-input-height: 44px;
    --checkout-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   GLOBAL CHECKOUT PAGE OVERRIDES
   ============================================================ */
body .checkout-page-wrapper,
body [data-vvveb-page="store_orderform"],
body [data-page-type="checkout"] {
    background-color: #f0f1f3;
    background-color: var(--checkout-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--checkout-font);
}

/* ============================================================
   CHECKOUT SECTION CARDS  (injected by JS around field groups)
   Each section: Personal Details, Shipping, Payment, Order, etc.
   ============================================================ */
.checkout-section {
    background: #ffffff;
    background: var(--checkout-card-bg);
    border: 1px solid #e1e1e1;
    border: 1px solid var(--checkout-border);
    border-radius: 8px;
    border-radius: var(--checkout-radius);
    padding: 18px 20px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    box-shadow: var(--checkout-shadow);
}

.checkout-section-title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    color: var(--checkout-text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--checkout-font);
}

.checkout-section-title i {
    margin-right: 8px;
    font-size: 15px;
    color: #1773b7;
    color: var(--checkout-primary);
    width: 18px;
    text-align: center;
}

/* ============================================================
   FORM FIELD STYLING (Shopify-like, compact)
   ============================================================ */
#email,
#fname,
#lname,
#phone,
#full_address,
#locality,
#administrative_area_level_1,
#country,
#floor,
#note,
#deliveryDay,
#deliveryTime,
#creditCardNumber,
#cvv,
#expiryMonth,
#expiryYear,
#ZipCode,
#select_full_address,
#bank_reciept,
[data-coupon-code],
[name*="custom"] {
    height: 44px;
    height: var(--checkout-input-height);
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    color: var(--checkout-text);
    background-color: #fff;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
}

/* Textarea exception */
#note {
    height: auto;
    min-height: 64px;
    resize: vertical;
}

/* Select elements */
#administrative_area_level_1,
#country,
#deliveryDay,
#deliveryTime,
#expiryMonth,
#expiryYear,
#select_full_address {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23737373' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 32px;
    cursor: pointer;
}

/* Focus state */
#email:focus,
#fname:focus,
#lname:focus,
#phone:focus,
#full_address:focus,
#locality:focus,
#administrative_area_level_1:focus,
#country:focus,
#floor:focus,
#note:focus,
#deliveryDay:focus,
#deliveryTime:focus,
#creditCardNumber:focus,
#cvv:focus,
#expiryMonth:focus,
#expiryYear:focus,
#ZipCode:focus,
#select_full_address:focus,
[data-coupon-code]:focus,
[name*="custom"]:focus {
    border-color: #1773b7;
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 2px rgba(23, 115, 183, 0.12);
    outline: none;
}

/* Error state */
#email.field-error,
#fname.field-error,
#lname.field-error,
#phone.field-error,
#full_address.field-error,
#locality.field-error,
#administrative_area_level_1.field-error,
#country.field-error,
[style*="border: 1px solid red"],
[style*="border-color: 1px solid red"] {
    border-color: #e74c3c !important;
    border-color: var(--checkout-danger) !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.08) !important;
}

/* Filled state */
.field-valid {
    border-color: #27ae60 !important;
    border-color: var(--checkout-success) !important;
}

/* Placeholder styling */
#email::-webkit-input-placeholder,
#fname::-webkit-input-placeholder,
#lname::-webkit-input-placeholder,
#phone::-webkit-input-placeholder,
#full_address::-webkit-input-placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Labels - compact */
label[for="email"],
label[for="fname"],
label[for="lname"],
label[for="phone"],
label[for="full_address"],
label[for="locality"],
label[for="administrative_area_level_1"],
label[for="country"],
label[for="floor"],
label[for="note"],
label[for="deliveryDay"],
label[for="deliveryTime"],
label[for="ZipCode"] {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0;
}

/* ============================================================
   FORM GROUP SPACING (compact)
   ============================================================ */
.checkout-section .form-group {
    margin-bottom: 10px;
}

/* Even tighter inside sections */
.checkout-section .row {
    margin-left: -6px;
    margin-right: -6px;
}

.checkout-section .row > [class*="col"] {
    padding-left: 6px;
    padding-right: 6px;
}

/* General form-group spacing when not inside sections */
.form-group {
    margin-bottom: 12px;
}

/* ============================================================
   SECTION HEADINGS (Contact, Shipping, Payment, etc.)
   ============================================================ */
.checkout-section-heading,
h2, h3, h4, h5 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--checkout-font);
}

/* ============================================================
   SUBMIT / PLACE ORDER BUTTON (Conversion-Optimized)
   ============================================================ */
.submitButton,
button.submitButton,
a.submitButton,
input.submitButton {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    background: #1773b7 !important;
    background: var(--checkout-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    border-radius: var(--checkout-radius) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    -webkit-transition: all 0.25s ease !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(23, 115, 183, 0.35) !important;
    margin-top: 12px !important;
}

.submitButton:hover,
button.submitButton:hover,
a.submitButton:hover {
    background: #145f96 !important;
    background: var(--checkout-primary-hover) !important;
    box-shadow: 0 6px 20px rgba(23, 115, 183, 0.45) !important;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

.submitButton:active,
button.submitButton:active,
a.submitButton:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(23, 115, 183, 0.3) !important;
}

.submitButton.disabled,
.submitButton:disabled {
    background: #aac8e0 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    -webkit-transform: none !important;
    transform: none !important;
}

.submitButton i {
    margin-left: 8px;
}

/* Ripple effect */
.submitButton .btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-animation: ripple-effect 0.6s linear;
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@-webkit-keyframes ripple-effect {
    to { -webkit-transform: scale(4); transform: scale(4); opacity: 0; }
}
@keyframes ripple-effect {
    to { -webkit-transform: scale(4); transform: scale(4); opacity: 0; }
}

/* Security badge below button */
.checkout-security-badge {
    text-align: center;
    padding: 8px 0 4px;
    font-size: 11px;
    color: #737373;
    color: var(--checkout-text-muted);
}

.checkout-security-badge i,
.checkout-security-badge .lock-icon {
    color: #27ae60;
    margin-right: 4px;
}

/* ============================================================
   PAYMENT METHOD SECTION
   ============================================================ */

/* Payment Details Section - Add significant spacing around radio boxes */
.checkout-section-payment {
    padding: 20px 24px !important; /* Increased from default 18px 20px */
}

.checkout-section-payment .checkout-section-title {
    margin-bottom: 16px; /* More space below title */
}

/* Payment gateway radio button containers - more padding and spacing */
[data-id="storeCreditCardPayment"],
[data-id="storePaypalPayment"],
[data-id="storeCODPayment"],
[data-id="storeBankTransferPayment"] {
    background: #fafbfc;
    border: 1px solid #e1e1e1;
    border: 1px solid var(--checkout-border);
    border-radius: 6px;
    padding: 16px 20px; /* Increased from 14px 16px */
    margin-bottom: 12px; /* Increased from 8px for more spacing between boxes */
    margin-left: 0;
    margin-right: 0;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-id="storeCreditCardPayment"]:hover,
[data-id="storePaypalPayment"]:hover,
[data-id="storeCODPayment"]:hover,
[data-id="storeBankTransferPayment"]:hover {
    border-color: #b8b8b8;
}

/* Custom radio buttons for payment methods - increased spacing */
.custom-control.custom-radio {
    padding-left: 36px; /* Increased from 32px */
    min-height: 28px; /* Increased from 24px */
    margin-bottom: 8px; /* Increased from 6px */
    padding-top: 6px; /* Increased from 4px */
    padding-bottom: 6px; /* Increased from 4px */
}

.custom-control.custom-radio .custom-control-label {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    color: var(--checkout-text);
    padding-top: 2px;
}

.custom-control.custom-radio .custom-control-label::before {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    top: 2px;
    left: -32px;
    -webkit-transition: border-color 0.2s;
    transition: border-color 0.2s;
}

.custom-control.custom-radio .custom-control-label::after {
    width: 20px;
    height: 20px;
    top: 2px;
    left: -32px;
}

.custom-control.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #1773b7;
    border-color: var(--checkout-primary);
    background: #1773b7;
    background: var(--checkout-primary);
}

/* Gateway option row - add padding */
#gateway_option {
    padding: 4px 0;
}

#gateway_option .custom-control {
    padding: 6px 8px 6px 36px;
    margin-bottom: 4px;
    border-radius: 4px;
}

#gateway_option .custom-control:hover {
    background: #f5f7fa;
}

/* Credit card fields */
.checkoutPaymentMethod {
    margin-top: 10px;
}

#creditCardNumber {
    margin-bottom: 8px;
}

/* ============================================================
   ORDER SUMMARY / YOUR ORDER SECTIONS
   ============================================================ */

/* Products sub-section */
.checkout-section-products {
    background: #ffffff;
    background: var(--checkout-card-bg);
    border: 1px solid #e1e1e1;
    border: 1px solid var(--checkout-border);
    border-radius: 8px;
    border-radius: var(--checkout-radius);
    padding: 14px 16px 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    box-shadow: var(--checkout-shadow);
}

/* Review your order sub-section */
.checkout-section-review {
    background: #ffffff;
    background: var(--checkout-card-bg);
    border: 1px solid #e1e1e1;
    border: 1px solid var(--checkout-border);
    border-radius: 8px;
    border-radius: var(--checkout-radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    box-shadow: var(--checkout-shadow);
}

/* Summary amounts styling */
[data-summary-item-total],
[data-summary-subtotal],
[data-summary-discount],
[data-summary-shipping],
[data-summary-tax],
[data-summary-total] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--checkout-font);
}

[data-summary-total] {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #333 !important;
    color: var(--checkout-text) !important;
}

/* Product summary custom element - fix broken background */
cart_product_summary {
    display: block;
}

cart_product_summary .row {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

cart_product_summary .row:last-child {
    border-bottom: none;
}

/* Order summary wrapper */
#order_summary {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--checkout-font);
}

#order_summary .row {
    padding: 4px 0;
}

/* ============================================================
   TERMS & CONDITIONS CHECKBOX - HIGHLY VISIBLE
   ============================================================ */
#user_agreement,
input[type="checkbox"][name*="agree"],
input[type="checkbox"][name*="terms"],
.terms-checkbox {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    background: #fff;
}

#user_agreement:checked,
input[type="checkbox"][name*="agree"]:checked,
input[type="checkbox"][name*="terms"]:checked,
.terms-checkbox:checked {
    background: #1773b7;
    background: var(--checkout-primary);
    border-color: #1773b7;
    border-color: var(--checkout-primary);
}

#user_agreement:checked::after,
input[type="checkbox"][name*="agree"]:checked::after,
input[type="checkbox"][name*="terms"]:checked::after,
.terms-checkbox:checked::after {
    content: '\2713';
    position: absolute;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* T&C wrapper styling */
.tc-agreement-wrapper {
    background: #f8f9fa;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 8px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-transition: border-color 0.2s ease;
    transition: border-color 0.2s ease;
}

.tc-agreement-wrapper:hover {
    border-color: #1773b7;
    border-color: var(--checkout-primary);
}

.tc-agreement-wrapper.tc-error {
    border-color: #e74c3c;
    border-color: var(--checkout-danger);
    background: #fef5f5;
    -webkit-animation: shake 0.3s ease;
    animation: shake 0.3s ease;
}

.tc-agreement-wrapper label {
    font-size: 13px;
    color: #333;
    color: var(--checkout-text);
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1.4;
}

.tc-agreement-wrapper label a {
    color: #1773b7;
    color: var(--checkout-primary);
    text-decoration: underline;
    font-weight: 500;
}

@-webkit-keyframes shake {
    0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
    25% { -webkit-transform: translateX(-6px); transform: translateX(-6px); }
    75% { -webkit-transform: translateX(6px); transform: translateX(6px); }
}
@keyframes shake {
    0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
    25% { -webkit-transform: translateX(-6px); transform: translateX(-6px); }
    75% { -webkit-transform: translateX(6px); transform: translateX(6px); }
}

/* ============================================================
   COUPON CODE SECTION
   ============================================================ */
[data-coupon-code] {
    border-radius: 6px 0 0 6px !important;
    border-right: none !important;
}

[data-coupon-save] {
    border-radius: 0 6px 6px 0 !important;
    background: #333 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    -webkit-transition: background 0.2s ease !important;
    transition: background 0.2s ease !important;
}

[data-coupon-save]:hover {
    background: #555 !important;
    border-color: #555 !important;
}

/* ============================================================
   CART PAGE STYLING  —  MODERN / SHOPIFY-LIKE
   ============================================================ */

/* ---------- overall cart page background ---------- */
body .cart-page-enhanced {
    background: #f0f1f3;
    background: var(--checkout-bg);
}

/* ---------- Cart header (injected by JS) ---------- */
.cart-header-bar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 16px 24px;
    margin-bottom: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.cart-header-bar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    font-family: var(--checkout-font);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.cart-header-bar h2 i {
    font-size: 22px;
    margin-right: 10px;
    color: #1773b7;
    -webkit-animation: cartBounce 2s ease infinite;
    animation: cartBounce 2s ease infinite;
}

@-webkit-keyframes cartBounce {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    15% { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
    30% { -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes cartBounce {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    15% { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
    30% { -webkit-transform: translateY(0); transform: translateY(0); }
}

.cart-header-bar .cart-item-count {
    background: #1773b7;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
    -webkit-animation: badgePop 0.4s ease;
    animation: badgePop 0.4s ease;
}

@-webkit-keyframes badgePop {
    0% { -webkit-transform: scale(0); transform: scale(0); }
    60% { -webkit-transform: scale(1.2); transform: scale(1.2); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes badgePop {
    0% { -webkit-transform: scale(0); transform: scale(0); }
    60% { -webkit-transform: scale(1.2); transform: scale(1.2); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

.cart-header-bar .continue-shopping-link {
    color: #1773b7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.cart-header-bar .continue-shopping-link i {
    margin-right: 5px;
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
}

.cart-header-bar .continue-shopping-link:hover {
    color: #145f96;
}

.cart-header-bar .continue-shopping-link:hover i {
    -webkit-transform: translateX(-3px);
    transform: translateX(-3px);
}

/* ---------- Cart products card ---------- */
.cart-products-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.cart-products-card table {
    margin-bottom: 0;
}

.cart-products-card thead th {
    background: #f8f9fb;
    border-bottom: 2px solid #eee;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-products-card tbody tr,
.cart-products-card [data-row],
[data-component-store-product] [data-row] {
    border-bottom: 1px solid #f0f0f0;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.cart-products-card tbody tr:hover,
.cart-products-card [data-row]:hover,
[data-component-store-product] [data-row]:hover {
    background: #f9fbfd;
}

.cart-products-card tbody tr:last-child,
.cart-products-card [data-row]:last-child,
[data-component-store-product] [data-row]:last-child {
    border-bottom: none;
}

.cart-products-card tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 14px;
}

/* Product image in cart row */
.cart-products-card img,
[data-component-store-product] img {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---------- Cart summary card ---------- */
.cart-summary-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.cart-summary-card .summary-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

/* ---------- Quantity controls ---------- */
.inc-btn,
.dec-btn {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -webkit-transition: all 0.2s ease !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.inc-btn:hover,
.dec-btn:hover {
    background: #eef5fb !important;
    border-color: #1773b7 !important;
    color: #1773b7 !important;
    box-shadow: 0 2px 6px rgba(23,115,183,0.15) !important;
}

.inc-btn:active,
.dec-btn:active {
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
}

/* Quantity input */
[data-qty],
[data-v-qty] {
    width: 48px !important;
    height: 36px !important;
    text-align: center !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin: 0 4px !important;
    color: #333 !important;
}

/* Quantity pulse on change */
.qty-updated {
    -webkit-animation: qtyPulse 0.35s ease;
    animation: qtyPulse 0.35s ease;
}

@-webkit-keyframes qtyPulse {
    0% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.15); transform: scale(1.15); background: #e8f4fd; }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes qtyPulse {
    0% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.15); transform: scale(1.15); background: #e8f4fd; }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

/* ---------- Cart delete button ---------- */
.delete-cart-row {
    color: #bbb !important;
    cursor: pointer !important;
    -webkit-transition: all 0.25s ease !important;
    transition: all 0.25s ease !important;
    font-size: 16px !important;
    width: 32px !important;
    height: 32px !important;
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.delete-cart-row:hover {
    color: #e74c3c !important;
    background: #fef0f0 !important;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* ---------- Cart totals ---------- */
[data-cart-sub-total],
[data-cart-discount],
[data-cart-shipping],
[data-cart-tax],
[data-cart-total] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--checkout-font);
    font-weight: 600;
}

[data-cart-total] {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
}

/* ---------- Cart Checkout button — GREEN for CTA conversion ---------- */
[data-checkout-url],
[data-cart-checkout-btn] {
    display: block;
    text-decoration: none !important;
}

[data-cart-checkout-btn],
[data-checkout-url] .btn {
    background: #2ecc40 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    letter-spacing: 0.8px !important;
    -webkit-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(46, 204, 64, 0.35) !important;
    text-transform: uppercase !important;
    position: relative !important;
    overflow: hidden !important;
}

[data-cart-checkout-btn]::after,
[data-checkout-url] .btn::after {
    content: '\f178';
    font-family: FontAwesome;
    margin-left: 10px;
    display: inline-block;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

[data-cart-checkout-btn]:hover,
[data-checkout-url] .btn:hover {
    background: #27ae60 !important;
    box-shadow: 0 6px 24px rgba(39, 174, 96, 0.45) !important;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

[data-cart-checkout-btn]:hover::after,
[data-checkout-url] .btn:hover::after {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}

[data-cart-checkout-btn]:active,
[data-checkout-url] .btn:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3) !important;
}

/* Animated shimmer on checkout button */
[data-cart-checkout-btn]::before,
[data-checkout-url] .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(left, transparent, rgba(255,255,255,0.2), transparent);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    -webkit-animation: shimmerBtn 3s ease infinite;
    animation: shimmerBtn 3s ease infinite;
}

@-webkit-keyframes shimmerBtn {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}
@keyframes shimmerBtn {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ---------- Coupon code area ---------- */
.cart-coupon-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.cart-coupon-card .coupon-title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ---------- "Continue Shopping" in add-to-cart modal ---------- */
#add2CartClickModal .modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    overflow: hidden;
}

#add2CartClickModal .modal-body {
    padding: 24px 28px 28px !important;
}

#add2CartClickModal .btn-dark {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    -webkit-transition: all 0.25s ease !important;
    transition: all 0.25s ease !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#add2CartClickModal .btn-dark:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Modal checkout button — also green */
#add2CartClickModal [data-cart-checkout-btn],
#add2CartClickModal [data-checkout-url] .btn {
    background: #2ecc40 !important;
    box-shadow: 0 4px 16px rgba(46, 204, 64, 0.35) !important;
}

#add2CartClickModal [data-cart-checkout-btn]:hover,
#add2CartClickModal [data-checkout-url] .btn:hover {
    background: #27ae60 !important;
    box-shadow: 0 6px 24px rgba(39, 174, 96, 0.45) !important;
}

/* Modal success icon animation */
#add2CartClickModal .modalSuccessHeading .fa-check {
    -webkit-animation: successPop 0.5s ease;
    animation: successPop 0.5s ease;
}

@-webkit-keyframes successPop {
    0% { -webkit-transform: scale(0) rotate(-45deg); transform: scale(0) rotate(-45deg); opacity: 0; }
    60% { -webkit-transform: scale(1.2) rotate(0deg); transform: scale(1.2) rotate(0deg); }
    100% { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes successPop {
    0% { -webkit-transform: scale(0) rotate(-45deg); transform: scale(0) rotate(-45deg); opacity: 0; }
    60% { -webkit-transform: scale(1.2) rotate(0deg); transform: scale(1.2) rotate(0deg); }
    100% { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ---------- Cart trust / urgency strip (injected by JS) ---------- */
.cart-trust-strip {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: distribute;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    flex-wrap: wrap;
}

.cart-trust-strip .trust-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 12px;
    color: #555;
    font-weight: 500;
    padding: 4px 8px;
}

.cart-trust-strip .trust-item i {
    font-size: 18px;
    margin-right: 8px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.cart-trust-strip .trust-item:hover i {
    -webkit-transform: scale(1.15);
    transform: scale(1.15);
}

.cart-trust-strip .trust-item .fa-truck {
    color: #1773b7;
    -webkit-animation: truckDrive 3s ease-in-out infinite;
    animation: truckDrive 3s ease-in-out infinite;
}

@-webkit-keyframes truckDrive {
    0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
    25% { -webkit-transform: translateX(3px); transform: translateX(3px); }
    50% { -webkit-transform: translateX(0); transform: translateX(0); }
    75% { -webkit-transform: translateX(-2px); transform: translateX(-2px); }
}
@keyframes truckDrive {
    0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); }
    25% { -webkit-transform: translateX(3px); transform: translateX(3px); }
    50% { -webkit-transform: translateX(0); transform: translateX(0); }
    75% { -webkit-transform: translateX(-2px); transform: translateX(-2px); }
}

.cart-trust-strip .trust-item .fa-shield {
    color: #27ae60;
}

.cart-trust-strip .trust-item .fa-refresh {
    color: #e67e22;
}

.cart-trust-strip .trust-item .fa-lock {
    color: #27ae60;
    -webkit-animation: lockPulse 2.5s ease infinite;
    animation: lockPulse 2.5s ease infinite;
}

@-webkit-keyframes lockPulse {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.1); transform: scale(1.1); }
}
@keyframes lockPulse {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.1); transform: scale(1.1); }
}

/* ---------- Free Shipping Progress Bar (injected by JS) ---------- */
.free-shipping-bar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 14px 20px;
    margin-bottom: 16px;
    text-align: center;
}

.free-shipping-bar .shipping-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.free-shipping-bar .shipping-text i {
    color: #e67e22;
    margin-right: 4px;
}

.free-shipping-bar .shipping-text .amount-remaining {
    color: #e74c3c;
    font-weight: 700;
}

.free-shipping-bar .shipping-text.shipping-achieved {
    color: #27ae60;
}

.free-shipping-bar .shipping-text.shipping-achieved i {
    color: #27ae60;
    -webkit-animation: checkBounce 0.5s ease;
    animation: checkBounce 0.5s ease;
}

@-webkit-keyframes checkBounce {
    0% { -webkit-transform: scale(0); transform: scale(0); }
    60% { -webkit-transform: scale(1.3); transform: scale(1.3); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes checkBounce {
    0% { -webkit-transform: scale(0); transform: scale(0); }
    60% { -webkit-transform: scale(1.3); transform: scale(1.3); }
    100% { -webkit-transform: scale(1); transform: scale(1); }
}

.shipping-progress {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.shipping-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: -webkit-linear-gradient(left, #f39c12, #e67e22, #27ae60);
    background: linear-gradient(90deg, #f39c12, #e67e22, #27ae60);
    -webkit-transition: width 0.6s ease;
    transition: width 0.6s ease;
    position: relative;
}

.shipping-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(left, transparent, rgba(255,255,255,0.3), transparent);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    -webkit-animation: progressShimmer 2s ease infinite;
    animation: progressShimmer 2s ease infinite;
}

@-webkit-keyframes progressShimmer {
    0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
    100% { -webkit-transform: translateX(200%); transform: translateX(200%); }
}
@keyframes progressShimmer {
    0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
    100% { -webkit-transform: translateX(200%); transform: translateX(200%); }
}

/* ---------- Secure checkout animated lock bar ---------- */
.cart-secure-bar {
    text-align: center;
    padding: 10px 0 4px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.cart-secure-bar i {
    color: #27ae60;
    margin-right: 4px;
}

/* ---------- Empty cart state ---------- */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-empty-state .empty-cart-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 16px;
    -webkit-animation: emptyCartFloat 3s ease-in-out infinite;
    animation: emptyCartFloat 3s ease-in-out infinite;
}

@-webkit-keyframes emptyCartFloat {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-10px); transform: translateY(-10px); }
}
@keyframes emptyCartFloat {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50% { -webkit-transform: translateY(-10px); transform: translateY(-10px); }
}

.cart-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.cart-empty-state p {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.cart-empty-state .empty-cart-btn {
    display: inline-block;
    background: #1773b7;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(23,115,183,0.3);
}

.cart-empty-state .empty-cart-btn:hover {
    background: #145f96;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23,115,183,0.4);
}

/* ---------- Remove item slide-out ---------- */
.cart-row-removing {
    -webkit-animation: rowSlideOut 0.4s ease forwards;
    animation: rowSlideOut 0.4s ease forwards;
    overflow: hidden;
}

@-webkit-keyframes rowSlideOut {
    0% { opacity: 1; max-height: 200px; -webkit-transform: translateX(0); transform: translateX(0); }
    100% { opacity: 0; max-height: 0; -webkit-transform: translateX(40px); transform: translateX(40px); padding-top: 0; padding-bottom: 0; }
}
@keyframes rowSlideOut {
    0% { opacity: 1; max-height: 200px; -webkit-transform: translateX(0); transform: translateX(0); }
    100% { opacity: 0; max-height: 0; -webkit-transform: translateX(40px); transform: translateX(40px); padding-top: 0; padding-bottom: 0; }
}

/* ---------- Cart item appear animation ---------- */
.cart-row-enter {
    -webkit-animation: rowFadeIn 0.4s ease;
    animation: rowFadeIn 0.4s ease;
}

@-webkit-keyframes rowFadeIn {
    0% { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
    100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes rowFadeIn {
    0% { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
    100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

/* ---------- Mobile cart responsive ---------- */
@media (max-width: 767px) {
    .cart-header-bar {
        padding: 12px 16px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 8px;
    }

    .cart-header-bar h2 {
        font-size: 17px;
    }

    .cart-trust-strip {
        padding: 10px;
    }

    .cart-trust-strip .trust-item {
        font-size: 11px;
        padding: 4px 6px;
    }

    .cart-trust-strip .trust-item i {
        font-size: 16px;
    }

    .cart-products-card thead {
        display: none;
    }

    .cart-products-card tbody td {
        padding: 10px 12px;
    }

    [data-cart-checkout-btn],
    [data-checkout-url] .btn {
        padding: 13px 24px !important;
        font-size: 15px !important;
    }

    .free-shipping-bar {
        padding: 10px 14px;
    }

    .cart-summary-card {
        padding: 16px;
    }

    .cart-empty-state {
        padding: 40px 16px;
    }

    .cart-empty-state .empty-cart-icon {
        font-size: 48px;
    }
}

/* Extremely small screens */
@media (max-width: 400px) {
    .cart-trust-strip {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
}

/* ============================================================
   INLINE VALIDATION MESSAGES
   ============================================================ */
.checkout-field-error {
    color: #e74c3c;
    color: var(--checkout-danger);
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
    display: none;
}

.checkout-field-error.visible {
    display: block;
    -webkit-animation: fadeInDown 0.2s ease;
    animation: fadeInDown 0.2s ease;
}

@-webkit-keyframes fadeInDown {
    from { opacity: 0; -webkit-transform: translateY(-4px); transform: translateY(-4px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; -webkit-transform: translateY(-4px); transform: translateY(-4px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

/* ============================================================
   DISABLED FIELD STATES
   ============================================================ */
#locality:disabled,
#administrative_area_level_1:disabled,
#country:disabled {
    background: #f8f9fa;
    color: #666;
    cursor: not-allowed;
    opacity: 0.85;
}

/* ============================================================
   HELP BLOCK / ERROR MESSAGES
   ============================================================ */
.help-block,
.e-help-block {
    font-size: 11px;
    margin-top: 2px;
    font-weight: 500;
}

/* ============================================================
   MOBILE RESPONSIVENESS - COMPACT LAYOUT
   ============================================================ */
@media (max-width: 767px) {
    .checkout-section {
        padding: 14px 14px 10px;
        margin-bottom: 8px;
        border-radius: 6px;
    }

    .checkout-section-title {
        font-size: 13px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .checkout-section .form-group {
        margin-bottom: 8px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .submitButton,
    button.submitButton {
        height: 48px !important;
        font-size: 14px !important;
        position: sticky !important;
        bottom: 8px !important;
        z-index: 1000 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    #email,
    #fname,
    #lname,
    #phone,
    #full_address,
    #locality,
    #administrative_area_level_1,
    #country,
    #floor,
    #note,
    #deliveryDay,
    #deliveryTime,
    #creditCardNumber,
    #cvv,
    #expiryMonth,
    #expiryYear,
    #ZipCode,
    [data-coupon-code],
    [name*="custom"] {
        height: 42px;
        font-size: 15px; /* Prevents zoom on iOS */
        padding: 8px 10px;
    }

    /* Compact labels on mobile */
    label[for="email"],
    label[for="fname"],
    label[for="lname"],
    label[for="phone"],
    label[for="full_address"],
    label[for="locality"],
    label[for="administrative_area_level_1"],
    label[for="country"],
    label[for="floor"],
    label[for="note"],
    label[for="deliveryDay"],
    label[for="deliveryTime"],
    label[for="ZipCode"] {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .tc-agreement-wrapper {
        padding: 10px 12px;
        margin: 6px 0;
    }

    .tc-agreement-wrapper label {
        font-size: 12px;
    }

    /* Cart quantity controls */
    .inc-btn,
    .dec-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 20px !important;
    }

    /* Payment section compact */
    [data-id="storeCreditCardPayment"],
    [data-id="storePaypalPayment"],
    [data-id="storeCODPayment"],
    [data-id="storeBankTransferPayment"] {
        padding: 10px 12px;
        margin-bottom: 6px;
    }

    .checkout-section-products,
    .checkout-section-review {
        padding: 10px 12px 8px;
        margin-bottom: 6px;
    }

    /* Reduce overall row gutter on mobile */
    .checkout-section .row {
        margin-left: -4px;
        margin-right: -4px;
    }

    .checkout-section .row > [class*="col"] {
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* Even smaller screens */
@media (max-width: 400px) {
    .checkout-section {
        padding: 12px 10px 8px;
    }

    .checkout-section-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* ============================================================
   AUTOFILL HIGHLIGHT OVERRIDE
   ============================================================ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #333;
    -webkit-box-shadow: 0 0 0px 1000px #f0f7ff inset;
    border-color: #1773b7 !important;
    -webkit-transition: background-color 5000s ease-in-out 0s;
    transition: background-color 5000s ease-in-out 0s;
}

/* ============================================================
   PRE-FILL INDICATOR (subtle pulse)
   ============================================================ */
.pre-filled {
    -webkit-animation: preFillPulse 0.5s ease;
    animation: preFillPulse 0.5s ease;
}

@-webkit-keyframes preFillPulse {
    0% { background-color: #fff; }
    50% { background-color: #e8f4fd; }
    100% { background-color: #fff; }
}
@keyframes preFillPulse {
    0% { background-color: #fff; }
    50% { background-color: #e8f4fd; }
    100% { background-color: #fff; }
}

/* ============================================================
   LOADING OVERLAY FOR CHECKOUT
   ============================================================ */
.checkout-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.checkout-loading-overlay .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e1e1e1;
    border-top-color: #1773b7;
    border-radius: 50%;
    -webkit-animation: spin 0.8s linear infinite;
    animation: spin 0.8s linear infinite;
}

.checkout-loading-overlay .loading-text {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

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

/* ============================================================
   TRUST BADGES (injected by JS below submit button)
   ============================================================ */
.trust-badges {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 8px 0 4px;
    flex-wrap: wrap;
}

.trust-badges .trust-badge-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 11px;
    color: #737373;
    white-space: nowrap;
    margin: 0 8px;
}

.trust-badges .trust-badge-item i {
    margin-right: 4px;
    font-size: 13px;
}

.trust-badges .trust-badge-item .fa-lock {
    color: #27ae60;
}

.trust-badges .trust-badge-item .fa-shield {
    color: #1773b7;
}

.trust-badges .trust-badge-item .fa-credit-card {
    color: #737373;
}

/* ============================================================
   ALERT / NOTIFICATION STYLING OVERRIDE
   ============================================================ */
.alertify .ajs-dialog {
    border-radius: 12px;
}

.alertify .ajs-header {
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   BUTTON ICON (loading spinner) STYLES
   ============================================================ */
.submitButton i.fa-spinner,
.submitButton i.fa-circle-o-notch {
    display: none;
}

.submitButton[disabled] i.fa-spinner,
.submitButton[disabled] i.fa-circle-o-notch {
    display: inline-block !important;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

/* ============================================================
   ORDER BUMP CHECKBOX STYLING
   ============================================================ */
#order_bump_check {
    margin-right: 8px;
}

/* ============================================================
   CHECKOUT PROGRESS INDICATOR (if injected by JS)
   ============================================================ */
.checkout-progress {
    background: #ffffff;
    background: var(--checkout-card-bg);
    padding: 12px 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e1e1e1;
    border-bottom: 1px solid var(--checkout-border);
}

.checkout-progress-steps {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-progress-steps li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 12px;
    color: #737373;
    color: var(--checkout-text-muted);
}

.checkout-progress-steps li.active {
    color: #1773b7;
    color: var(--checkout-primary);
    font-weight: 600;
}

.checkout-progress-steps li.completed {
    color: #27ae60;
    color: var(--checkout-success);
}

.checkout-progress-steps li .step-divider {
    margin: 0 10px;
    color: #ccc;
    font-size: 10px;
}

.checkout-progress-steps li .step-number {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e1e1e1;
    color: #737373;
    text-align: center;
    line-height: 22px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
}

.checkout-progress-steps li.active .step-number {
    background: #1773b7;
    background: var(--checkout-primary);
    color: #fff;
}

.checkout-progress-steps li.completed .step-number {
    background: #27ae60;
    background: var(--checkout-success);
    color: #fff;
}
