:root {
    --mcl-primary-color: #E31E24;
    --mcl-primary-hover: #c41a1f;
    --mcl-heading-color: #1a1a1a;
    --mcl-input-focus: #2271b1;
    --mcl-card-radius: 16px;
    --mcl-input-radius: 10px;
    --mcl-btn-radius: 8px;
    --mcl-btn-text: #ffffff;
}

/* Hide DaData logo/branding */
.suggestions-promo {
    display: none;
}

.mcl-comment-toggle-btn,
.mcl-dish-comment-btn {
    display: none !important;
}

/* Custom Checkout Styles for MCL Shortcode */
.mcl-custom-checkout-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    padding: 0;
}

/* Layout Wrapper */
.mcl-custom-checkout-wrap .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
}


.mcl-checkout-main-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.mcl-checkout-left-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mcl-checkout-right-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: 800px;
    position: static;
    z-index: 10;
}

/* Hide ::before, ::after if theme injects them */
.mcl-custom-checkout-wrap form.checkout::before,
.mcl-custom-checkout-wrap form.checkout::after {
    display: none;
}

/* Force 1 column on all internal wrappers */
.mcl-checkout-main-grid .col2-set,
.mcl-checkout-main-grid .col2-set .col-1,
.mcl-checkout-main-grid .col2-set .col-2 {
    width: 100%;
    float: none;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Cards */
.mcl-checkout-card {
    margin-top: 20px;
    background: #fff;
    padding: 30px;
    border-radius: var(--mcl-card-radius, 16px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

/* PC Scroll for review card */
@media (min-width: 993px) {

    .mcl-checkout-card-review::-webkit-scrollbar {
        width: 4px;
    }

    .mcl-checkout-card-review::-webkit-scrollbar-track {
        background: transparent;
    }

    .mcl-checkout-card-review::-webkit-scrollbar-thumb {
        background-color: #e0e0e0;
        border-radius: var(--mcl-input-radius, 10px);
    }

    .mcl-checkout-card-review:hover::-webkit-scrollbar-thumb {
        background-color: #ccc;
    }
}

.mcl-checkout-card .mcl-card-title,
#order_review_heading {
    margin-top: 0;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--mcl-heading-color, #1a1a1a);
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
}

.mcl-checkout-card .mcl-card-title::before,
#order_review_heading::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--mcl-primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Section numbering */
.mcl-checkout-card-address .mcl-card-title::before {
    content: "1";
}

.mcl-checkout-card-contacts .mcl-card-title::before {
    content: "2";
}

#order_review_heading::before {
    content: "3";
}

.mcl-checkout-card-payment .mcl-card-title::before {
    content: "4";
}

.mcl-checkout-card-payment {
    margin-bottom: 30px;
}

.mcl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Receipt Method Selection */
.mcl-receipt-method-wrap {
    margin-top: 25px;
    border-top: 1px solid #f2f2f2;
    padding-top: 25px;
}

.mcl-receipt-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.mcl-receipt-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.mcl-receipt-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.mcl-receipt-label input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
    margin: 0 !important;
}

/* Cards & Spacing */
.mcl-checkout-card-address {
    margin-top: 25px;
}

.mcl-checkout-card-prep-time {
    margin-top: 25px;
    border-top: 1px solid #f2f2f2;
    padding-top: 25px;
}

.mcl-prep-time-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1a1a1a;
}

/* Helper Classes */
.mcl-hidden {
    display: none;
}

.mcl-hidden-fields {
    display: none !important;
}

.mcl-order-notes-grid {
    margin-top: 15px;
}

/* Full width inputs in grid */
.mcl-card-grid #billing_address_1_field,
.mcl-card-grid #order_comments_field {
    grid-column: 1 / -1;
}

/* Hide default row float styles */
.mcl-custom-checkout-wrap .form-row {
    float: none;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

/* Label Styling */
.mcl-custom-checkout-wrap .form-row label {
    display: block;
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 8px;
    font-weight: 500;
}

.mcl-custom-checkout-wrap .form-row label abbr.required {
    color: #e53e3e;
    text-decoration: none;
    border: none;
}

/* Input Styling */
.mcl-custom-checkout-wrap .form-row input.input-text,
.mcl-custom-checkout-wrap .form-row textarea,
.mcl-custom-checkout-wrap .form-row select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: var(--mcl-input-radius, 10px);
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fdfdfd;
    color: #222;
    box-sizing: border-box;
}

.mcl-custom-checkout-wrap .form-row input.input-text:focus,
.mcl-custom-checkout-wrap .form-row textarea:focus,
.mcl-custom-checkout-wrap .form-row select:focus {
    border-color: var(--mcl-input-focus, #2271b1);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.mcl-custom-checkout-wrap .form-row textarea {
    min-height: 100px;
    resize: vertical;
}

/* Mini Cart Table */
.mcl-mini-cart-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    /* Force respect width on mobile and beyond */
    border: none;
    margin: 0 0 20px 0;
    box-sizing: border-box;
}

.mcl-mini-cart-table *,
.mcl-mini-cart-table *::before,
.mcl-mini-cart-table *::after {
    box-sizing: border-box;
}

.mcl-mini-cart-table thead th {
    border: none;
    border-bottom: 2px solid #f0f0f0;
    padding: 10px 0;
    color: #888;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
}

.mcl-mini-cart-table tbody td {
    border: none;
    padding: 15px 0;
    vertical-align: middle;
}

.mcl-mini-cart-table tfoot th,
.mcl-mini-cart-table tfoot td {
    border: none;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

.mcl-mini-cart-table tfoot .order-total th,
.mcl-mini-cart-table tfoot .order-total td {
    border-top: 2px solid #e0e0e0;
    font-size: 20px;
    font-weight: 700;
}

.mcl-mini-cart-table tfoot td {
    text-align: right;
}

/* Payment Methods (Moved to Left Col) */
.mcl-payment-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--mcl-card-radius, 16px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    margin-top: 25px;
}

.mcl-payment-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--mcl-heading-color, #1a1a1a);
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 15px;
}

/* Hide standard #payment container in right col while styling the actual method list */
.mcl-custom-checkout-wrap #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    border: none;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.mcl-custom-checkout-wrap #payment ul.payment_methods li {
    margin-bottom: 0;
    display: block;
}

.mcl-custom-checkout-wrap #payment ul.payment_methods li input[type="radio"] {
    display: none;
    appearance: none;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mcl-custom-checkout-wrap #payment ul.payment_methods li label {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 10px 18px 10px;
    background-color: #f5f5f7;
    border: 2px solid transparent;
    border-radius: var(--mcl-input-radius, 12px);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    color: #333;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    user-select: none;
    box-sizing: border-box;
    min-height: 116px;
    background-repeat: no-repeat;
    background-position: center 15px;
    background-size: 32px 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E");
}

.mcl-custom-checkout-wrap #payment ul.payment_methods li label img {
    display: none !important;
}

.mcl-custom-checkout-wrap #payment ul.payment_methods li input[type="radio"]:checked+label {
    border-color: #000;
    background-color: #fff;
    font-weight: 600;
}

/* Force override theme radio/checkbox pseudo elements */
.mcl-custom-checkout-wrap #payment ul.payment_methods li label::before,
.mcl-custom-checkout-wrap #payment ul.payment_methods li label::after,
.mcl-custom-checkout-wrap #payment ul.payment_methods li input[type="radio"]::before,
.mcl-custom-checkout-wrap #payment ul.payment_methods li input[type="radio"]::after,
.mcl-custom-checkout-wrap .wc_payment_methods::before,
.mcl-custom-checkout-wrap .wc_payment_methods::after,
.mcl-custom-checkout-wrap .payment_methods::before,
.mcl-custom-checkout-wrap .payment_methods::after,
.mcl-custom-checkout-wrap .methods::before,
.mcl-custom-checkout-wrap .methods::after {
    display: none !important;
    content: none !important;
    background: none;
    height: 0;
    width: 0;
}

/* Specific icons per gateway directly on label */
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_bacs label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234285F4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2' fill='%23EA4335'/%3E%3Cpolyline points='2 17 12 22 22 17' stroke='%2334A853'/%3E%3Cpolyline points='2 12 12 17 22 12' stroke='%23FBBC05'/%3E%3C/svg%3E");
}



.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_cod label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_cod_custom label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_mcl_cod label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
}

.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_card_on_delivery label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_mcl_card label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_un label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_uniteller label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_card label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_card_online label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_online_card label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li.payment_method_bank_card label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li[class*="payment_method_uniteller"] label,
.mcl-custom-checkout-wrap #payment ul.payment_methods li[class*="payment_method_card"] label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E");
}

.mcl-custom-checkout-wrap #payment div.payment_box {
    display: none !important;
}

/* Fix default theme background bleeding around payment wrapper */
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: none;
}

/* Agreement Checbox and Place order button */
.mcl-custom-checkout-wrap #payment .place-order {
    padding: 0;
    margin: 0;
}

.mcl-custom-checkout-wrap #payment button#place_order {
    width: 100%;
    padding: 18px;
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: var(--mcl-input-radius, 10px);
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
}

.mcl-custom-checkout-wrap #payment button#place_order:hover {
    background: var(--mcl-primary-hover, #c41a1f);
}

.mcl-custom-checkout-wrap .woocommerce-form__label-for-checkbox {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    gap: 10px;
    margin-top: 15px;
    flex-direction: row;
}

.mcl-custom-checkout-wrap .woocommerce-form__label-for-checkbox span {
    display: inline;
}

.mcl-custom-checkout-wrap .woocommerce-form__label-for-checkbox a {
    color: var(--mcl-heading-color, #1a1a1a);
    text-decoration: underline;
}

.mcl-custom-checkout-wrap .woocommerce-form__label-for-checkbox a:hover {
    color: #000;
}

.mcl-custom-checkout-wrap input[type="checkbox"]:not(:has(+ span)):not(:has(+ label)) {
    position: relative;
    top: 4px;
}

.mcl-custom-checkout-wrap .woocommerce-form__label-for-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

/* We hide the payment box from the review widget initially since JS will copy it or move it */
.mcl-checkout-right-col #payment {
    display: none;
}

.mcl-checkout-left-col #payment {
    display: block;
}

/* Disable Qty selection highlight */
.mcl-checkout-qty span:hover {
    background: #e0e0e0;
    color: #000;
}

/* Order comments textarea */
.mcl-custom-checkout-wrap #order_comments {
    max-height: 100px;
    min-height: 50px;
    font-size: 12px;
}



/* Responsive */
@media (max-width: 992px) {
    .mcl-checkout-main-grid {
        gap: 20px;
    }

    .mcl-checkout-left-col,
    .mcl-checkout-right-col {
        flex: 1 1 auto;
        width: 100%;
    }

    .mcl-checkout-right-col {
        position: relative;
        top: 0;
        margin-bottom: 25px;
        z-index: 1;
    }
}

/* ========================================= */

/* Delivery Card Selection UI                */
/* ========================================= */
.mcl-delivery-type-selector {
    margin-bottom: 20px;
}

.mcl-delivery-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.mcl-delivery-type-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--mcl-heading-color, #1a1a1a);
}

.mcl-delivery-type-link {
    font-size: 14px;
    color: #161616 !important;
    text-decoration: none;
    font-weight: 500;
}

.mcl-delivery-type-link:hover {
    color: var(--mcl-primary-color, #E31E24) !important;
    text-decoration: underline;
}

.mcl-delivery-type-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mcl-delivery-card {
    border: 1px solid #dcdcdc;
    border-radius: var(--mcl-input-radius, 12px);
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mcl-delivery-card:hover {
    border-color: #888;
}

.mcl-add-new-address {
    align-items: center;
    width: 140px;
    color: var(--mcl-heading-color, #1a1a1a);
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;
}

.mcl-add-new-address .mcl-plus-icon {
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 5px;
}

.mcl-selected-address {
    flex: 1;
    min-width: 200px;
    border-color: var(--mcl-primary-color, #E31E24);
    /* Active state border */
}

.mcl-selected-address-type {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.mcl-selected-address-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-bottom: 4px;
    line-height: 1.3;
}

.mcl-selected-address-desc {
    font-size: 13px;
    color: #888;
}

/* Modal Redesign */
#mcl-map-modal {
    animation: fadeIn 0.3s ease-in-out;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#mcl-modal-delivery-status {
    margin-top: 10px;
    font-size: 13px;
}

.mcl-delivery-type-label {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--mcl-heading-color, #1a1a1a);
}

.mcl-pickup-loading {
    color: #666;
    font-size: 14px;
    padding: 20px;
}

#mcl-delivery-zone-map {
    width: 100%;
    height: 100%;
}

/* Map Shortcode Classes */
.mcl-sh-map-wrapper {
    margin-bottom: 30px;
}

.mcl-sh-map-container {
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.mcl-map-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
}

.mcl-map-legend {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.mcl-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcl-legend-color-box {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 3px;
    opacity: 0.6;
    border-width: 1px;
    border-style: solid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================= */
/* Delivery Status & Info Messages           */
/* ========================================= */

.mcl-status-msg {
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.mcl-status-msg-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.mcl-status-msg-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--mcl-btn-radius, 8px);
}

.mcl-status-msg-warning {
    padding: 10px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.mcl-status-info {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.mcl-status-info-bold {
    margin-top: 6px;
    font-size: 13px;
    font-weight: bold;
}

.mcl-status-info-sm {
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.9;
}

.mcl-status-info-sm-bold {
    margin-top: 4px;
    font-size: 13px;
    font-weight: bold;
}

.mcl-status-cost {
    font-size: 13px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 4px;
    margin-top: 4px;
}

.mcl-status-loading,
.mcl-status-empty,
.mcl-status-error {
    color: #666;
    font-size: 14px;
    padding: 20px;
}

.mcl-status-pickup-min {
    margin-top: 5px;
    font-size: 13px;
    color: #d63031;
}

@media (max-width: 768px) {
    .mcl-modal-split {
        flex-direction: column;
    }

    .mcl-modal-left {
        width: 100%;
        height: auto;
        max-height: 50%;
    }

    .mcl-map-modal-inner {
        width: 95%;
        height: 95%;
    }
}

#mcl-map-modal .mcl-map-modal-inner {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mcl-map-modal-inner {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    border-radius: var(--mcl-card-radius, 16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mcl-modal-split {
    display: flex;
    height: 100%;
}

.mcl-modal-left {
    width: 420px;
    background: #fdfdfd;
    padding: 25px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    /* shadow over map */
}

.mcl-modal-right {
    flex: 1;
    position: relative;
    background: #e5e3df;
    /* map loading color */
}

.mcl-modal-tabs {
    display: flex;
    background: #e2e4e7;
    border-radius: var(--mcl-btn-radius, 8px);
    padding: 4px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.mcl-modal-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--mcl-heading-color, #1a1a1a);
    border-radius: var(--mcl-btn-radius, 8px);
    cursor: pointer;
    transition: 0.2s;
}

.mcl-modal-tab.active {
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
}

.mcl-modal-tab-content {
    display: none;
    flex: 1;
}

.mcl-modal-tab-content.active {
    display: flex;
    flex-direction: column;
}

.mcl-modal-field-group {
    margin-bottom: 15px;
    position: relative;
}

.mcl-modal-field-group label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    position: absolute;
    top: -8px;
    left: 10px;
    background: #fdfdfd;
    padding: 0 5px;
    z-index: 10;
}

.mcl-modal-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #dcdcdc;
    border-radius: var(--mcl-btn-radius, 8px);
    font-size: 16px;
    box-sizing: border-box;
    background: transparent;
}

.mcl-modal-input:focus {
    border-color: var(--mcl-primary-color, #E31E24);
    outline: none;
    background: #fff;
}

.mcl-delivery-type-pills {
    display: flex;
    margin-bottom: 15px;
}

.mcl-delivery-type-pill {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid #dcdcdc;
    background: #fdfdfd;
    margin-right: -1px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--mcl-heading-color, #1a1a1a);
    transition: 0.2s;
}

.mcl-delivery-type-pill:first-child {
    border-radius: var(--mcl-btn-radius, 8px) 0 0 var(--mcl-btn-radius, 8px);
}

.mcl-delivery-type-pill:last-child {
    border-radius: 0 var(--mcl-btn-radius, 8px) var(--mcl-btn-radius, 8px) 0;
    margin-right: 0;
}

.mcl-delivery-type-pill.active {
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
    border-color: var(--mcl-primary-color, #E31E24);
    z-index: 2;
    position: relative;
}

.mcl-modal-grid-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.mcl-modal-grid-col {
    flex: 1;
}

.mcl-modal-confirm-wrap {
    margin-top: auto;
    /* push to bottom */
    padding-top: 20px;
    flex-shrink: 0;
}

.mcl-modal-confirm-btn {
    width: 100%;
    padding: 15px;
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: var(--mcl-btn-radius, 8px);
    cursor: pointer;
    transition: background 0.2s;
}

.mcl-modal-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #999;
}

.mcl-modal-confirm-btn:not(:disabled):hover {
    background: var(--mcl-primary-hover, #c41a1f);
}

/* Pickup Points List in Modal */
.mcl-pickup-points-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
    /* for scrollbar */
}

.mcl-pickup-point-card {
    border: 1px solid #dcdcdc;
    border-radius: var(--mcl-input-radius, 12px);
    padding: 15px;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
}

.mcl-pickup-point-card:hover {
    border-color: #888;
}

.mcl-pickup-point-card.active {
    border-color: var(--mcl-primary-color, #E31E24);
    border-width: 2px;
    padding: 14px;
    /* compensate border width */
}

.mcl-pickup-point-label {
    font-size: 13px;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-bottom: 2px;
    font-weight: 500;
}

.mcl-pickup-point-address {
    font-size: 16px;
    font-weight: 500;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-bottom: 5px;
}

.mcl-pickup-point-time {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.mcl-modal-subtitle {
    font-size: 14px;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-bottom: 5px;
}

.mcl-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-bottom: 25px;
}

.mcl-modal-close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--mcl-heading-color, #1a1a1a);
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    line-height: 1;
}

/* ====== MOBILE MODAL ====== */
@media (max-width: 768px) {
    .mcl-map-modal-inner {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .mcl-modal-split {
        flex-direction: column-reverse;
        height: 100%;
        overflow: hidden;
    }

    /* Карта сверху */
    .mcl-modal-right {
        flex: 0 0 45%;
        min-height: 200px;
        order: 2;
    }

    /* Форма снизу */
    .mcl-modal-left {
        width: 100%;
        flex: 1;
        padding: 15px 20px;
        overflow-y: auto;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
        border-radius: var(--mcl-card-radius, 16px) 16px 0 0;
        margin-top: -12px;
        z-index: 10;
        order: 1;
    }

    /* Уменьшаем отступы */
    .mcl-modal-tabs {
        margin-bottom: 15px;
    }

    .mcl-modal-tab {
        padding: 8px 0;
        font-size: 13px;
    }

    .mcl-modal-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .mcl-modal-field-group {
        margin-bottom: 12px;
    }

    .mcl-modal-input {
        padding: 12px;
        font-size: 14px;
    }

    .mcl-delivery-type-pills {
        margin-bottom: 10px;
    }

    .mcl-delivery-type-pill {
        padding: 8px;
        font-size: 13px;
    }

    .mcl-modal-grid-row {
        flex-direction: row;
        gap: 10px;
    }

    .mcl-modal-confirm-wrap {
        padding-top: 12px;
    }

    .mcl-modal-confirm-btn {
        padding: 12px;
        font-size: 15px;
    }

    /* Точки самовывоза */
    .mcl-pickup-points-container {
        gap: 10px;
        margin-bottom: 12px;
    }

    .mcl-pickup-point-card {
        padding: 12px;
    }

    .mcl-pickup-point-address {
        font-size: 14px;
    }

    /* Кнопка закрытия */
    .mcl-modal-close-icon {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Preparation Time Block */
.mcl-checkout-card-prep-time {
    margin-top: 25px;
}

.mcl-prep-time-toggle {
    display: inline-flex;
    background: #f0f0f0;
    padding: 4px;
    border-radius: var(--mcl-input-radius, 12px);
    margin-bottom: 20px;
}

.mcl-prep-btn {
    border: none;
    background: #f0f0f0 !important;
    padding: 10px 25px;
    border-radius: var(--mcl-input-radius, 10px) !important;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #444 !important;
    box-shadow: none;
    margin: 0;
    line-height: 1.2;
}

.mcl-prep-btn.active {
    background-color: var(--mcl-primary-color, #E31E24) !important;
    color: var(--mcl-btn-text, #ffffff) !important;
}

.mcl-prep-desc {
    font-size: 15px;
    color: var(--mcl-heading-color, #1a1a1a);
}

.mcl-prep-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.mcl-prep-field-wrap {
    flex: 1;
    position: relative;
}

.mcl-prep-field-wrap label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #fff;
    padding: 0 5px;
    font-size: 12px;
    color: #888;
    z-index: 10;
    width: auto;
    margin: 0;
    pointer-events: none;
}

.mcl-prep-field-wrap label .v-required {
    color: var(--mcl-primary-color, #E31E24);
}

.mcl-select-styled {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: var(--mcl-input-radius, 10px);
    background: #fdfdfd;
    font-size: 16px;
    appearance: none;
    outline: none;
    color: var(--mcl-heading-color, #1a1a1a);
    transition: all 0.2s ease;
}

.mcl-select-styled:focus {
    border-color: var(--mcl-primary-color, #E31E24);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

@media (max-width: 600px) {
    .mcl-prep-grid {
        flex-direction: column;
        gap: 20px;
    }

    .mcl-prep-btn {
        padding: 10px 15px;
    }
}

/* Change Modal Styles */
#mcl-change-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.mcl-change-modal-content {
    animation: mclScaleIn 0.3s ease-out;
}

@keyframes mclScaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.mcl-change-options label:hover span {
    color: var(--mcl-primary-color, #E31E24);
}

.mcl-modal-input:focus {
    border-color: var(--mcl-primary-color, #E31E24);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

#mcl-save-change-info:hover {
    background: #c21a1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

#mcl-save-change-info:active {
    transform: translateY(0);
}

/* Receipt Method Styles */
.mcl-receipt-method-wrap {
    margin-top: 25px;
}

.mcl-receipt-label input[type="radio"] {
    accent-color: var(--mcl-primary-color, #E31E24);
}

.mcl-receipt-label:hover span {
    color: var(--mcl-primary-color, #E31E24);
}

.mcl-receipt-options {
    user-select: none;
}

/* Empty Cart Plaque */
.mcl-empty-cart-plaque {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 40px auto;
}

.mcl-empty-cart-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.mcl-empty-cart-icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--mcl-primary-color, #E31E24);
    stroke-width: 1.5;
    opacity: 0.9;
}

.v-empty-cart-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-bottom: 10px;
}

.v-empty-cart-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.mcl-btn-primary.mcl-back-to-menu {
    display: inline-block;
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
    padding: 12px 30px;
    border-radius: var(--mcl-input-radius, 12px);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.mcl-btn-primary.mcl-back-to-menu:hover {
    background: var(--mcl-primary-hover, #c3191f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Checkout Error Card (Validation Errors) */
.mcl-checkout-error-card-centered {
    text-align: center;
    max-width: 600px;
    padding: 50px 30px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--mcl-card-radius, 16px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.mcl-error-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    color: var(--mcl-primary-color, #E31E24);
}

.mcl-error-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mcl-error-card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-bottom: 15px;
    line-height: 1.2;
}

.mcl-error-card-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.mcl-error-card-actions {
    display: flex;
    justify-content: center;
}

.mcl-error-card-actions .mcl-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
    padding: 14px 40px;
    border-radius: var(--mcl-btn-radius, 12px);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    min-width: 180px;
}

.mcl-error-card-actions .mcl-btn-primary:hover {
    background: var(--mcl-primary-hover, #c41a1f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.2);
    color: var(--mcl-btn-text, #ffffff);
    text-decoration: none;
}

/* Mobile adaptation specifically for the order review table and layout */
@media (max-width: 600px) {
    .mcl-checkout-card {
        padding: 15px;
        /* Slightly reduced padding */
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .mcl-mini-cart-table {
        display: block;
        /* Safer for mobile overflow */
        width: 100%;
    }

    .mcl-mini-cart-table thead {
        display: none;
    }

    .mcl-mini-cart-table tbody,
    .mcl-mini-cart-table tfoot {
        display: block;
        width: 100%;
    }

    .mcl-mini-cart-table tr {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .mcl-mini-cart-table tr.cart_item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mcl-mini-cart-table td.product-name {
        padding: 0;
        border: none;
        flex: 1;
        min-width: 0;
        /* Allow text wrapping */
    }

    .mcl-mini-cart-table td.product-total {
        display: none;
    }

    .mcl-cart-item-flex {
        flex-direction: row;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .mcl-cart-item-img-wrap {
        width: 60px;
        /* Smaller image to save space */
        height: 60px;
        flex-shrink: 0;
    }

    .mcl-cart-item-details {
        min-height: auto;
        flex: 1;
        min-width: 0;
    }

    .mcl-cart-item-title {
        font-size: 14px;
        margin-bottom: 4px;
        word-wrap: break-word;
    }

    /* Price Inject */
    .mcl-cart-item-details::after {
        content: attr(data-mobile-price);
        display: block;
        font-weight: 700;
        font-size: 15px;
        color: #000;
        margin: 5px 0;
    }

    .mcl-checkout-qty-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        margin-top: 0;
    }

    .mcl-mini-cart-table tfoot th,
    .mcl-mini-cart-table tfoot td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 8px 0;
        border: none;
    }

    .mcl-mini-cart-table tfoot td {
        text-align: right;
        font-weight: 600;
    }

    .mcl-mini-cart-table tfoot .order-total {
        padding-top: 15px;
        margin-top: 0;
        border-top: 1px solid #f0f0f0;
    }

    .mcl-mini-cart-table tfoot .order-total th {
        font-size: 18px;
    }

    .mcl-mini-cart-table tfoot .order-total td {
        font-size: 20px;
    }

    /* Modal Mobile Fixes */
    .mcl-change-modal-content {
        width: 92%;
        padding: 25px 15px;
    }

    /* Receipt Options Mobile */
    .mcl-receipt-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Available Gifts Block */
.mcl-select-gift-option {
    padding: 20px;
    background: #fff5f5;
    border: 1px dashed var(--mcl-primary-color, #E31E24);
    border-radius: var(--mcl-input-radius, 12px);
    margin: 10px 0;
    font-family: inherit;
}

.mcl-select-gift-option .mcl-group-title {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcl-select-gift-option .mcl-group-title span {
    font-size: 20px;
}

.mcl-gifts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcl-gift-card {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: var(--mcl-input-radius, 10px);
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mcl-gift-card.mcl-gift-added {
    opacity: 0.7;
}

.mcl-gift-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: var(--mcl-btn-radius, 8px);
}

.mcl-gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mcl-gift-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mcl-gift-info .mcl-gift-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--mcl-heading-color, #1a1a1a);
    line-height: 1.2;
    font-family: inherit;
}

.mcl-gift-info .mcl-gift-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 5px;
}

.mcl-gift-info .mcl-gift-product-name {
    font-size: 13px;
    color: #666;
}

.mcl-gift-info .mcl-gift-variation-name {
    font-size: 12px;
    color: #444;
    font-weight: 500;
}

.mcl-gift-info .mcl-gift-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.mcl-gift-info .mcl-gift-addon-tag {
    font-size: 11px;
    background: #f9f9f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #777;
    border: 1px solid #eee;
    line-height: 1.2;
}

.mcl-gift-info .mcl-gift-expires {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.mcl-gift-info .mcl-gift-expires span {
    color: #777;
}

.mcl-gift-action {
    margin-top: 5px;
}

.mcl-gift-action .button {
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
    line-height: 1;
    display: inline-block;
}

.mcl-gift-action .mcl-apply-gift-btn {
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
}

.mcl-gift-action .mcl-apply-gift-btn:hover {
    background: var(--mcl-primary-hover, #c41a1f);
}

.mcl-gift-card.mcl-gift-added .button {
    background: #46b450;
    color: #fff;
    opacity: 1;
    cursor: default;
}

#mcl_gift_message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
}

#mcl_gift_message.success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

#mcl_gift_message.error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #f5222d;
}

/* Gift Badge in Cart */
.mcl-gift-badge {
    display: inline-flex;
    align-items: center;
    background: #fff7e6;
    color: #d48806;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #ffe58f;
    margin-right: 6px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-bottom: 5px;
}

/* Order Review Rows (Discounts) */
.mcl-points-discount {
    background: linear-gradient(90deg, #e6f7ff 0%, #fff 100%);
    border-radius: 6px;
    padding: 8px 12px;
}

.mcl-points-discount .mcl-review-label {
    color: #1890ff;
    font-weight: 600;
}

.mcl-points-discount .mcl-review-value {
    color: #f5222d;
    font-weight: 600;
}

.mcl-first-order-discount {
    background: linear-gradient(90deg, #f6ffed 0%, #fff 100%);
    border-radius: 6px;
    padding: 8px 0;
}

.mcl-first-order-discount .mcl-review-label {
    color: #52c41a;
    font-weight: 600;
}

.mcl-first-order-discount .mcl-review-value {
    color: #f5222d;
    font-weight: 600;
}

/* ===== Order Review (Div-based) ===== */
.mcl-review-order {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Reset any WooCommerce table styles that may bleed through */
.mcl-review-order.woocommerce-checkout-review-order-table {
    display: block;
    border: none;
    border-collapse: unset;
    table-layout: unset;
}

.mcl-review-items {
    margin-bottom: 20px;
}

.mcl-review-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.mcl-review-item .mcl-cart-item-img-wrap {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: var(--mcl-btn-radius, 8px);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: #fff;
}

.mcl-review-item .mcl-cart-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mcl-review-item .mcl-cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 65px;
    overflow: hidden;
}

.mcl-review-item .mcl-cart-item-title {
    font-weight: 500;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mcl-review-item .mcl-cart-item-price {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 16px;
    color: #222;
    text-align: right;
    padding-top: 2px;
}

.mcl-checkout-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.mcl-checkout-qty {
    display: inline-flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 6px;
    padding: 4px;
    user-select: none;
    width: fit-content;
}

.mcl-qty-minus,
.mcl-qty-plus {
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 3px;
    color: #555;
    font-weight: bold;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mcl-qty-val {
    margin: 0 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.mcl-remove-item {
    color: #ff4d4f;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mcl-remove-item:hover {
    background: #fff1f0;
}

/* Totals Section */
.mcl-review-totals {
    padding-top: 10px;
}

.mcl-review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.mcl-review-label {
    font-size: 14px;
    color: #666;
}

.mcl-review-value {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    text-align: right;
}

.mcl-review-subtotal {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.mcl-review-total {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.mcl-review-total .mcl-review-label {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.mcl-review-total .mcl-review-value {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

/* Delivery Cost Row */
.mcl-delivery-cost-row .mcl-review-label {
    color: #555;
}

/* Mobile: hide price column, show on details */
@media (max-width: 768px) {
    .mcl-review-item .mcl-cart-item-price {
        display: none;
    }

    .mcl-review-item .mcl-cart-item-details::after {
        content: attr(data-mobile-price);
        display: block;
        font-weight: 600;
        font-size: 15px;
        color: #222;
        margin-top: 4px;
    }
}

/* Payment Status Simple Text */
#mcl-selected-payment-status {
    border: 1px solid black;
    max-width: 150px;
    text-align: center;
    border-radius: 20px;
    padding: 10px;
    font-size: 14px;
    color: var(--mcl-heading-color, #1a1a1a);
    background: transparent;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Modal COD Change Styles */
#mcl-change-modal {
    position: fixed;
    z-index: 100001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#mcl-change-modal .mcl-change-modal-content {
    background-color: #fff;
    border-radius: var(--mcl-input-radius, 12px);
    width: 90%;
    max-width: 380px;
    padding: 25px;
    position: relative;
    margin: 15vh auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#mcl-change-modal .mcl-modal-close {
    position: absolute;
    right: 0;
    top: 0px;
    background: none;
    border: none;
    font-size: 26px;
    color: black;
    cursor: pointer;
}

#mcl-change-modal .mcl-modal-title {
    margin-top: 0;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

#mcl-change-modal .mcl-modal-body {
    margin-top: 20px;
}

#mcl-change-modal .mcl-modal-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--mcl-heading-color, #1a1a1a);
}

#mcl-change-modal .mcl-change-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 18px;
}

#mcl-change-modal .mcl-change-option-input {
    width: 22px;
    height: 22px;
    accent-color: var(--mcl-primary-color, #E31E24);
}

#mcl-change-amount-input-wrap {
    margin-top: 10px;
}

#mcl-change-modal .mcl-modal-input {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: var(--mcl-btn-radius, 8px);
    padding: 0 15px;
    font-size: 18px;
}

#mcl-change-modal .mcl-modal-input.error {
    border-color: var(--mcl-primary-color, #E31E24);
    background-color: #fdf5f5;
}

#mcl-change-modal .mcl-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

#mcl-change-modal .mcl-modal-confirm-btn {
    width: auto;
    padding: 12px 35px;
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
    border: none;
    border-radius: var(--mcl-input-radius, 10px);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

/* =========================================================================
   Bonus Points Section Styles
   ========================================================================= */

/* Главный контейнер (сама карточка) */
.mcl-spend-points-option {
    margin-top: 25px;
    /* Отступ сверху от соседних карточек */
}

/* Заголовок "Использовать бонусы" */
.mcl-card-title.mcl-bonus-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-top: 0;
    margin-bottom: 15px;
}

/* Текст "У вас есть X бонусов" */
.mcl-bonus-amount-text {
    font-size: 16px;
    color: #444444;
    margin-bottom: 20px;
}

/* Выделение количества бонусов жирным (тег <strong>) */
.mcl-bonus-amount-text strong {
    font-weight: 700;
    color: var(--mcl-heading-color, #1a1a1a);
}

/* Обертка для галочки (чтобы не было лишних нижних отступов от WooCommerce) */
.mcl-bonus-checkbox-row {
    margin-bottom: 0;
}

/* Текст рядом с галочкой: "Списать бонусы" */
.mcl-bonus-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #222222;
}

/* Сам квадратик чекбокса */
.mcl-bonus-checkbox {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #cccccc;
    accent-color: var(--mcl-primary-color, #E31E24);
}

/* Скрытый блок настроек (поле ввода + описание), который появляется при галочке */
.mcl-bonus-input-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f2f2f2;
}

/* Текст над инпутом "Количество бонусов для списания..." */
.mcl-bonus-input-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666666;
    font-weight: 400;
    line-height: 1.4;
}

/* Жирный текст для максимума бонусов внутри лейбла */
#mcl_bonus_label #mcl_max_bonus_text {
    font-weight: 600;
    color: var(--mcl-primary-color, #E31E24);
}

/* Само поле ввода чисел (инпут) */
#mcl_points_amount {
    width: 100%;
    max-width: 280px;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #dddddd;
    border-radius: var(--mcl-btn-radius, 8px);
    font-size: 16px;
    color: var(--mcl-heading-color, #1a1a1a);
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

/* Поле ввода когда на него нажали */
#mcl_points_amount:focus {
    outline: none;
    border-color: var(--mcl-primary-color, #E31E24);
}

/* Мелкий текст "Минимальное количество бонусов..." под полем */
.mcl-bonus-desc {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #888888;
}

/* Текст ошибки, если ввели неправильное число бонусов */
.mcl-bonus-error {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: var(--mcl-primary-color, #E31E24);
    font-weight: 500;
}

/* Прилипающая кнопка "Оформить заказ" на мобильных устройствах */
@media (max-width: 768px) {
    .mcl-custom-checkout-wrap #payment button#place_order {
        width: 100%;
        margin: 0;
        border-radius: var(--mcl-input-radius, 10px);
        padding: 18px 20px;
        background: var(--mcl-primary-color, #E31E24);
        font-size: 14px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    /* Добавляем пустой отступ снизу чтобы плавающая кнопка не перекрывала контент страницы */
    .mcl-custom-checkout-wrap {
        padding-bottom: 110px;
    }

    .mcl-delivery-type-title {
        font-size: 14px;
    }

    .mcl-prep-time-toggle {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .mcl-prep-btn {
        width: 50%;
    }
}



.mcl-step-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    flex-direction: column;
}

.mcl-next-step-btn,
.mcl-prev-step-btn {
    padding: 18px 30px;
    border-radius: var(--mcl-btn-radius, 12px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
    width: 100%;
    margin-top: 0;
    border: 1px solid transparent;
}

.mcl-next-step-btn {
    background-color: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
    flex: 1;
}

.mcl-next-step-btn:hover {
    background-color: var(--mcl-primary-hover, #c41a1f);
}

.mcl-next-step-btn.mcl-btn-loading,
#place_order.mcl-btn-loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.mcl-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: mclSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes mclSpin {
    to { transform: rotate(360deg); }
}

.mcl-prev-step-btn {
    background-color: #fff !important;
    padding: 0;
    color: #444 !important;
    border: 0;
}

.mcl-prev-step-btn:hover {
    color: var(--mcl-primary-color, #E31E24) !important;
}

/* Thank You Page Style */
.mcl-thankyou-wrap {
    max-width: 800px;
    margin: 40px auto;
    font-family: inherit;
}

/* Hide system heading on Thank You page */
.woocommerce-order-received .elementor-heading-title {
    display: none;
}

.mcl-thankyou-card {
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #f2f2f2;
}

.mcl-status-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.mcl-thankyou-wrap h2,
.mcl-thankyou-wrap h3 {
    color: var(--mcl-heading-color, #1a1a1a);
    font-weight: 700;
    margin-top: 0;
}

.mcl-thankyou-wrap .mcl-card-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.mcl-thankyou-wrap h2.woocommerce-order-details__title,
.mcl-thankyou-wrap h2.woocommerce-column__title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 15px;
}

.mcl-order-brief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: left;
    border-top: 1px solid #f2f2f2;
    padding-top: 25px;
}

.mcl-brief-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mcl-brief-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcl-brief-val {
    font-size: 16px;
    font-weight: 600;
    color: var(--mcl-heading-color, #1a1a1a);
}

.mcl-order-details-card {
    margin-top: 20px;
}

.mcl-order-details-card .woocommerce-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border: none;
}

.mcl-order-details-card .woocommerce-table th,
.mcl-order-details-card .woocommerce-table td {
    padding: 15px 0;
    text-align: left;
    border-bottom: 1px solid #f2f2f2;
    font-size: 15px;
}

.mcl-order-details-card .woocommerce-table th,
.mcl-order-details-card .woocommerce-table td a {
    color: black;
}

.woocommerce-table__product-total.product-total {
    text-align: right;
}


.woocommerce-table__product-name.product-name {
    text-align: left;
}

.woocommerce-table__product-table.product-total {
    text-align: right;
}

.mcl-order-details-card .woocommerce-table thead th {
    background: transparent;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f2f2f2;
}

.mcl-order-details-card .woocommerce-table tfoot th {
    font-weight: 500;
    color: #888;
    border: none;
    padding-top: 15px;
}

.mcl-order-details-card .woocommerce-table tfoot td {
    font-weight: 700;
    color: var(--mcl-heading-color, #1a1a1a);
    text-align: right;
    border: none;
    padding-top: 15px;
}

/* Specific logic for total row to highlight it */
.mcl-order-details-card .woocommerce-table tfoot tr:last-child th,
.mcl-order-details-card .woocommerce-table tfoot tr:last-child td {
    padding-top: 25px;
    padding-bottom: 10px;
    font-size: 18px;
    border-top: 2px solid #f2f2f2;
}

.mcl-order-details-card .product-quantity {
    color: var(--mcl-primary-color, #E31E24);
    margin-left: 5px;
    font-weight: 700;
}

/* Secondary hide of unwanted rows just in case */
.mcl-order-details-card tr:has(th:contains("Подытог")),
.mcl-order-details-card tr:has(th:contains("Способ оплаты")) {
    display: none;
}

.woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.6;
    color: #444;
    background: #fdfdfd;
    padding: 20px;
    border-radius: var(--mcl-input-radius, 12px);
    border: 1px solid #f0f0f0;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
    margin: 10px 0 0 0;
    font-weight: 600;
    color: var(--mcl-heading-color, #1a1a1a);
}

.mcl-thankyou-footer-actions {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.mcl-thankyou-footer-actions .mcl-btn-primary {
    display: inline-block;
    padding: 18px 50px;
    background: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-btn-text, #ffffff);
    border-radius: var(--mcl-input-radius, 12px);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2);
}

.mcl-thankyou-footer-actions .mcl-btn-primary:hover {
    background: var(--mcl-primary-hover, #c41a1f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

@media (max-width: 600px) {
    .mcl-order-brief-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mcl-thankyou-wrap {
        padding: 0 15px;
        margin: 20px auto;
    }
}

/* Step 3 Actions Layout */
#mcl-actions-step-3 {
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#mcl-actions-step-3 .mcl-place-order-card {
    width: 100%;
}

/* ========================================= */
/* Checkout Error Card (Smart Plaque)        */
/* ========================================= */
.mcl-checkout-error-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--mcl-card-radius, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    animation: slideUpFade 0.4s ease-out;
}

.mcl-error-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.mcl-error-icon svg {
    width: 64px;
    height: 64px;
    stroke: #ef4444;
    stroke-width: 2;
}

.mcl-error-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mcl-heading-color, #1a1a1a);
    margin-bottom: 15px;
}

.mcl-error-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.mcl-problem-items-list {
    list-style: none;
    padding: 20px;
    margin: 0 0 30px 0;
    background: #fff9f9;
    border-radius: 12px;
    text-align: left;
    border: 1px solid #fee2e2;
}

.mcl-problem-items-list li {
    font-size: 14px;
    color: #b91c1c;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.mcl-problem-items-list li:last-child {
    margin-bottom: 0;
}

.mcl-problem-items-list li span {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 10px;
}

.mcl-error-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcl-btn-fix-cart {
    background: var(--mcl-primary-color, #E31E24);
    color: #fff;
    border: none;
    padding: 16px 25px;
    border-radius: var(--mcl-btn-radius, 8px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcl-btn-fix-cart:hover {
    background: var(--mcl-primary-hover, #c41a1f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.2);
}

.mcl-btn-fix-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mcl-btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 14px 25px;
    border-radius: var(--mcl-btn-radius, 8px);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    width: auto;
}

.mcl-btn-secondary:hover {
    background: #f9f9f9;
    color: #333;
    border-color: #ccc;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mcl-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: mcl-spin 0.8s linear infinite;
    margin-right: 10px;
    display: inline-block;
}

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

/* ========== Comment Blocks ========== */

.mcl-comment-block {
    max-width: 800px;
    margin: 12px auto 0;
    padding: 0;
}

.mcl-courier-comment-block {
    margin-bottom: 0;
}

.mcl-order-comment-block {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2f2f2;
}

.mcl-comment-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px dashed #ccc;
    border-radius: var(--mcl-btn-radius, 8px);
    color: #666;
    font-size: 13px;
    padding: 7px 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
}

.mcl-comment-toggle-btn:hover {
    border-color: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-primary-color, #E31E24);
}

.mcl-comment-textarea,
.mcl-dish-comment-textarea {
    width: 100%;
    border: 1.5px solid #ddd;
    border-radius: var(--mcl-input-radius, 10px);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    color: #333;
    background: #fafafa;
}

.mcl-comment-textarea:focus,
.mcl-dish-comment-textarea:focus {
    border-color: var(--mcl-primary-color, #E31E24);
    background: #fff;
}

.mcl-dish-comment-textarea {
    font-size: 13px;
    padding: 7px 10px;
    margin-top: 6px;
}

.mcl-comment-field-wrap {
    margin-top: 8px;
}

.mcl-comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.mcl-comment-done-btn,
.mcl-dish-comment-done {
    background: var(--mcl-primary-color, #E31E24);
    color: #fff;
    border: none;
    border-radius: var(--mcl-btn-radius, 8px);
    padding: 7px 18px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.mcl-comment-done-btn:hover,
.mcl-dish-comment-done:hover {
    background: var(--mcl-primary-hover, #c41a1f);
}

.mcl-comment-saved-wrap,
.mcl-dish-comment-saved {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.mcl-comment-saved-text,
.mcl-dish-comment-saved-text {
    font-size: 13px;
    color: #444;
    flex: 1;
    word-break: break-word;
}

.mcl-comment-edit-btn,
.mcl-dish-comment-edit {
    background: transparent;
    border: none;
    color: var(--mcl-primary-color, #E31E24);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: underline;
}

/* Dish comment wrap */
.mcl-dish-comment-wrap {
    margin-top: 6px;
}

.mcl-dish-comment-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px dashed #ccc;
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
}

.mcl-dish-comment-btn:hover {
    border-color: var(--mcl-primary-color, #E31E24);
    color: var(--mcl-primary-color, #E31E24);
}

.mcl-dish-comment-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.mcl-dish-comment-saved {
    margin-top: 4px;
}

.mcl-dish-comment-saved-text {
    font-size: 12px;
    color: #555;
}