/*
 * ATW Biotech - Custom Styles
 * Mini-cart, nut tra cuu don hang, thong bao gio hang.
 *
 * Tach rieng khoi style.css vi Flatsome chi enqueue style.css khi theme mod
 * flatsome_disable_style_css = 0. File nay enqueue doc lap trong
 * inc/atw-styles.php nen luon load.
 */

/* === ATW Custom Styles === */

/* Mini Cart Dropdown (Khi có sản phẩm) - Nút Tra cứu đơn hàng xanh dương */
a.button.atw-mini-cart-lookup-btn {
    margin-top: 6px;
    margin-bottom: 0;
    background-color: #2b6cb0;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 0;
    padding-top: 0;
    padding-bottom: 0;
}

a.button.atw-mini-cart-lookup-btn span,
a.button.atw-mini-cart-lookup-btn i {
    vertical-align: middle;
    display: inline-block;
}

a.button.atw-mini-cart-lookup-btn i {
    font-size: 0.95em;
    margin-left: 4px;
}

a.button.atw-mini-cart-lookup-btn:hover {
    background-color: #1a4971;
    color: #ffffff;
}

/* Fix màu chữ & độ tương phản thông báo trong Giỏ hàng Off-canvas Mobile */
.cart-sidebar .woocommerce-message,
.off-canvas .woocommerce-message,
#cart-popup .woocommerce-message,
.cart-popup .woocommerce-message {
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-left: 4px solid #0284c7;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    margin: 10px 0 15px;
    border-radius: 6px;
    opacity: 1;
    visibility: visible;
}

.cart-sidebar .woocommerce-message a,
.off-canvas .woocommerce-message a,
#cart-popup .woocommerce-message a,
.cart-popup .woocommerce-message a {
    color: #0369a1;
    text-decoration: underline;
    font-weight: 700;
}

/* Kiểu dáng nút Tra cứu đơn hàng (Chỉ áp dụng cho nút tạo mới .atw-empty-cart-btn, không can thiệp nút gốc) */
a.button.atw-empty-cart-btn {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 8px;
    margin-left: 0;
    text-transform: none;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap !important;
}

a.button.atw-empty-cart-btn span {
    line-height: 1;
    display: inline-block;
}

a.button.atw-empty-cart-btn i {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    margin-left: 4px;
}

/* Khi nằm trong Mini-Cart Sidebar / Dropdown Popup hẹp (Cả 2 nút dạng block, rộng 100% full-width xếp chồng dọc) */
.cart-sidebar .return-to-shop a.button,
.off-canvas .return-to-shop a.button,
#cart-popup .return-to-shop a.button,
.widget_shopping_cart .return-to-shop a.button,
.nav-dropdown-cart .return-to-shop a.button {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.cart-sidebar .return-to-shop a.button:last-child,
.off-canvas .return-to-shop a.button:last-child,
#cart-popup .return-to-shop a.button:last-child,
.widget_shopping_cart .return-to-shop a.button:last-child,
.nav-dropdown-cart .return-to-shop a.button:last-child {
    margin-bottom: 0;
}

.atw-minicart-lookup-box {
    margin-top: 15px;
    margin-bottom: 0;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    clear: both;
}




/* Trạng thái đang chuyển trang của nút mini-cart
   (thay cho <style> inline cũ trong wp_footer) */
@keyframes atw-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.atw-is-loading {
    cursor: wait !important;
    pointer-events: none !important;
}

/* Thông báo miễn phí vận chuyển trong trang Giỏ hàng */
.atw-free-shipping-notice {
    padding: 10px 16px;
    background: #a3d99b;
    color: #1c4b23;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    line-height: 1.5;
    box-sizing: border-box;
}

