/* WooCommerce Quick Buy Pro Styles */
.wqbp-quick-buy-container {
    margin: 20px 0;
    text-align: center;
}

.wqbp-quick-buy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.wqbp-quick-buy-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.wqbp-quick-buy-btn:hover:before {
    left: 100%;
}

.wqbp-quick-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    color: white !important;
}

.wqbp-quick-buy-btn:active {
    transform: translateY(-1px);
}

.wqbp-shop-quick-buy {
    width: 100%;
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 14px;
}

.wqbp-quick-buy-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Popup Styles */
.wqbp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wqbp-popup-overlay.wqbp-active {
    display: flex !important;
    opacity: 1;
}

.wqbp-popup-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    animation: wqbpSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@keyframes wqbpSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wqbp-popup-header {   
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.wqbp-close-popup {
    background: #f5f5f5;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
}

.wqbp-close-popup:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.wqbp-popup-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
	background: #e0e0e04a;
}

.wqbp-product-info {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.wqbp-product-image {
    flex-shrink: 0;
}

.wqbp-product-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wqbp-product-details {
    flex: 1;
}

/* Tiêu đề sản phẩm */
.wqbp-product-details h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
}

/* ✅ SKU + Giá + Tình trạng nằm cùng dòng */
.wqbp-product-sku,
.wqbp-product-price,
.wqbp-stock-status {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    margin-bottom: 0 !important;
}

/* SKU */
.wqbp-product-sku {
    color: #6c757d;
    font-size: 13px;
    font-family: monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Giá */
.wqbp-product-price {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

/* Giá hiện tại */
.wqbp-current-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 20px;
}

/* Giá gạch */
.wqbp-original-price {
    color: #999;
    text-decoration: line-through;
    margin-left: 12px;
    font-size: 16px;
}

/* Mã giảm giá */
.wqbp-discount {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
}

/* Tình trạng hàng */
.wqbp-stock-status {
    color: #28a745;
    font-weight: 600;
}

/* Tình trạng in/out stock (màu sắc) */
.wqbp-in-stock {
    color: #28a745;
    font-weight: 600;
}

.wqbp-out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

/* ✅ Số lượng: bỏ nhãn, giữ input - 1 +, đặt bên dưới */
.wqbp-quantity-wrapper {
    display: inline-flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    height: 40px;
    align-items: center;
    margin-top: 10px;
}

/* Nút tăng giảm */
.wqbp-qty-btn {
    width: 40px!important;
    height: 40px!important;
    border: none;
    background-color: transparent!important;
    font-size: 20px!important;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s ease;
}



/* Ô nhập số */
#wqbp-quantity {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    appearance: textfield;
}

#wqbp-quantity:focus {
    outline: none;
}

/* Xoá spinner input number */
#wqbp-quantity::-webkit-inner-spin-button,
#wqbp-quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wqbp-variations h4 {
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
}

.wqbp-variation-item {
    margin-bottom: 16px;
}

.wqbp-variation-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.wqbp-variation-item select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.wqbp-variation-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wqbp-coupon-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    border: 1px solid #f39c12;
}

.wqbp-coupon-section h4 {
    margin: 0 0 16px 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wqbp-coupon-input-group {
    display: flex;
    gap: 8px;
}

.wqbp-coupon-input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #f39c12;
    border-radius: 8px;
    font-size: 14px;
}

.wqbp-coupon-btn {
    background: #f39c12;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wqbp-coupon-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.wqbp-customer-info,
.wqbp-shipping-info,.wqbp-payment,.wqbp-variations {
   margin: 24px 0;
    border: none;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
}

.wqbp-customer-info h4,
.wqbp-shipping-info h4 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.wqbp-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

/* Chiều rộng cho mỗi input group khi có 2-3 cột */
.wqbp-form-row .wqbp-form-group {
    flex: 1 1 33.333%;
    min-width: 200px;
}

/* Nhóm chỉ 1 input thì full width */
.wqbp-form-group select,
.wqbp-form-group input,
.wqbp-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* Label */
.wqbp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #212529;
	margin-top:6px;
}
#wqbp-note {
	margin-top:8px!important;
    height: 5.2em !important;
    min-height: 5.2em !important;
    resize: none !important;
    overflow: auto;
}

