
main#clm-custom-form-container {
    padding: 20px; border-radius: 8px; box-sizing: border-box;
    background-color: #f2f2f2; max-width: 500px; margin: auto;
}


main#clm-custom-form-container input:not([type="checkbox"]),
main#clm-custom-form-container textarea,
#clmMessageModal #clm-otp-code-input {
    width: 100%; padding: 12px; margin: 10px 0; border-radius: 4px;
    font-size: 16px; box-sizing: border-box; border: 1px solid #ccc;
    background-color: #ffffff;
}

main#clm-custom-form-container textarea { resize: vertical; }


.iti { width: 100%; margin: 10px 0; display: block; }


main#clm-custom-form-container button, #clmMessageModal button {
    width: 100%; padding: 12px; margin-top: 10px; margin-bottom: 10px;
    border-radius: 4px; font-size: 16px; box-sizing: border-box;
    background-color: #007bff; color: #ffffff; border: none;
    cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease;
}
main#clm-custom-form-container button:hover, #clmMessageModal button:hover {
    background-color: #0056b3; color: #ffffff;
}


.clm-modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(18, 18, 20, 0.75); 
    backdrop-filter: blur(4px); 
    align-items: center; 
    justify-content: center;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.clm-modal-content {
    background-color: #ffffff;
    margin: auto; 
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 400px;
    border-radius: 16px; 
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    animation: clm-slide-up 0.3s ease-out;
}


@keyframes clm-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.clm-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.clm-modal-close:hover {
    color: #333;
}


.clm-otp-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #e8f0fe;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.clm-otp-icon-wrapper svg {
    width: 30px;
    height: 30px;
    color: #1a73e8; 
}


.clm-modal-content h3#clmMessageModalTitle {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #202124;
    border: none;
    font-weight: 700;
}

.clm-modal-content p#clmMessageModalBody {
    font-size: 15px;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 25px;
}

.clm-modal-success #clmMessageModalTitle { color: #2b8a3e !important; }
.clm-modal-error #clmMessageModalTitle { color: #d9480f !important; }
.clm-modal-warning #clmMessageModalTitle { color: #f08c00 !important; }
.clm-modal-info #clmMessageModalTitle { color: #1971c2 !important; }


#clm-otp-input-area input#clm-otp-code-input {
    width: 100%;
    padding: 14px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px; 
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-weight: bold;
    color: #333;
}

#clm-otp-input-area input#clm-otp-code-input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
    background-color: #fff;
}

#clm-submit-otp-btn {
    width: 100%;
    padding: 14px;
    background-color: #1a73e8;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
}

#clm-submit-otp-btn:hover {
    background-color: #1557b0;
}

#clm-submit-otp-btn:active {
    transform: scale(0.98);
}

#clm-resend-otp-btn {
    background-color: #6c757d; 
    color: #ffffff !important; 
    border: none;

    width: 100%; 
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

#clm-resend-otp-btn:hover {
    background-color: #5a6268; 
    text-decoration: none;
    color: #ffffff !important;
}

#clm-resend-otp-btn:disabled {
    background-color: #e9ecef;
    color: #adb5bd !important;
    cursor: not-allowed;
}

.clm-spinner {
    display: inline-block; width: 1em; height: 1em;
    border: 2px solid rgba(0, 0, 0, 0.1); border-left-color: #fff;
    border-radius: 50%; animation: clm-spin 1s linear infinite;
    vertical-align: middle; margin-left: 0.5em;
}
@keyframes clm-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }




.clm-checkout-wrapper {
    width: 100%;
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    margin-top:20px !important;
}


form.woocommerce-checkout::after {
    content: "";
    display: table;
    clear: both;
}


.clm-checkout-col-1 {
    float: left;
    width: 57%; 
    padding-right: 35px; 
    box-sizing: border-box;
}


.clm-checkout-col-2 {
    float: right;
    width: 43%;
    box-sizing: border-box;
    position: sticky;
    top: 40px; 
}


.clm-checkout-col-2 #order_review_heading,
.clm-checkout-col-2 #order_review {
    background-color: #f7f8f9;
    border-left: 1px solid #e1e3e5;
    border-right: 1px solid #e1e3e5;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
    width: 100% !important;
    float: none !important;
}


.clm-checkout-col-2 #order_review_heading {
    padding-top: 25px;
    padding-bottom: 20px;
    border-top: 1px solid #e1e3e5;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    font-size: 1.5em;
    color: #1d2327;
}


.clm-checkout-col-2 #order_review {
    padding-top: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e3e5;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
}



.woocommerce-checkout-review-order-table {
    border-collapse: collapse !important; width: 100%; border: none !important;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none !important; padding: 15px 0 !important; background: none !important;
}
.woocommerce-checkout-review-order-table tbody tr,
.woocommerce-checkout-review-order-table tfoot tr {
    border-bottom: 1px solid #e1e3e5;
}
.woocommerce-checkout-review-order-table tfoot tr:last-child {
    border-bottom: none;
}
.woocommerce-checkout-review-order-table thead th {
    text-align: left; font-weight: 500; text-transform: uppercase;
    font-size: 0.9em; color: #555;
    border-bottom: 2px solid #e1e3e5 !important;
}
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
}
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    padding-top: 20px; font-weight: bold; font-size: 1.2em; color: #1d2327;
}

/* Style the payment section as a distinct card */
.clm-checkout-col-2 #payment {
    border-radius: 12px; padding: 0px;
    margin-top: 20px; border: 0px solid #e1e3e5;
}


#clm-checkout-quantity-manager {
    margin-top: 2.5em; margin-bottom: 2em; width: 100%;
}
.clm-product-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 15px; padding: 1em; border: 1px solid #ddd;
    border-radius: 8px; margin-bottom: 1em; position: relative;
}
.clm-product-row:last-child { margin-bottom: 0; }
.clm-product-selector { flex-shrink: 0; }
.clm-product-image img {
    width: 50px; height: 50px; object-fit: cover;
    border-radius: 4px; display: block;
}
.clm-product-info {
    flex-grow: 1; font-weight: 600; min-width: 0px;
}
.clm-product-actions {
    display: flex; align-items: center; justify-content: space-between;
    flex-grow: 1; flex-basis: 200px;
}
.clm-quantity-control { display: flex; }
.clm-qty-input {
    width: 40px !important; height: 30px !important; text-align: center;
    padding: 5px !important; margin: 0 !important; border: 1px solid #ccc !important;
    border-left: none !important; border-right: none !important;
    border-radius: 0 !important; -moz-appearance: textfield;
}
.clm-qty-input::-webkit-outer-spin-button, .clm-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.clm-qty-btn {
    width: 28px !important; height: 30px !important; padding: 0 !important;
    font-size: 1em; line-height: 28px; border: 1px solid #ccc; background-color: #f9f9f9;
}
.clm-qty-btn.minus { border-radius: 4px 0 0 4px; }
.clm-qty-btn.plus { border-radius: 0 4px 4px 0; }
.clm-product-pricing { font-weight: 700; }
.clm-product-row.clm-processing::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.6); z-index: 10; border-radius: 8px;
}


.clm-product-details {
    display: flex;
    align-items: center;
    gap: 15px; 
    flex-grow: 1; 
    min-width: 240px; 
}



@media (max-width: 992px) {
    .clm-checkout-col-1,
    .clm-checkout-col-2 {
        float: none; width: 100%; position: static; padding-right: 0;
    }
    .clm-checkout-col-2 { margin-top: 30px; }
}


body.woocommerce-checkout .site-content > .container,
body.woocommerce-checkout .site-content > .ast-container,
body.woocommerce-checkout #primary,
body.woocommerce-checkout #main,
body.woocommerce-checkout .main,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout .entry-content {
    max-width: 100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    box-sizing: border-box;
}

.clm-checkout-wrapper .col2-set,
.clm-checkout-wrapper .col2-set .col-1,
.clm-checkout-wrapper .col2-set .col-2 {
    float: none !important; width: 100% !important; padding: 0 !important;
    margin: 0 !important; max-width: 100% !important;
}


.elementor-widget-shortcode .elementor-widget-container { width: 100%; }


.clm-hidden-field {
    display: none !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none !important; 
    padding: 10px 0 !important;
    background: none !important;
}

body.woocommerce-checkout .clm-checkout-col-1 .form-row {
    margin-bottom: 5px !important;
    padding: 0 !important;
}

body.woocommerce-checkout .clm-checkout-col-1 .form-row label {
    margin-bottom: 5px !important;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .order-total td {
    padding-top: 0px !important;
}


body.woocommerce-checkout #order_review tr.shipping td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}


body.woocommerce-checkout #order_review tr.shipping td * {
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-checkout #order_review tr.shipping td label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}


body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-bottom: 0px !important;
    background: #e4e4e4 !important;
    padding: 1em 1em; 
    border-radius: 15px;
    margin-bottom: 0.5em;
}


body.woocommerce-checkout #order_review {
    margin-bottom: 1px !important;
}



.woocommerce-page.woocommerce-checkout #payment div.form-row, .woocommerce.woocommerce-checkout #payment div.form-row {
    margin-top: 0px !important;
}



body.woocommerce-checkout .clm-checkout-col-2 #order_review_heading,
body.woocommerce-checkout .clm-checkout-col-2 #order_review {
    background-color: rgba(247, 248, 249, 0.40) !important;
}


.woocommerce .blockUI.blockOverlay {
    background: none !important;
}





body.woocommerce-checkout #payment .form-row.place-order {
    text-align: left; 
}


body.woocommerce-checkout #payment #place_order {
    display: block;          
    margin-left: auto;       
    margin-right: auto;      
    float:none !important;
    
    width: 90%;            
    max-width: 320px;       
    padding: 14px 20px;
    border-radius: 9999px;  
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;    

    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-checkout #payment #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


body.woocommerce-checkout.woocommerce-page .clm-checkout-wrapper .clm-plain-phone-input {
    padding-left: 12px !important; 
    padding-right: 12px !important; 
}

body.woocommerce-checkout.woocommerce-page .clm-checkout-wrapper .iti.iti--allow-dropdown {
    border: none !important; 
    height: auto !important; 
}

body.woocommerce-checkout.woocommerce-page .clm-checkout-wrapper .iti__flag-container,
body.woocommerce-checkout.woocommerce-page .clm-checkout-wrapper .iti__country-list {
    display: none !important; 
}

body.woocommerce-checkout.woocommerce-page .clm-checkout-wrapper .clm-plain-phone-input.clm-plain-phone-input[type="text"][class*="capsule-fields"] {
    border-radius: 999px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.woocommerce-message {
    border-top-color: #8fae1b;
    display: none;
}

.form-table th {
    width:none !important;
}

