/* General styles for the checkout container */
#codplugin-checkout {
    position: relative;
    padding: 30px;
    border: 2px solid #259bea;
    border-radius: 6px;
    margin-top: 50px;
}

/* Styles for the quantity input field */
.form-qte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #bce0f7;
    border-radius: 6px;
    padding: 5px;
    background-color: #f0f9ff;
}

.form-qte input[type="number"] {
    width: 80px; /* Increased width for better usability */
    text-align: center;
    padding: 10px; /* Increased padding for better touch interaction */
    border: 2px solid #bce0f7;
    border-radius: 4px;
    font-size: 16px; /* Larger font size for better readability */
    color: #259bea; /* Matching the theme color */
    background-color: #fff;
    outline: none; /* Remove default focus outline */
    transition: border-color 0.3s ease; /* Smooth transition for focus */
}

.form-qte input[type="number"]:focus {
    border-color: #259bea; /* Highlight the input field when focused */
}

/* Styles for the increment and decrement buttons */
.form-qte button {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #259bea;
    color: #fff;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.form-qte button:hover {
    background-color: #1a7bb9; /* Darker shade on hover */
}

/* Styles for the checkout title */
.codplugin-checkout-title {
    text-align: center;
    margin-bottom: 20px;
}

.codplugin-checkout-title h3 {
    padding: 0 20px;
    display: inline-block;
    color: #000;
    font-size: 16px;
}

/* Styles for form inputs and select fields */
#codplugin_woo_single_form input,
#codplugin_state,
#codplugin_city {
    border: 2px solid #bce0f7;
    height: 50px;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

#codplugin_woo_single_form input:focus,
#codplugin_state:focus,
#codplugin_city:focus {
    border-color: #259bea;
}

/* Styles for the form footer */
#codplugin-checkout .form-footer {
    display: grid;
    grid-gap: 15px;
    grid-template-columns: 125px 1fr;
    margin-top: 10px;
}

#nrwooconfirm {
    background-color: #259bea;
    border: none;
    color: #fff !important;
    height: 50px;
    line-height: 50px;
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#nrwooconfirm:hover {
    background-color: #1a7bb9;
}

/* Styles for the order history section */
#codplugin_order_history {
    height: 50px;
    cursor: pointer;
    border-bottom: 2px solid #bce0f7;
    background: #f0f9ff;
    padding: 0 10px;
    margin-bottom: 0;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

/* Styles for the shipping methods section */
#shipping-methods {
    font-size: 14px;
    margin-left: 10px;
    opacity: 0.75;
}

/* Styles for the whatsapp order section */
.whatsapp-order-section {
    margin: 0 auto 15px;
    text-align: center;
}

.whatsapp-order-section #whatsapp-orders {
    color: #fff;
    display: inline-block;
    background: #25d466;
    border-radius: 50px;
    padding: 10px;
    border: none;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.whatsapp-order-section #whatsapp-orders:hover {
    background-color: #1fa852;
}

/* Media queries for responsiveness */
@media (max-width: 767px) {
    #codplugin-checkout {
        padding: 30px 10px;
    }

    #codplugin_woo_single_form {
        grid-template-columns: repeat(1, 1fr);
    }

    #codplugin-checkout .form-footer {
        grid-template-columns: 1fr;
    }

    .form-qte {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 488px) {
    #codplugin-checkout .variation-prices {
        font-size: 14px;
    }

    .codplugin-checkout-title h3 {
        padding: 0 10px;
        margin-bottom: 15px;
    }

    div#codplugin_order_history, #codplugin_show_hide {
        font-size: 14px;
    }

    #codplugin-checkout td, #codplugin_show_hide {
        padding: 5px;
    }
}