/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : Jan 20, 2026, 10:10:11 PM
    Author     : luanlt
*/

/* Style Tags Biến thể trong Loop */
.loop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.loop-tags .attr-tag {
    font-size: 11px;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #555;
    text-decoration: none;
    background: #f9f9f9;
}

.loop-tags .attr-tag:hover {
    background: #007cba;
    /* Màu chủ đạo của bạn */
    color: #fff;
    border-color: #007cba;
}

.loop-model strong {
    display: inline-block !important;

}

.loop-stock strong {
    color: red;
    display: inline-block !important;
}

/* Style Tồn kho */
.stock-status.in-stock {
    color: #27ae60;
}

.stock-status.out-stock {
    color: #e74c3c;
    font-weight: bold;
}

.var-attrs-badge strong {
    display: inline-block !important
}

/* Style Form Loop */
.loop-cart-form {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 5px;
}

.loop-cart-form .quantity {
    width: 60px !important;
    margin: 0 !important;
}

.loop-cart-form .quantity input {
    padding: 5px !important;
    height: 34px !important;
    font-size: 13px;
}

.loop-cart-form .loop-btn {
    flex-grow: 1;
    padding: 5px 10px !important;
    height: 34px !important;
    line-height: 24px !important;
    font-size: 12px !important;
    white-space: nowrap;
}

.loop-meta-info {
    display: inline-block;
    width: 100%
}

.loop-meta-info div {
    float: left;
    margin-right: 5px;
    display: inline-block;
    text-align: left
}

/* Ẩn bớt trên mobile nếu cần */
@media (max-width: 480px) {
    .loop-tags {
        display: none;
    }

    /* Ẩn tag trên mobile cho gọn */
    .loop-cart-form {
        flex-direction: column;
    }

    .loop-cart-form .quantity {
        width: 100% !important;
    }

    .loop-cart-form .loop-btn {
        width: 100% !important;
    }
}

.action-cell {
    text-align: center
}

/* Form tổng */
.action-cell .row-cart-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* khoảng cách giữa 2 hàng */
}

/* Hàng số lượng */
.action-cell .quantity.buttons_added {
    display: inline-flex;
    /*align-items: center;*/
    width: fit-content;
}

/* Hàng nút Add to quote */
.action-cell .yith-ywraq-add-to-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nút Add to quote */
.action-cell .yith-ywraq-add-button a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
}

/* Thông báo bên dưới nút */
.action-cell .yith_ywraq_add_item_response_message,
.action-cell .yith_ywraq_add_item_browse_message {
    margin-top: 6px;
    font-size: 13px;
}

.yith-ywraq-add-button,
a.contact-link.contact-phone {
    border-style: solid;
    border-top-width: 0px;
    border-right-width: 0px;
    border-left-width: 0px;
    border-bottom-width: 0px;
    color: #ffffff;
    border-color: var(--ast-global-color-0);
    background-color: var(--ast-global-color-0);
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    padding-left: 20px;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    font-size: 1rem;
    line-height: 1em;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    color: #fff
}

.yith-ywraq-add-button a {
    color: #fff
}

.action-cell .yith_ywraq_add_item_response_message,
.action-cell .yith_ywraq_add_item_browse_message {
    color: #fff;
    background-color: green;
    max-width: 160px;
    padding: 5px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.yith_ywraq_add_item_browse_message:hover {
    background-color: orange
}

.yith_ywraq_add_item_browse_message a {
    color: #fff;
}

/* Loop stock - login required */
.loop-stock-info .stock-total.login-required {
    color: #e65100;
    font-size: 12px;
    font-weight: 600;
}