/* Cart Modal and Main Container Styling */
/* <CHANGE> Updated to center content with bigger width and side padding */
.oe_website_sale.o_website_sale_checkout {
    max-width: 700px;
    margin: 0 20%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0 20px;
    width: 100%;
}

/* <CHANGE> Ensure body and page wrapper are centered */
body {
    display: flex;
    justify-content: center;
}

.container,
.o_website_sale {
    max-width: 100% !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 20px !important;
}

/* ... existing code ... */
/* Hide wizard and unnecessary elements */
.o_wizard,
#o_cart_summary,
.coupon_form,
.position-relative.d-flex.w-100 {
    display: none !important;
}

#order_delivery {
    display: table-row !important;
}

#order_delivery .monetary_field,
#order_delivery .d-none {
    display: inline !important;
}

#order_delivery #message_no_dm_set {
    display: none !important;
}

/* Modal Title */
h3.mb-4 {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px !important;
}

/* Delivery Mode Buttons - Tab Style */
#delivery-mode-container {
    padding: 0 0 20px 0;
}

#delivery-mode-container h4 {
    display: none;
}

.btn-group.btn-group-toggle {
    width: 100%;
    gap: 2% !important;
}

.btn-group-toggle label {
    flex: 1;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    background: white !important;
    color: #666;
    padding: 12px 16px;
    font-weight: 600;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

#delivery-mode-container input[type="radio"] {
    display: none;
}

.btn-group-toggle label:first-child {
    border-radius: 0;
}

.btn-group-toggle label.active {
    background: #d40015 !important;
    color: white;
    border-color: #d40015;
}

.btn-group-toggle label:hover:not(.active) {
    background: #f5f5f5;
}

/* Delivery Address Field */
#delivery_address_field {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

#delivery_address_field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

#delivery_address {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
}
/* Hide promo code / gift card input */
div.input-group.w-100.my-2 input[name="promo"],
div.input-group.w-100.my-2 a.a-submit {
    display: none !important;
}

#address_message {
    font-size: 13px;
    color: #d40015;
    margin-top: 8px;
    font-weight: 500;
}

/* Delivery Info Text */
#delivery_address_field::before {
    content: "Livraison gratuite à partir de 65 dt !";
    display: block;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

/* Pickup Datetime Field */
#pickup_datetime_field {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

#pickup_datetime_field h5,
#pickup_datetime_field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

#pickup_datetime_field label {
    margin-top: 12px;
    margin-bottom: 8px;
}

#pickup_date,
#pickup_datetime {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 0 !important;
}
#wrap {
    background-color: rgba(44, 44, 44, 0.1);
    padding: 40px 0px 100px 0px;
    background-image: url('/Origami/static/images/sushi-menuu.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: clamp(200px, 20vw, 320px);
    display: flex;
    justify-content: center;
}
.mb32 {
    margin-top: 3%;
}
/* Product Cards */
.o_cart_product {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    gap: 12px !important;
}

.o_cart_product h6 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.o_cart_product .text-muted {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.o_cart_product .text-muted span {
    margin: 2px 0;
}

/* Product Image Container */
.o_cart_product > div[style*="width: 64px"] {
    width: 80px !important;
    height: 80px;
    background: #f0f0f0;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
}

.o_cart_product > div[style*="width: 64px"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quantity Controls */
.css_quantity {
    margin-bottom: 0 !important;
    border: none;
    background: white;
    height: 32px;
}

.css_quantity .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #333;
    color: white;
    border: 1px solid #333;
    border-radius: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.css_quantity .btn:hover {
    background: #555;
    border-color: #555;
}

.css_quantity input.quantity {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 6px 0;
    font-weight: 600;
}

/* Price Display */
[name="website_sale_cart_line_price"] {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Remove Button */
.js_delete_product {
    font-size: 13px;
    color: #d40015;
    padding: 0;
    margin-top: 8px;
    text-decoration: none;
    cursor: pointer;
}

.js_delete_product:hover {
    text-decoration: underline;
}

/* Add More Products Link */
#cart_products::after {
    display: block;
    text-align: center;
    color: #d40015;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 0;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
}


#loyalty_points_section .card {
    background: #f9f9f9 !important;
    border: 1px solid #e0e0e0 !important;
}

#loyalty_points_section h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

#loyalty_points_section input {
    font-weight: 600;
    text-align: center;
}

#loyalty_points_section button {
    border: 1px solid #ddd !important;
    color: #333;
}

#loyalty_discount_amount {
    color: #d40015;
    font-weight: 700;
}

/* Action Buttons */
.d-flex.flex-column.pt-4 {
    padding-top: 20px !important;
}

[name="website_sale_main_button"] {
    background: #d40015 !important;
    border: none !important;
    color: white;
    padding: 14px 20px !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
}

[name="website_sale_main_button"]:hover {
    background: #a80011 !important;
}


/* Continue Shopping Link */
.d-flex.flex-column.pt-4 a.text-center {
    color: #666;
    font-size: 14px;
    margin-top: 12px;
    text-decoration: none;
}

.d-flex.flex-column.pt-4 a.text-center:hover {
    color: #d40015;
}

/* Responsive Design */
@media (max-width: 768px) {
    .oe_website_sale.o_website_sale_checkout {
        max-width: 100%;
        border-radius: 0;
    }

.row > * {
    margin-top: 4% !important;
}
    .btn-group-toggle label {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* General Text Fixes */
.oe_cart h3,
.oe_cart h4,
.oe_cart h5,
.oe_cart h6 {
    color: #333;
}

/* Input Fields General */
input.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
}

input.form-control:focus {
    border-color: #d40015;
    box-shadow: 0 0 0 3px rgba(212, 0, 21, 0.1);
}
/* cart.css */
#o_cart_summary {
    background-color: #fff; /* example */
}

#o_cart_summary .btn-primary {
    background-color: #dc3545; /* change checkout button */
    border-color: #dc3545;
}

#o_cart_summary .btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}
/* -----------------------------
   Cart Modal and Main Container
   ----------------------------- */
.oe_website_sale.o_website_sale_checkout {
    max-width: 700px;
    margin: 0 auto; /* centered */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0 20px;
    width: 100%;
}

body {
    display: flex;
    justify-content: center;
}

.container,
.o_website_sale {
    max-width: 100% !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 20px !important;
}

/* Hide only wizard, keep cart summary visible */
.o_wizard,
.position-relative.d-flex.w-100 {
    display: none !important;
}

/* Show cart summary */
#o_cart_summary {
    display: block !important; /* make visible */
    background-color: #fff;
    border-radius: 8px;
    margin: auto;
}

/* Checkout button */
#o_cart_summary .btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

#o_cart_summary .btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

#o_cart_summary .btn-primary.disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* Coupon form */
#o_cart_summary .coupon_form {
    display: block !important;
    margin-top: 12px;
}

#o_cart_summary .coupon_form .form-control {
    border-radius: 4px 0 0 4px;
}

#o_cart_summary .coupon_form .btn {
    border-radius: 0 4px 4px 0;
}

/* Table styling inside cart summary */
#cart_total table {
    width: 100%;
    border-collapse: collapse;
}

#cart_total td {
    padding: 4px 8px;
}

#cart_total .text-muted {
    color: #666;
}

#cart_total strong {
    color: #333;
}

/* Continue shopping link */
#o_cart_summary .d-flex.flex-column a.text-center {
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

#o_cart_summary .d-flex.flex-column a.text-center:hover {
    color: #d40015;
}

/* Sticky card on large screens */
.o_total_card.sticky-lg-top {
    position: sticky;
    top: 20px;
}
/* Bigger & modern Date & Time Picker Fields for desktop */
#pickup_datetime_field input[type="date"],
#pickup_datetime_field input[type="time"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 20px;       /* bigger padding */
    font-size: 18px;           /* bigger text */
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 10px;       /* slightly more rounded */
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

/* Focus state for better UX */
#pickup_datetime_field input[type="date"]:focus,
#pickup_datetime_field input[type="time"]:focus {
    border-color: #d40015;
    box-shadow: 0 0 0 3px rgba(212, 0, 21, 0.2);
    outline: none;
}


/* Mobile responsive: slightly smaller fields */
@media (max-width: 768px) {
    #pickup_datetime_field input[type="date"],
    #pickup_datetime_field input[type="time"] {
        padding: 14px 16px;   /* smaller padding on mobile */
        font-size: 16px;       /* slightly smaller font */
        border-radius: 8px;    /* slightly less rounded */
    }

    /* Stack date and time vertically */
    #pickup_datetime_field > div > div {
        width: 100%;
        margin-bottom: 12px;
    }
}
@media (min-width: 992px) {
    .col-lg-5 {
        width: 39.666667% !important;
    }
}
@media (max-width: 992px) {
    .col-lg-5 {
        width: 95% !important;
    }
}

.alert-info {
    background: #d40015 !important;
    color: #fff !important;
}
/* Inactive button label hover */
#label_livraison.btn:hover,
#label_livraison.btn:focus,
#label_emporter.btn:hover,
#label_emporter.btn:focus {
    background-color: #d40015 !important; /* red background on hover */
    color: #fff !important;               /* keep text black */
    border-color: #d40015 !important;     /* red border */
}

/* Active button stays red with white text */
#label_emporter.btn.active {
    background-color: #d40015 !important;
    color: #fff !important;
    border-color: #d40015 !important;
}

/* Wizard header accent */
.o_wizard_step_active .o_wizard_steplabel {
    color: #d40015;
}

.o_wizard_circle_progress .progress-bar {
    border-color: #d40015 !important;
}
.dropdown-toggle {
    color: #000 !important;
}
.o_wizard_circle_progress p {
    color: #d40015;
}
