/* ==========================================================
   Shopify Style Checkout Pro 4.3.4
========================================================== */
:root {
    --scc-primary: #197bbd;
    --scc-border: #d9d9d9;
    --scc-muted: #737373;
    --scc-right-bg: #fafafa;
}

body.scc-pro-body {
    background: #fff;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    color: #333;
}

.scc-master-form *,
.scc-master-form *::before,
.scc-master-form *::after {
    box-sizing: border-box !important;
}

body.scc-pro-body form.scc-master-form {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 55%, #e1e1e1 55%, #e1e1e1 calc(55% + 1px), #fafafa calc(55% + 1px), #fafafa 100%) !important;
}

body.scc-pro-body form.scc-master-form::before,
body.scc-pro-body form.scc-master-form::after {
    display: none !important;
    content: none !important;
}

.scc-split-left {
    flex: 0 0 55% !important;
    width: 55% !important;
    background: transparent !important;
    border-right: none !important;
    display: block !important;
}

.scc-left-content {
    width: 100%;
    max-width: 600px;
    padding: 50px 40px 50px 20px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.scc-split-right {
    flex: 0 0 45% !important;
    width: 45% !important;
    background: transparent !important;
    border-left: none !important;
    display: block !important;
}

.scc-right-content {
    width: 100%;
    max-width: 450px;
    padding: 50px 20px 50px 40px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    position: sticky !important;
    top: 0 !important;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    display: none !important;
}

.woocommerce-checkout .form-row label:not(.woocommerce-form__label):not(.checkbox):not(.radio) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.woocommerce-checkout .form-row.checkbox label,
.woocommerce-checkout .form-row.create-account label,
.woocommerce-checkout .woocommerce-form__label {
    display: inline-block !important;
    margin-bottom: 10px;
    font-size: 14px;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -8px !important;
}

.woocommerce-checkout .form-row {
    padding: 0 8px !important;
    margin-bottom: 16px !important;
    width: 100%;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 50% !important;
}

#billing_city_field,
#shipping_city_field,
#billing_state_field,
#shipping_state_field,
#billing_postcode_field,
#shipping_postcode_field {
    width: 33.3333% !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100% !important;
    padding: 13px !important;
    border-radius: 5px !important;
    border: 1px solid var(--scc-border) !important;
    font-size: 14px !important;
    line-height: 20px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    min-height: 48px !important;
    color: #333 !important;
}

.woocommerce-checkout .form-row textarea {
    min-height: 96px !important;
    resize: vertical;
}

.woocommerce-checkout .form-row select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 10px !important;
}

.select2-container .select2-selection--single {
    min-height: 48px !important;
    border: 1px solid var(--scc-border) !important;
    border-radius: 5px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 13px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
}

.scc-logo {
    font-size: 28px;
    color: #333;
    font-weight: 500;
    display: block;
    margin: 0 0 15px 0;
}

.scc-logo-img {
    display: block !important;
    max-height: 104px;
    max-width: 260px;
    margin: 0 0 20px 0 !important;
    object-fit: contain;
}

.scc-crumbs {
    font-size: 13px;
    color: var(--scc-muted);
    margin-bottom: 30px;
    display: block;
}

.scc-section-title {
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0 10px;
}

.scc-secure-note {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 13px;
}

.scc-footer-links {
    font-size: 12px;
    color: var(--scc-primary);
    margin-top: 40px;
    border-top: 1px solid #e1e1e1;
    padding-top: 15px;
}

#payment {
    background: #fafafa;
    border: 1px solid var(--scc-border);
    border-radius: 5px;
    padding: 20px;
}

#payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

#payment ul.payment_methods li {
    margin: 0 0 12px !important;
}

#payment div.payment_box {
    background-color: #fff !important;
    border: 1px solid #e1e1e1;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 13px;
}

#place_order {
    color: #fff !important;
    padding: 18px !important;
    border-radius: 5px !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
    border: none !important;
    transition: opacity 0.3s, transform 0.15s;
    cursor: pointer;
    text-transform: none !important;
}

#place_order:hover {
    opacity: 0.9;
}

#place_order:active,
#scc-floating-btn:active {
    transform: translateY(1px);
}

#place_order:disabled,
#scc-floating-btn:disabled,
#scc-floating-btn.processing {
    opacity: 0.65 !important;
    cursor: wait !important;
}

.scc-prod-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.scc-prod-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    position: relative;
    background: #fff;
    flex-shrink: 0;
}

.scc-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.scc-prod-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(114,114,114,0.9);
    color: #fff;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scc-prod-name {
    flex: 1;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.scc-prod-price {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.scc-total-area {
    border-top: 1px solid #e1e1e1;
    margin-top: 20px;
    padding-top: 20px;
}

.scc-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.scc-row span:last-child {
    text-align: right;
}

.scc-discount-row span:last-child,
.scc-discount-row .woocommerce-Price-amount {
    color: #168a42;
}

.total-grand {
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    color: #333;
}

.scc-mobile-toggle {
    display: none;
}

#scc-debug-panel {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 99999999;
    width: 210px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(17, 24, 39, .92);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

#scc-debug-panel strong,
#scc-debug-panel span {
    display: block;
    margin-bottom: 4px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-radius: 5px !important;
    margin-bottom: 18px !important;
}

@media (max-width: 991px) {
    body.scc-pro-body form.scc-master-form {
        flex-direction: column !important;
        background: #ffffff !important;
    }

    .wd-toolbar,
    .woodmart-toolbar,
    .wd-mobile-nav {
        display: none !important;
    }

    body.scc-pro-body.scc-has-sticky-button {
        padding-bottom: 100px !important;
    }

    .scc-split-left {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .scc-split-right {
        display: none !important;
    }

    .scc-left-content {
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .scc-header,
    .scc-form-sections,
    .scc-footer-links {
        padding: 0 20px;
    }

    .scc-header {
        margin-top: 20px;
    }

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last,
    #billing_city_field,
    #shipping_city_field,
    #billing_state_field,
    #shipping_state_field,
    #billing_postcode_field,
    #shipping_postcode_field {
        width: 100% !important;
    }

    .scc-mobile-toggle {
        display: block;
        background: var(--scc-right-bg);
        border: 1px solid #e1e1e1;
        border-radius: 5px;
        margin: 15px 20px;
        padding: 15px 20px;
        cursor: pointer;
    }

    .scc-mobile-toggle-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .scc-toggle-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--scc-primary);
    }

    .scc-mobile-total {
        font-weight: 600;
        font-size: 18px;
        color: #333;
        white-space: nowrap;
    }

    #scc-mobile-order-details {
        background: var(--scc-right-bg);
        border-bottom: 1px solid #e1e1e1;
        padding: 20px;
    }

    .scc-sticky-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 10px 20px calc(10px + env(safe-area-inset-bottom)) !important;
        z-index: 9999999 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        pointer-events: none;
    }

    #scc-floating-btn {
        width: 100% !important;
        max-width: 340px !important;
        min-height: 50px !important;
        height: auto !important;
        padding: 14px 16px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        display: block !important;
        background-color: var(--scc-primary) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 15px !important;
        font-size: 14px !important;
        font-weight: normal !important;
        text-transform: none !important;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05) !important;
        pointer-events: auto;
    }

    .scc-logo-img {
        margin: 0 auto 20px auto !important;
    }

    .scc-logo {
        text-align: center !important;
        margin: 0 auto 15px auto !important;
    }

    .scc-crumbs {
        text-align: center !important;
    }

    body.scc-has-sticky-button #place_order {
        display: none !important;
    }

    #scc-debug-panel {
        right: 10px;
        bottom: 76px;
        width: 180px;
    }
}

@media (min-width: 992px) {
    .scc-sticky-footer {
        display: none !important;
    }

    body.scc-pro-body .scc-sticky-footer {
        display: none !important;
    }

    #place_order {
        display: block !important;
        width: 100% !important;
        background-color: var(--scc-primary) !important;
        color: #fff !important;
        padding: 18px !important;
        border-radius: 5px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        margin-top: 20px !important;
        border: none !important;
        cursor: pointer;
    }
}

/* Button-only progress: no new backdrop, popup or checkout interception. */
#place_order.scc-is-loading,
#scc-floating-btn.scc-is-loading {
    opacity: 0.9 !important;
    cursor: wait !important;
    transform: none !important;
}

#place_order .scc-button-content,
#scc-floating-btn .scc-button-content {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    vertical-align: middle;
    line-height: 1.4;
}

.scc-button-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.scc-button-spinner {
    display: inline-block !important;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: scc-button-spin 0.75s linear infinite;
}

.scc-button-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%);
    white-space: nowrap !important;
    border: 0 !important;
}

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

@media (prefers-reduced-motion: reduce) {
    .scc-button-spinner {
        animation: none;
    }
}
