
.wpd-reply-to a {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: #666 !important; /* Đổi màu chữ thành màu xám cho giống văn bản bình thường */
}

/* Đổi màu sao hiển thị ở các bình luận đã đánh giá */
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
    color: #FFBC5D !important; 
}

/* Đổi màu sao ở khung "Đánh giá của bạn" khi click chọn */
.woocommerce p.stars a::before,
.woocommerce p.stars a:hover~a::before,
.woocommerce p.stars.selected a.active~a::before {
    color: #FFBC5D !important; 
}
/* Định dạng chú thích hình ảnh (figcaption) có nền */
figcaption, .wp-caption-text {
    display: block !important;
    text-align: center !important;
    background-color: #E5F5EC !important;
    color: #000 !important;
    padding: 10px 20px;
    font-size: 0.9em;
}

figure.wp-block-image, .wp-caption {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important; /* Căn giữa nội dung bên trong (hình ảnh và chữ) */
    max-width: 100%; /* Đảm bảo không bị tràn màn hình */
}


/* 1. Ép thanh ngang thành Hộp lơ lửng bo góc ra giữa màn hình */
.wpcsb-wrapper.wpcsb-wrapper-bottom {
    width: max-content !important; 
    min-width: unset !important;
    left: 50% !important;
    right: auto !important; 
    transform: translateX(-50%) !important;
    bottom: 30px !important; 
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    background-color: #EAF3EE !important;
    border: 1px solid #e0e0e0 !important;
    padding: 10px 20px !important;
    z-index: 99999 !important;
}

/* 2. Lột sạch nền, viền của khung lồng bên trong (Fix lỗi hộp lồng hộp) */
.wpcsb-wrapper .wpcsb-container,
.wpcsb-wrapper .wpcsb-product {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* 3. Ẩn cục chọn số lượng */
.wpcsb-quantity {
    display: none !important;
}

/* 4. Chữ giá tiền màu đỏ cho máu */
.wpcsb-product-info .price,
.wpcsb-product-info ins {
    color: #d0021b !important;
    font-weight: bold !important;
    text-decoration: none !important;
}
.wpcsb-product-info del {
    color: #999 !important;
    font-size: 12px !important;
}

/* 5. Nhóm các nút lại với nhau */
.wpcsb-atc, .wpcsb-product-action {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important; /* Khoảng cách giữa 2 nút */
}

/* 6. Nút MUA NGAY (Nền đỏ, chữ trắng) */
.wpcsb-atc button.wpcsb-btn,
.wpcsb-atc button.single_add_to_cart_button:not(.wpcbn-btn) {
    background-color: #318956 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    height: 42px !important; /* Chốt cứng chiều cao */
    padding: 0 24px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}
.wpcsb-atc button.wpcbn-btn:hover {
    background-color: #a80013 !important;
}



/* 8. Fix giao diện cho Mobile đỡ tràn màn hình */
@media (max-width: 768px) {
    .wpcsb-wrapper.wpcsb-wrapper-bottom {
        width: 95% !important;
        padding: 10px !important;
        bottom: 15px !important;
    }
    .wpcsb-atc button.wpcbn-btn, 
    .wpcsb-product-action button.wpcbn-btn {
        padding: 0 15px !important;
        font-size: 13px !important;
    }
}

/* Vùng chứa tổng thể */
.flash-sale-progress-container {
    width: 100%;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

/* Khung bọc giới hạn độ dài của thanh */
.fs-progress-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 90%; 
    max-width: 220px;
}

/* Vòng tròn bao quanh icon lửa - Đẩy lồi ra bên trái */
.fs-fire-icon-wrapper {
    position: absolute;
    left: -10px; 
    z-index: 3;
    background: radial-gradient(circle, #ffeb84 0%, #ffaa2b 100%); /* Nền vàng cam sáng cho lửa */
    border-radius: 50%;
    width: 26px; 
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); 
}

.fs-fire-icon {
    font-size: 14px;
    line-height: 1;
}

/* Khung thanh tiến trình (Màu đỏ nhạt thể hiện phần chưa bán) */
.fs-progress-bar {
    position: relative;
    background-color: #ffb3b9; 
    border-radius: 20px;
    height: 18px; 
    width: 100%;
    margin-left: 8px; 
    overflow: hidden;
}

/* Thanh chạy phần trăm (Màu đỏ đậm thể hiện phần đã bán) */
.fs-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff424e 0%, #d82b37 100%); 
    border-radius: 20px;
    z-index: 1;
}

/* Chữ "Đã đặt..." */
.fs-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    font-size: 11px; 
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-left: 10px; 
    text-shadow: 0px 1px 2px rgba(0,0,0,0.2); /* Thêm đổ bóng nhẹ để chữ trắng luôn nổi bật */
}

/* Giao diện Đã bán tinh gọn (Trang chi tiết) */
.chi-tiet-da-ban {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #555555;
    background-color: #f7f7f7; /* Nền xám nhạt rất nhẹ */
    padding: 6px 12px;
    border-radius: 4px; /* Bo góc vuông vức lịch sự */
    margin: 10px 0; /* Khoảng cách trên dưới */
    border: 1px solid #eeeeee; /* Viền mờ */
}

.chi-tiet-da-ban svg {
    margin-right: 6px;
    color: #888888;
}

.chi-tiet-da-ban strong {
    color: #e53935; /* Điểm nhấn số lượng bằng tone đỏ của web */
    font-weight: 600;
}


.modern-contact-widget {
  position: fixed;
  bottom: 100px; /* Đã tăng từ 30px lên 100px để né nút Back to top */
  right: 30px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 15px;
  z-index: 99999;
}

/* Các nút liên hệ ẩn bên trong */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modern-contact-widget:hover .contact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.sub-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Nút chính (Nút kích hoạt) */
.main-toggle-btn {
  width: 60px;
  height: 60px;
  background-color: #1a9e5b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(26, 158, 91, 0.4);
  position: relative;
  transition: transform 0.3s ease;
}

/* Hiệu ứng tỏa sóng cho nút chính */
.main-toggle-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #1a9e5b;
  border-radius: 50%;
  z-index: -1;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.modern-contact-widget:hover .main-toggle-btn {
  transform: rotate(90deg); /* Xoay nhẹ khi mở */
}

/* Màu sắc từng nút */
.btn-messenger { background-color: #0084FF; }
.btn-zalo { background-color: #ffffff; }
.btn-phone { background-color: #00a859; }

/* Icon Zalo */
.zalo-text {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #0068ff;
}

/* Chú thích hiển thị khi hover (Tooltip) */
.sub-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 65px;
  background-color: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.sub-btn:hover::before {
  opacity: 1;
  visibility: visible;
  right: 60px;
}

blockquote {
    margin: 22px 0;
    padding: 18px 20px;
    background: #f3fff3;
    border-left: 5px solid #2B7C2D;
    border-radius: 0 4px 4px 0;
}
blockquote::before {
    content: "“";
    display: block;
    color: #2B7C2D;
    font-size: 50px;
    font-family: Georgia, serif;
    font-weight: bold;
    line-height: 0.8;
    margin-bottom: 10px;
}
