/* ============================================================
 * bundle-deferred.css
 * Non-critical CSS — loaded asynchronously (media="print" trick)
 * Contains: rate, cart, checkout, captcha, user, mb-menu-cat
 * v1 — update ?v= query string in head.php when editing any of these files
 * ============================================================ */

/* === rate.css === */
.ratings {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

.ratings span {
    color: #404040;
    margin-right: 3px;
    font-size: 12px;
}

.ratings span.good {
    color: #ffba00;
}

.ratings .pro-review span {
    color: #a5a5a5;
    font-size: 12px;
}

.ratings .pro-review {
    padding-left: 5px;
}

.total-reviews {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    padding-bottom: 50px;
    padding: 10px;
}

.total-reviews .rev-avatar {
    -webkit-flex-basis: 60px;
    -moz-flex-basis: 60px;
    -ms-flex-basis: 60px;
    -ms-flex-preferred-size: 60px;
    flex-basis: 60px;
    max-height: 60px;
    text-align: center;
    font-size: 50px;
}

.total-reviews .review-box {
    margin-left: 10px;
    border: 1px solid #e5e5e5;
    padding: 5px 10px;
    -webkit-flex-basis: calc(100% - 70px);
    -moz-flex-basis: calc(100% - 70px);
    -ms-flex-basis: calc(100% - 70px);
    -ms-flex-preferred-size: calc(100% - 70px);
    flex-basis: calc(100% - 70px);
    border-radius: 10px;
}

.total-reviews .review-box .post-author {
    padding-bottom: 10px;
}

.total-reviews .review-box .post-author p {
    font-size: 12px;
    font-style: italic;
    text-transform: capitalize;
}

.total-reviews .review-box .post-author p span {
    font-size: 13px;
}

.total-reviews .review-box p {
    font-size: 13px;
    font-style: italic;
}

/* === cart.css === */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;

    border-radius: 8px;
    margin-bottom: 16px;
}

.cart-thumb {
    width: 80px;
    flex-shrink: 0;
}

.cart-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-title-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.product-labels {
    font-weight: 400;
}

.product-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}



.price-group {
    text-align: right;
    align-items: center;
}

.price-sale {
    color: #d90000;
    font-weight: 700;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85em;
    display: block;
}

.product-variant {

    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9em;
}

.cart-flashsale {
    font-size: 0.85em;
    color: #005cc5;
}

.cart-note {
    font-size: 0.85em;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 6px;
    line-height: 1.4;
    color: #444;
}

.cart-note a {
    color: #0066cc;
    text-decoration: none;
}

.cart-actions {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 10px;

}

.remove {
    color: #d90000;
    font-size: 0.9em;
    cursor: pointer;
}

.quantity {
    display: flex;
    align-items: center;
}

.quantity input {
    width: 40px;
    text-align: center;
    height: 39.25px;
}

.quantity button {
    width: 30px;
    height: 30px;
    font-size: 16px;
    background: #eee;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-top: 12px;
    font-size: 1em;
    padding: 12px;
}

.sub-total {
    color: #d90000;
}

.product-variant {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.product-label {
    background-color: #f0f0f0;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.date-slider {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* .date-slider::-webkit-scrollbar {
    display: none;
} */

.date-option {

    position: relative;
    flex: 0 0 auto;
    width: 123px;
    min-height: 70px;
    background-color: #fff;
    border: 1.5px dashed #ccc;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #333;
    line-height: 1.5;
}

.date-option:hover {
    background-color: #f5f5f5;
    border-color: #aaa;
}

.date-option.active {
    background-color: #E0EAFC;
    color: #4C88EC;
}

.date-option.active .date-sub,
.date-option.active .date-icon {
    color: #4C88EC;
}

.date-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #4C88EC;
}

.date-icon1 {

    position: absolute;
    top: 41px;
    right: 4px;
    color: #e01c1c;
}

.date-label {
    font-size: 16px;

    margin-bottom: 4px;
}

.date-sub {
    font-size: 12px;
    color: #666;
}

@media (min-width: 768px) {
    .date-option {
        width: calc((100% / 4) - 8px);
        margin-right: 0px;
    }

    /*CSS desktop*/
    .date-slider {
        flex-wrap: wrap !important;
    }
}

#stickyBottomBar {
    display: none;
}



@media (max-width: 480px) {
    .cart-item {
        /*  flex-direction: column;*/
    }

    .col-inner {
        padding: 0px !important;
    }

    .devvn_checkout_tky_content {
        padding: 10px;
    }

    .cart-title-price {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-group {
        text-align: left;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }


    #stickyBottomBar {
        align-items: center;
        background-color: #fff;
        border: 1px solid rgba(145, 158, 171, .239);
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        bottom: 0;
        box-shadow: 0 -4px 20px -1px rgba(40, 124, 234, .15);
        display: flex;
        justify-content: space-between;
        left: 50%;
        margin: auto;
        max-width: 600px;
        padding: 10px;
        position: fixed;
        transform: translateX(-50%);
        width: 100%;
        z-index: 11;
    }

    #stickyBottomBar .btn-action.disabled {
        background-color: silver;
        color: #717171;
        cursor: not-allowed;
    }

    #stickyBottomBar .btn-action {
        background-color: #d70018;
        border: 0;
        border-radius: 5px;
        color: #fff;
        cursor: pointer;
        margin: unset;
        padding: 5px 20px;
    }

    #stickyBottomBar .bmsm-info {
        display: flex;
        font-size: 12px;
        gap: 5px;
    }




}

.button .is-form {
    border-radius: 10px;
}

/* === checkout.css === */
     .checkbox-wrapper-20 {
         --slider-height: 8px;
         --slider-width: calc(var(--slider-height) * 4);
         --switch-height: calc(var(--slider-height) * 3);
         --switch-width: var(--switch-height);
         --switch-shift: var(--slider-height);
         --transition: all 0.2s ease;

         --switch-on-color: #ef0460;
         --slider-on-color: #fc5d9b;

         --switch-off-color: #eeeeee;
         --slider-off-color: #c5c5c5;
     }

     .checkbox-wrapper-20 .switch {
         display: block;
     }

     .checkbox-wrapper-20 .switch .slider {
         position: relative;
         display: inline-block;
         height: var(--slider-height);
         width: var(--slider-width);
         border-radius: var(--slider-height);
         cursor: pointer;
         background: var(--slider-off-color);
         transition: var(--transition);
     }

     .checkbox-wrapper-20 .switch .slider:after {
         background: var(--switch-off-color);
         position: absolute;
         left: calc(-1 * var(--switch-shift));
         top: calc((var(--slider-height) - var(--switch-height)) / 2);
         display: block;
         width: var(--switch-height);
         height: var(--switch-width);
         border-radius: 50%;
         box-shadow: 0px 2px 2px rgba(0, 0, 0, .2);
         content: '';
         transition: var(--transition);
     }

     .checkbox-wrapper-20 .switch label {
         margin-right: 7px;
     }

     .checkbox-wrapper-20 .switch .input {
         display: none;
     }

     .checkbox-wrapper-20 .switch .input~.label {
         margin-left: var(--slider-height);
     }

     .checkbox-wrapper-20 .switch .input:checked~.slider:after {
         left: calc(var(--slider-width) - var(--switch-width) + var(--switch-shift));
     }

     .checkbox-wrapper-20 .switch .input:checked~.slider {
         background: var(--slider-on-color);
     }

     .checkbox-wrapper-20 .switch .input:checked~.slider:after {
         background: var(--switch-on-color);
     }

     #coupon_suggestions li {
         background-color: #17980e;
         padding: 2px 7px;
         color: white;
         cursor: pointer;
     }

     #coupon_suggestions {
         padding-top: 10px;
         display: flex;
         gap: 10px;
     }

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

     #content>div>div>div.col-inner {
         all: unset;
         padding: 10px;
         display: block;
         background: #fff;
         box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.12);
         border-radius: 2px;
         -moz-border-radius: 2px;
         -webkit-border-radius: 2px;
         max-width: 750px;
         margin: 30px auto !important;
         border-radius: 15px;
     }

     /* Create a custom checkbox */
     .checkmark {
         position: relative;
         top: 0;
         left: 0;
         height: 1.3em;
         width: 1.3em;
         background-color: #ccc;
         transition: all 0.3s;
         border-radius: 5px;
     }

     /* Create the checkmark/indicator (hidden when not checked) */
     .checkmark:after {
         content: "";
         position: absolute;
         display: none;
     }

     /* Show the checkmark when checked */
     .store-address-checkbox input:checked~.checkmark:after {
         display: block;
     }

     /* Style the checkmark/indicator */
     .store-address-checkbox .checkmark:after {
         left: 0.45em;
         top: 0.25em;
         width: 0.4em;
         height: 0.65em;
         border: solid white;
         border-width: 0 0.15em 0.15em 0;
         transform: rotate(45deg);
     }

     @keyframes pop {
         0% {
             transform: scale(1);
         }

         50% {
             transform: scale(0.9);
         }

         100% {
             transform: scale(1);
         }
     }

     /* Hide the default checkbox */
     .store-address-checkbox input {
         position: absolute;
         opacity: 0;
         cursor: pointer;
         height: 0;
         width: 0;
     }

     .store-address-checkbox {
         background-color: aliceblue;
         display: flex;
         gap: 10px;
         position: relative;
         cursor: pointer;
         font-size: 16px;
         user-select: none;
         padding: 20px;
         max-width: max-content;
         border-radius: 10px;
     }

     .store-address-checkbox input:checked+.checkmark {
         background-color: #f16784;
         animation: pop 0.5s;
         animation-direction: alternate;
     }

     .store-address-checkbox input:checked+.checkmark:after {
         display: block;
     }


     .ai-suggest-box {
         background: #f9f9fb;
         border: 1px solid #ddd;
         border-radius: 12px;
         padding: 16px;
         margin-bottom: 20px;
         position: relative;
         font-family: 'Segoe UI', sans-serif;
     }

     .ai-suggest-box h4 {
         margin: 0 0 10px;
         font-size: 16px;
         font-weight: bold;
         color: #444;
     }

     .ai-fields {
         display: grid;
         grid-template-columns: 1fr 1fr;
         gap: 12px;
         margin-bottom: 10px;
     }

     .ai-fields input,
     .ai-fields select {
         width: 100%;
         padding: 8px;
         border-radius: 6px;
         border: 1px solid #ccc;
         font-size: 14px;
     }

     .ai-generate-btn {
         display: inline-flex;
         align-items: center;
         gap: 8px;
         background: #007bff;
         color: white;
         border: none;
         padding: 10px 16px;
         border-radius: 8px;
         cursor: pointer;
         transition: background 0.2s ease;
         font-size: 14px;
     }

     .ai-generate-btn:disabled {
         opacity: 0.6;
         cursor: not-allowed;
     }

     .ai-spinner {
         border: 2px solid #f3f3f3;
         border-top: 2px solid white;
         border-radius: 50%;
         width: 16px;
         height: 16px;
         animation: spin 0.8s linear infinite;
     }

     @keyframes spin {
         0% {
             transform: rotate(0);
         }

         100% {
             transform: rotate(360deg);
         }
     }

     .ai-note {
         font-size: 13px;
         color: #777;
         margin-top: 4px;
     }

/* === captcha.css === */
/* Container */
.captcha-box {
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
    text-align: left;
}

.captcha-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #222;
}

/* Căn hàng ngang và canh giữa các phần tử */
.captcha-img-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* Input captcha */
.captcha-img-wrapper input[type="text"] {
    padding: 0px !important;
    max-width: 120px;
    height: 42px;
    padding: 0 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Ảnh captcha */
.captcha-img {
    height: 42px !important;
    width: 100px;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 5px;

}

/* Nút refresh */
.captcha-refresh {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 42px;
    transition: color 0.3s ease;
}

.captcha-refresh:hover {
    color: #000;
}

/* Responsive cho màn nhỏ */
@media (max-width: 480px) {
    .captcha-img-wrapper {
        flex-direction: row;
        align-items: stretch;
    }

    .captcha-img,
    .captcha-refresh {
        align-self: flex-start;
    }
}

/* === user.css === */
.support-address-link {
    align-items: center;
    color: #d70018;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    gap: 5px;
    justify-content: right;
    margin-top: 5px;
}

.support-title {
    align-items: center;
    display: flex;
    gap: 10px;
}

.support-address {
    color: #000;
    display: block;
    font-size: 15px;
    margin: 5px 0 0;
    padding-left: 30px;
}

.support-phone {
    color: #d70018;
    display: block;
    margin: 5px 0 15px;
    padding-left: 30px;
    font-size: 20px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert-danger hr {
    border-top-color: #f1b0b7
}

.alert-danger .alert-link {
    color: #491217
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert-success hr {
    border-top-color: #b1dfbb
}

.alert-success .alert-link {
    color: #0b2e13
}

.list .thanhcong {
    background-color: green;
    color: #fff;
}

#btntk {
    border-radius: 8px;
    color: white;
}

.total-number {
    text-align: end;
    padding: 24px 0px;
}

.order-title {
    text-align: center;
    font-size: x-large;
    padding-bottom: 10px;
}

.order-km {
    text-align: right;
}

.tab {
    display: none;
}

.active-tab {
    display: block;
}


label {
    font-size: 1em !important;
}




.list .order-item {

    border-radius: 8px !important;
    border: 1px dashed #c0c0c0;
    padding: 20px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    ;
    font-size: 14px;
    flex-direction: column;
}

.order-detail div {
    line-height: 2.4;

    align-items: center;
}

.order-detail div span {
    width: 50%;
}

.title-tracuu {
    text-align: center;
    padding: 10px 0px;
    margin-bottom: 5px;
}

.title-tracuu h1 {
    margin-bottom: 10px;
}


@media (max-width: 600px) {
    .tabs {
        display: flex;
    }
}


.hidden {
    display: none;
}


.btnplus {

    cursor: pointer;
}

.captcha-code {
    display: flex;
}

.captcha-code p {
    background-color: #f1cb325e;
    padding: 0px 10px;
    width: 100px;
    text-align: center;
    margin-left: 5px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 34px;
    letter-spacing: 5px;
    font-size: 16px;
}

/* === plugin/mb-menu-cat/style.css === */
.btn-open-menu {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    font-size: 16px;
}

/* Overlay */
.overlay1 {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 5000;
}

.menu-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #fff;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f1f1f1;
    font-weight: bold;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.menu-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Tabs bên trái */
.tab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 35%;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
}

.tab-item {
    padding: 12px;
    cursor: pointer;

}

.tab-item.active {
    background: #fff;
    font-weight: bold;
    color: #007bff;
}

/* Nội dung tab */
.tab-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Danh sách danh mục con */
.category-grid {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 10px 0;
    list-style: none;
}

.category-grid li {
    line-height: 2;
    font-size: 16px;
}

.category-grid img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 8px;
}
