.cart-button-widget {
    display: none !important;
}

.main {
    background-image: url('<?php echo htmlspecialchars($vendor_background_url); ?>');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px 40px 20px;
    /* width: 1270px !important; */
    justify-self: center;
    gap: 20px;
    background-color: var(--primary-white);
    border-radius: 18px;
}

.site-main {
    background-color: var(--background-color-body);
    padding: 40px 0px !important;
}

@media (max-width:1280px) {
    .site-main {
        padding: 40px 20px !important;
    }
}
@media (max-width: 768px) {
    .site-main {
        padding: 30px 10px !important;
    }

}

    #primary {
        margin: 0px !important;
    }

    /* .site-main{
            width: 1270px !important; 
            justify-self: center !important;
        } */
    .main {
        width: 100% !important;
        max-width: 1270px !important;
        justify-self: center !important;
    }

    .checkout-page {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    @media (min-width: 768px) {
        .checkout-page {
            width: 100%;
        }
    }

    .main {
        padding: 40px 20px 40px 20px !important;
    }

    @media (min-width: 1200px) {
        .checkout-page {
            width: 100%;
        }
    }

    @media (min-width: 1920px) {
        .checkout-page {
            width: 100%;
        }
    }

    .checkout-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: none;
    }

    @media (min-width: 768px) {
        .checkout-container {
            gap: 2rem;
            max-width: none;
        }

        .main {
            padding: 40px 20px 40px 20px !important;
        }
    }

    @media (min-width: 768px) {
        .checkout-container {
            grid-template-columns: 1fr 1fr;
            max-width: none;
        }
    }

    @media (min-width: 1200px) {
        .checkout-container {
            max-width: none;
            width: 100%;
        }
    }

    @media (max-width: 425px) {
        .product-title {
            font-size: 14px !important;
        }

        .main {
            padding: 30px 20px 30px 20px !important;
        }
    }

    @media (min-width: 1920px) {
        .checkout-container {
            max-width: none;
            width: 100%;
        }
    }

    .checkout-header {
        text-align: center;
    }

    .checkout-title {
        color: var(--primary-black);
        font-size: 1.75rem;
        font-weight: 700;
        font-family:  var(--e-global-typography-aea7d47-font-family), Sans-serif;;
    }

    @media (min-width: 768px) {
        .checkout-title {
            font-size: 2.25rem;
        }
    }

    .order-summary {
        background: white;
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        position: sticky;
        top: 60px;
        align-self: start;
        order: -1;
    }

    @media (min-width: 768px) {
        .order-summary {
            order: 0;
        }
    }

    .checkout-form {
        display: grid;
        gap: 1.5rem;
    }

    .form-section {
        background: white;
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        position: relative;
        z-index: 1;
    }

    .form-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--checkout-primary);
        font-family:  var(--e-global-typography-aea7d47-font-family), Sans-serif;;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    h2,
    h3,
    p,
    .payment-method {
        font-family:  var(--e-global-typography-aea7d47-font-family), Sans-serif;;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        font-family:  var(--e-global-typography-aea7d47-font-family), Sans-serif;;
    }

    .order-totals {
        font-family:  var(--e-global-typography-aea7d47-font-family), Sans-serif;;
    }

    .form-input {
        width: 95%;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        height: auto;
        min-height: 2.5rem;
        font-size: 14px;
        line-height: 1.5;
    }

    .form-input:focus {
        border: 1px solid !important;
        border-color: var(--primary-black) !important;
        box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
    }

    .form-input option {
        padding: 8px 12px;
        font-size: 14px;
        line-height: 1.5;
        height: auto;
        min-height: 2rem;
        white-space: normal;
        word-wrap: break-word;
        overflow: visible;
    }

    /* Ensure select elements display properly */
    select.form-input {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 1em;
        padding-right: 2.5rem;
        height: auto;
        min-height: 2.5rem;
        line-height: 1.5;
    }

    /* Fix dropdown options display */
    select.form-input option {
        padding: 8px 12px;
        font-size: 14px;
        line-height: 1.5;
        height: auto;
        min-height: 2rem;
        white-space: normal;
        word-wrap: break-word;
    }

    /* Ensure dropdown container has proper z-index */
    select.form-input:focus {
        z-index: 1000;
    }

    .form-input.error {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    }

    .form-input.success {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    }

    .phone-input-group {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    .country-code-select {
        width: 120px;
        margin-right: 10px;
        height: auto;
        min-height: 2.5rem;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        background-color: white;
        font-size: 14px;
        line-height: 1.5;
        position: relative;
        z-index: 10;
    }

    .phone-number-input {
        flex-grow: 1;
    }

    .submit-btn {
        background-color: var(--primary-color);
        color: white;
        padding: 1rem;
        border: none;
        border-radius: 4px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s;
        width: 100%;
    }

    .submit-btn:hover {
        background-color: var(--primary-white);
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
    }

    .product-item {
        display: flex;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e2e8f0;
        gap: 25px;
    }

    .order-Summary-heading {
        padding-bottom: 30px !important;
    }

    .product-image img {
        max-width: 80px;
        height: auto;
    }

    .product-image {
        width: 50% !important;
        height: 100% !important;
    }

    .product-details {
        flex-grow: 1;
        width: 50%;
    }

    .product-price {
        font-weight: bold;
        color: var(--primary-color) !important;
    }

    .order-totals {
        margin-top: 1rem;
    }

    .total-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .grand-total {
        font-weight: bold;
        font-size: 1.1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
    }

    .payment-section {
        background: white;
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }

    .payment-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--checkout-primary);
    }

    .payment-method {
        align-items: center;
        cursor: pointer;
        padding: 0.75rem;
        display: flex;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        gap: 8px;
        margin-bottom: 1rem;
    }

    .payment-radio {
        color: rgb(18, 18, 18);
        aspect-ratio: 1 / 1;
        width: 1rem;
        height: 1rem;
        border-width: 2px;
        border-color: rgb(18, 18, 18);
        border-style: solid;
        border-radius: 10000px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .payment-radio-selected {
        background-color: rgb(18, 18, 18);
    }

    .payment-icon {
        width: 24px;
        height: 24px;
    }

    .card-form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-field {
        padding: 0.75rem;
        width: 100%;
        min-height: 2.5rem;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
    }

    .card-field-full {
        grid-column: span 1;
    }

    @media (min-width: 768px) {
        .card-form-grid {
            grid-template-columns: 1fr 1fr !important;
        }

        .card-field-full {
            grid-column: span 2;
        }
    }

    @media (max-width: 768px) {
        .checkout-container {
            display: flex;
            flex-direction: column-reverse;
            gap: 1.5rem;
            padding: 1rem;
            max-width: none;
            width: 100%;
        }

        .order-summary {
            position: relative;
            top: 0;
        }
    }