/* =======================
   1. Nút đặt hàng cố định (Image Button)
   ======================= */
/* Wrapper cho nút đặt hàng hình ảnh */
.oat-fixed-order-wrapper {
    position: fixed;
    bottom: calc(95px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    z-index: 1000;
}

/* Nút đặt hàng dạng hình ảnh */
.oat-fixed-order-img-btn {
    cursor: pointer;
    display: block;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    animation: oat-order-btn-pulse 2s infinite;
}

.oat-fixed-order-img-btn:hover {
    transform: scale(1.08);
    animation: none;
}

.oat-fixed-order-img-btn:active {
    transform: scale(0.95);
}

/* Hình ảnh nút đặt hàng */
.oat-order-btn-img {
    display: block;
    width: 55px;
    height: auto;
    background: transparent !important;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
    transition: filter 0.3s ease;
}

.oat-fixed-order-img-btn:hover .oat-order-btn-img {
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.35));
}

/* Animation pulse cho nút */
@keyframes oat-order-btn-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Focus state cho accessibility */
.oat-fixed-order-img-btn:focus {
    outline: none;
    background: transparent !important;
}

/* Scoped compatibility override cho nút ID cũ */
.oat-fixed-order-wrapper #fixed-order-button {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.oat-fixed-order-wrapper #fixed-order-button:hover,
.oat-fixed-order-wrapper #fixed-order-button:active {
    background: transparent !important;
    box-shadow: none !important;
}

.oat-fixed-order-wrapper #fixed-order-button::before,
.oat-fixed-order-wrapper #fixed-order-button::after {
    display: none !important;
}

/* =======================
   2. Popup chung (Mobile-first với dvh + safe-area)
   ======================= */
.order-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}
.order-popup-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.order-popup-content {
    /* Centered positioning */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    /* Width responsive với safe-area */
    width: min(calc(100vw - 24px - 2 * env(safe-area-inset-left, 0px)), 550px);
    /* Max-height với safe-area - chiếm 85-95% viewport, không bao giờ tràn */
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    /* REMOVED min-height: 980px - đây là nguyên nhân popup tràn mobile! */
    /* Flexbox column layout để header sticky và body cuộn */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Container không cuộn, chỉ body bên trong cuộn */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: auto;
}
.order-popup-header-fixed {
    /* Header cố định — không cuộn, không bị content chui vào */
    position: relative;
    z-index: 10;
    background-color: white;
    padding: 15px 20px 10px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0; /* Header không co lại */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.order-popup-header-fixed h2 {
    margin-top: 0;
    margin-bottom: 0;
}
.order-popup-stages-container {
    /* Body cuộn được - chứa form nội dung */
    position: relative;
    z-index: 1;
    padding: 15px 20px 20px 20px;
    flex: 1 1 0;        /* Cho phép co lại, không chiếm quá container */
    min-height: 0;      /* QUAN TRỌNG: cho flex item scroll đúng, tránh tràn */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
/* Footer cố định — CTA Gửi đơn hàng */
.order-popup-footer {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    padding: 12px 20px;
    padding-bottom: max(12px, calc(12px + env(safe-area-inset-bottom, 0px)));
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.order-popup-footer .oat-btn-submit {
    width: 100%;
}
.order-popup-close {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 28px;
    height: 28px;
    font-size: 28px;
    font-weight: normal;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.order-popup-close:hover {
    color: #333;
}

/* =======================
   3. Form trong popup
   ======================= */
.order-popup .form-group {
    margin-bottom: 15px;
}
.order-popup label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.order-popup input[type="text"],
.order-popup input[type="email"],
.order-popup input[type="number"],
.order-popup textarea,
.order-popup select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.order-popup textarea {
    min-height: 60px;
    resize: vertical;
}
.order-popup button[type="button"]#submit-order {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.order-popup button[type="button"]#submit-order:hover {
    background-color: #218838;
}

/* Ghi chú đơn hàng có thể thu gọn */
#oat-note-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    user-select: none;
}
#oat-note-toggle label {
    margin-bottom: 0 !important;
    margin-right: 5px !important;
}
.oat-toggle-icon {
    color: #0073aa;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1;
}

/* Thông tin giao hàng có thể thu gọn */
#oat-shipping-info-toggle {
    user-select: none;
    transition: background-color 0.2s ease;
}
#oat-shipping-info-toggle:hover {
    background-color: #eaf5ff !important;
}
#oat-shipping-info-fields,
#oat-shipping-info-summary { }
#oat-shipping-info-summary p {
    margin: 5px 0;
    line-height: 1.5;
}
#oat-shipping-info-summary p strong {
    font-weight: 600;
}
.form-group span.required {
    color: red;
    margin-left: 2px;
}

/* Phương thức thanh toán */
.oat-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.oat-payment-method-card {
    border: none;
    border-radius: 0;
    padding: 10px 2px;
    cursor: pointer;
}
.oat-payment-method-card + .oat-payment-method-card {
    border-top: 1px solid #f0f0f0;
}
.oat-payment-method-card:hover {
    background: transparent;
}
.oat-payment-method-card.selected {
    border-color: #f0f0f0;
    background: transparent;
    box-shadow: none;
}
.oat-payment-methods label.oat-payment-method-option {
    display: flex;
    align-items: flex-start;
    margin: 0;
    cursor: pointer;
    gap: 10px;
}
.oat-payment-methods input[type="radio"] {
    margin: 3px 0 0;
    flex-shrink: 0;
    accent-color: #2e7d32;
    width: 15px;
    height: 15px;
}
/* Body: chứa label + caption */
.oat-payment-method-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.oat-payment-method-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-weight: 600;
    font-size: .93em;
    line-height: 1.35;
    color: #1a1a1a;
}
/* Tag "Đề xuất" */
.oat-payment-tag {
    display: inline-block;
    font-size: .7em;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.6;
    vertical-align: middle;
    white-space: nowrap;
}
.oat-payment-tag--hot {
    color: #2e7d32;
    background: #e8f5e9;
}
/* Caption phụ */
.oat-payment-caption {
    font-size: .78em;
    line-height: 1.4;
    color: #888;
    font-weight: 400;
}

/* Disclaimer / Lưu ý pháp lý */
.oat-disclaimer {
    margin-top: 4px;
    margin-bottom: 2px;
}
.oat-disclaimer p {
    font-size: .75em;
    line-height: 1.5;
    color: #999;
    margin: 0;
    text-align: left;
}

/* Quà tặng chuyển khoản */
.oat-gift-incentive {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0faf0;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    animation: oatGiftFadeIn .3s ease;
}
.oat-gift-incentive:hover {
    background: #e0f5e0;
    border-color: #a5d6a7;
}
.oat-gift-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}
.oat-gift-text {
    font-size: .88em;
    line-height: 1.4;
    color: #2e7d32;
    font-weight: 600;
}
@keyframes oatGiftFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Quà tặng đã chọn */
.oat-gift-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #e8f5e9;
    border: 1.5px solid #66bb6a;
    border-radius: 8px;
    animation: oatGiftFadeIn .3s ease;
}
.oat-gift-selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.oat-gift-selected-info > img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #c8e6c9;
    flex-shrink: 0;
}
.oat-gift-selected-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.oat-gift-selected-name {
    font-size: .88em;
    font-weight: 600;
    color: #2e7d32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oat-gift-selected-price {
    font-size: .8em;
    color: #558b2f;
}
.oat-gift-icon-inline {
    font-size: 1em;
    margin-right: 2px;
}
.oat-gift-change-btn {
    flex-shrink: 0;
    padding: 5px 12px;
    font-size: .8em;
    font-weight: 600;
    color: #2e7d32;
    background: #fff;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}
.oat-gift-change-btn:hover {
    background: #f0faf0;
}

/* Gift selector modal (extends product selector) */
.oat-gift-selector-header {
    background: #e8f5e9 !important;
}
.oat-gift-selector-header h3 {
    color: #2e7d32 !important;
}
.oat-gift-card .oat-psc-select-btn {
    background: #43a047 !important;
}
.oat-gift-card .oat-psc-select-btn:hover {
    background: #388e3c !important;
}
.oat-gift-card-selected {
    border-color: #43a047 !important;
    background: #f1f8e9 !important;
}
.oat-gift-card .oat-psc-price {
    color: #2e7d32 !important;
}

/* "Xem thêm" link in bank transfer caption */
.oat-bank-benefit-link {
    color: #1976d2;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.oat-bank-benefit-link:hover {
    text-decoration: underline;
}

/* Bank benefit popup */
.oat-bank-benefit-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
}
.oat-bank-benefit-header h3 {
    color: #1565c0 !important;
}
.oat-bank-benefit-body {
    padding: 16px !important;
}
.oat-bank-benefit-reasons {
    margin-bottom: 18px;
}
.oat-bank-benefit-reasons h4,
.oat-bank-benefit-gifts h4 {
    font-size: .95em;
    font-weight: 700;
    margin: 0 0 10px;
    color: #333;
}
.oat-bank-benefit-reasons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.oat-bank-benefit-reasons li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f5f9ff;
    border-radius: 8px;
    font-size: .88em;
    color: #444;
    line-height: 1.5;
}
.oat-bank-benefit-desc {
    font-size: .88em;
    color: #555;
    line-height: 1.55;
    margin: 0 0 8px;
}
.oat-bank-benefit-perks {
    list-style: none;
    padding: 0;
    margin: 0;
}
.oat-bank-benefit-perks li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f5f9ff;
    border-radius: 8px;
    border-left: 3px solid #1976d2;
}
.oat-bank-benefit-perks li strong {
    font-size: .9em;
    color: #1565c0;
}
.oat-bank-benefit-perks li span {
    font-size: .82em;
    color: #555;
    line-height: 1.5;
}
.oat-bank-benefit-intro {
    font-size: .9em;
    color: #333;
    line-height: 1.6;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 3px solid #43a047;
}
.oat-bank-benefit-intro strong {
    color: #2e7d32;
}
.oat-bank-benefit-note {
    font-size: .85em;
    color: #555;
    text-align: center;
    line-height: 1.55;
    margin: 16px 0 0;
    padding: 12px 12px 0;
    border-top: 1px dashed #e0e0e0;
}
.oat-bank-benefit-gift-card {
    pointer-events: none;
}
.oat-bank-benefit-gift-card .oat-psc-price {
    color: #2e7d32 !important;
}

/* Receipt gift display (same layout as product, green accent) */
.receipt-gift-item {
    border-left-color: #43a047 !important;
    margin-top: 8px;
}
.receipt-gift-item .receipt-gift-tag {
    background: #e8f5e9;
    color: #2e7d32;
}
.receipt-gift-item .receipt-gift-price {
    color: #2e7d32 !important;
}
.receipt-gift-note {
    font-size: .75em;
    color: #888;
    font-style: italic;
    margin-top: 3px;
}

/* Mobile: gift card layout optimization */
@media (max-width: 600px) {
    .receipt-gift-item {
        align-items: center;
        padding: 10px 12px;
        gap: 12px;
    }
    .receipt-gift-item .receipt-product-name {
        font-size: 0.85em;
        margin-bottom: 5px;
        line-height: 1.35;
    }
}

/* Đặt cọc COD */
.cod-deposit-options { }
.cod-deposit-options label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.oat-deposit-choices label.oat-deposit-choice {
    display: inline-flex;
    align-items: baseline;
    margin-right: 15px;
    margin-bottom: 5px;
    cursor: pointer;
}
.oat-deposit-choices input[type="radio"] {
    margin-right: 5px;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Thông báo tiết kiệm */
#oat-savings-display {
    display: none;
    margin-top: 10px;
    padding: 10px 15px;
    border: 1px dashed #c00;
    border-radius: 4px;
    background-color: #ffebee;
    text-align: center;
}
#oat-savings-display span {
    font-weight: 500;
    color: #c00;
    font-size: 0.95em;
}

/* Thời gian giao hàng dự kiến */
.oat-estimated-delivery-display {
    margin-top: 10px;
    padding: 10px 15px;
    border: 1px dashed #008000;
    border-radius: 4px;
    background-color: #e8f5e9;
    text-align: center;
    color: #1b5e20;
    font-weight: 500;
}

/* Sticker chính sách sản phẩm */
.oat-product-policies {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.oat-policy-sticker {
    display: inline-block;
    padding: 2px 5px;
    font-size: 0.68em;
    border-radius: 4px;
    border: 1px solid;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.2s ease-in-out;
}
.oat-policy-sticker:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.oat-policy-warranty { background-color: #fff3e0; border-color: #ffb74d; color: #f57c00; }
.oat-policy-warranty::before { content: "🛡️"; margin-right: 2px; }
.oat-policy-authentic { background-color: #e8f5e9; border-color: #81c784; color: #388e3c; }
.oat-policy-authentic::before { content: "✅"; margin-right: 2px; }

/* Thông báo giới hạn số lượng */
#oat-qty-limit-notice {
    color: #c00;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Căn chỉnh ô số lượng */
.order-popup .product-section .quantity-wrapper {
    align-items: baseline !important;
}
.order-popup .product-section .quantity-wrapper label[for="product_qty_1"] {
    display: inline;
}
.order-popup .product-section .quantity-wrapper input#product_qty_1 {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: normal;
}

/* =======================
   3b. Phương thức vận chuyển
   ======================= */
.oat-shipping-method-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.oat-shipping-method-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.oat-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oat-shipping-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.oat-shipping-option:hover {
    border-color: #1565c0;
    background: #f8fbff;
}

.oat-shipping-option input[type="radio"] {
    display: none;
}

.oat-shipping-option input[type="radio"]:checked + .oat-shipping-option-content {
    color: #1565c0;
}

.oat-shipping-option:has(input[type="radio"]:checked) {
    border-color: #1565c0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.15);
}

.oat-shipping-option:has(input[type="radio"]:checked) .oat-shipping-option-check {
    opacity: 1;
    transform: scale(1);
}

.oat-shipping-option-content {
    flex: 1;
}

.oat-shipping-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.oat-shipping-option-name {
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
}

.oat-shipping-option-price {
    font-weight: 700;
    font-size: 0.95em;
    color: #c62828;
}

.oat-shipping-option-price.oat-free {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.oat-shipping-option-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: #666;
}

.oat-shipping-option-time svg {
    color: #888;
}

.oat-shipping-option-check {
    width: 24px;
    height: 24px;
    background: #1565c0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

/* =======================
   4. Voucher styles
   ======================= */
#oat-voucher-lookup-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 20px 5px 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
#oat-voucher-lookup-section label[for="oat-voucher-phone"] {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
#oat-voucher-phone {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
#oat-voucher-phone:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#oat-find-voucher-button.button.oat-secondary-button {
    background-color: #0073aa;
    color: white;
    padding-top: 10px;
    line-height: 1.4;
    padding-bottom: 10px;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 10px;
    transition: background-color 0.2s ease-in-out;
}
#oat-find-voucher-button.button.oat-secondary-button:hover {
    background-color: #005a87;
}
#oat-show-voucher-lookup.button {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.4;
}

/* Danh sách voucher */
#oat-voucher-list-container {
    background-color: #f7f9fc;
    border-radius: 4px;
    padding: 5px 10px;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 5px;
}
.oat-voucher-item {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #ff8fab, #e94057, #f9d423);
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.oat-voucher-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px) scale(1.01);
}
.oat-voucher-item:last-child {
    margin-bottom: 0;
}
.oat-voucher-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 10px;
    border-right: 1px dashed #ddd;
    min-width: 70px;
    text-align: center;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}
.oat-voucher-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-bottom: 4px;
}
.oat-voucher-icon span {
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
}
.oat-voucher-details {
    flex-grow: 1;
    padding: 12px 15px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    color: #333;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}
.oat-voucher-main-info {
    margin-bottom: 4px;
}
.oat-voucher-info-line {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}
.oat-voucher-label {
    color: #555;
    margin-right: 6px;
    font-size: 0.8em;
    font-weight: 500;
}
.oat-voucher-value {
    font-weight: 500;
}
.oat-voucher-code-value {
    font-weight: bold;
    background-color: #fff;
    color: #333;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.95em;
    display: inline-block;
    border: 1px solid #f0f0f0;
}
.oat-voucher-description-text {
    background-color: #fff;
    color: #28a745;
    padding: 3px 7px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.45;
    border: 1px solid #f0f0f0;
}
.oat-voucher-expiry-container {
    margin-top: auto;
}
.oat-voucher-expiry {
    font-size: 0.75em;
    color: #D32F2F;
    display: block;
    background-color: #fff0f0;
    border: 1px solid #ffcdd2;
    padding: 4px 8px;
    font-weight: bold;
    text-align: left;
    margin-top: 5px;
    border-radius: 4px;
}
.oat-voucher-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: right;
}
.order-popup .oat-voucher-details .oat-voucher-actions .oat-use-voucher-button {
    background-color: #28a745 !important;
    color: #fff !important;
    border: 1px solid #218838 !important;
    padding: 0 10px !important;
    text-align: center;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85em;
    height: 28px !important;
    line-height: 28px !important;
    border-radius: 14px !important;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.order-popup .oat-voucher-details .oat-voucher-actions .oat-use-voucher-button:hover {
    background-color: #218838 !important;
    color: #fff !important;
    border-color: #1e7e34 !important;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}
.order-popup .oat-voucher-details .oat-voucher-actions .oat-use-voucher-button:active {
    transform: scale(0.98);
}

/* =======================
   4b. Unified Voucher Card (dvl-voucher-card)
   ======================= */
.oat-voucher-card-new {
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 15px;
    padding: 0;
    cursor: pointer;
}
.oat-voucher-card-new:hover {
    transform: none;
    box-shadow: none;
}
/* Unified card inside OAT popup */
.oat-voucher-card-new .dvl-voucher-card {
    border-radius: 16px;
    overflow: visible;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
}
.oat-voucher-card-new .dvl-voucher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
}
/* Header (Deal) */
.oat-voucher-card-new .dvl-voucher-card__header {
    position: relative;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.04) 0%, rgba(229, 62, 62, 0.01) 100%);
    padding: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}
.oat-voucher-card-new .dvl-voucher-card--hot .dvl-voucher-card__header {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.08) 0%, rgba(255, 107, 53, 0.04) 100%);
}
.oat-voucher-card-new .dvl-voucher-card--grand .dvl-voucher-card__header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(229, 62, 62, 0.08) 100%);
}
/* Badge (top-right pill) */
.oat-voucher-card-new .dvl-voucher-card__badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    background: linear-gradient(135deg, #ff6b35, #ff3d00);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.18rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 61, 0, 0.3);
    animation: oatBadgePulse 2s ease-in-out infinite alternate;
    line-height: 1.2;
    display: inline-block;
}
.oat-voucher-card-new .dvl-voucher-card--grand .dvl-voucher-card__badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}
@keyframes oatBadgePulse {
    0%   { transform: scale(1); }
    100% { transform: scale(1.04); box-shadow: 0 3px 14px rgba(255, 61, 0, 0.45); }
}
.oat-voucher-card-new .dvl-voucher-card__deal {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    padding: 1.2rem 1rem 0.5rem;
}
.oat-voucher-card-new .dvl-voucher-card__percent-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.oat-voucher-card-new .dvl-voucher-card__percent {
    font-size: 2rem;
    font-weight: 900;
    color: #e53e3e;
    line-height: 1;
    letter-spacing: -0.03em;
}
.oat-voucher-card-new .dvl-voucher-card--grand .dvl-voucher-card__percent {
    background: linear-gradient(135deg, #ff6b35, #e53e3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Tear separator */
.oat-voucher-card-new .dvl-voucher-card__tear {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
}
.oat-voucher-card-new .dvl-voucher-card__notch {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f5f5f5;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.oat-voucher-card-new .dvl-voucher-card__notch--left {
    left: -10px;
    box-shadow: inset -2px 0 4px rgba(0,0,0,0.06);
}
.oat-voucher-card-new .dvl-voucher-card__notch--right {
    right: -10px;
    box-shadow: inset 2px 0 4px rgba(0,0,0,0.06);
}
.oat-voucher-card-new .dvl-voucher-card__dashed {
    flex: 1;
    height: 0;
    border-top: 2px dashed rgba(229, 62, 62, 0.18);
    margin: 0 14px;
}
/* Info + CTA */
.oat-voucher-card-new .dvl-voucher-card__info {
    padding: 0.65rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.oat-voucher-card-new .dvl-voucher-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.4;
}
.oat-voucher-card-new .dvl-voucher-card__icon {
    flex-shrink: 0;
    opacity: 0.5;
}
.oat-voucher-card-new .dvl-voucher-card__meta--code {
    font-weight: 700;
    color: #e53e3e;
}
.oat-voucher-card-new .dvl-voucher-card__meta--code .dvl-voucher-card__icon {
    opacity: 0.7;
    color: #e53e3e;
}
.oat-voucher-card-new .dvl-voucher-card__meta--countdown {
    color: #276749;
    font-weight: 700;
    font-size: 0.72rem;
    background: rgba(56, 161, 105, 0.08);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(56, 161, 105, 0.15);
    letter-spacing: 0.01em;
}
.oat-voucher-card-new .dvl-voucher-card__meta--countdown .dvl-voucher-card__icon {
    opacity: 0.75;
    color: #38a169;
}
.oat-voucher-card-new .dvl-voucher-card__meta--phone {
    color: #38a169;
    font-weight: 600;
}
/* CTA button */
.oat-voucher-card-new .dvl-voucher-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: auto;
    padding: 0.7rem 1rem;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    min-height: 44px;
    letter-spacing: 0.01em;
}
.oat-voucher-card-new .dvl-voucher-card__cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.3);
}
.oat-voucher-card-new .dvl-voucher-card--grand .dvl-voucher-card__cta {
    background: linear-gradient(135deg, #ff6b35, #e53e3e);
}
/* Expired state */
.oat-voucher-card-new .dvl-voucher-card--expired {
    opacity: 0.5;
    filter: saturate(0.4) brightness(0.95);
    pointer-events: none;
}
.oat-voucher-card-new .dvl-voucher-card--expired::after {
    content: 'HẾT HẠN';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 900;
    color: rgba(255,255,255,0.95);
    background: rgba(220, 53, 69, 0.9);
    padding: 6px 18px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none;
}

#oat-voucher-scroll-indicator {
    text-align: center;
    padding-top: 8px;
    display: none;
}
.oat-scroll-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #0073aa;
    opacity: 0.6;
    vertical-align: middle;
    animation: oatBlinkArrow 1.5s infinite ease-in-out;
}
@keyframes oatBlinkArrow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* =======================
   5. Receipt styles - BILL HÓA ĐƠN CHUYÊN NGHIỆP
   ======================= */
#order-success-receipt {
    text-align: left;
    padding: 0 15px 15px;
}

/* Header thông báo thành công */
.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    border: 1px solid #a5d6a7;
}
.receipt-success-icon-container {
    margin-bottom: 12px;
}
.receipt-success-icon-svg {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: oatFillSuccess 0.4s ease-in-out 0.4s forwards, oatScaleSuccess 0.3s ease-in-out 0.9s both;
}
.receipt-success-icon-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: oatStrokeSuccess 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.receipt-success-icon-checkmark {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    animation: oatStrokeSuccess 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes oatStrokeSuccess {
    100% { stroke-dashoffset: 0; }
}
@keyframes oatScaleSuccess {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes oatFillSuccess {
    100% { box-shadow: inset 0px 0px 0px 30px #4CAF50; }
}
.receipt-header .receipt-title {
    font-size: 1.3em;
    color: #2e7d32;
    margin: 0 0 6px 0;
    font-weight: 700;
}
.receipt-header .receipt-subtitle {
    font-size: 0.9em;
    color: #558b2f;
    margin: 0;
}

/* =======================
   4b. COD Success Block & Notice Block
   ======================= */
.oat-cod-success-block {
    text-align: center;
    padding: 20px 16px 16px;
    margin-bottom: 12px;
}
.oat-cod-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.oat-cod-success-title {
    font-size: 1.2em;
    color: #2e7d32;
    margin: 0 0 8px;
    font-weight: 700;
}
.oat-cod-success-desc {
    font-size: 0.88em;
    color: #424242;
    margin: 0;
    line-height: 1.55;
}

.oat-cod-notice-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    border-left: 4px solid #1976d2;
    margin-bottom: 16px;
}
.oat-cod-notice-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.oat-cod-notice-content {
    flex: 1;
}
.oat-cod-notice-content > strong {
    display: block;
    color: #0d47a1;
    font-size: 0.9em;
    margin-bottom: 4px;
}
.oat-cod-notice-content > p {
    font-size: 0.85em;
    color: #1565c0;
    margin: 0 0 8px;
    line-height: 1.5;
}
.oat-cod-notice-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}
.oat-cod-notice-tips li {
    font-size: 0.82em;
    color: #1976d2;
    padding: 3px 0 3px 18px;
    position: relative;
    line-height: 1.45;
}
.oat-cod-notice-tips li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: #1976d2;
    font-weight: bold;
}

/* Summary total value (red for price) */
.oat-summary-total-value {
    color: #c62828;
    font-weight: 700;
}

/* Thông báo xác minh đơn hàng */
.receipt-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 10px;
    border-left: 4px solid #ff9800;
    margin-bottom: 20px;
}
.receipt-notice-icon {
    font-size: 24px;
    line-height: 1;
}
.receipt-notice-content {
    flex: 1;
}
.receipt-notice-content > strong {
    display: block;
    color: #e65100;
    font-size: 0.9em;
    margin-bottom: 4px;
}
.receipt-notice-content p {
    margin: 0;
    font-size: 0.85em;
    color: #bf360c;
    line-height: 1.5;
}
.receipt-notice-content p strong {
    display: inline;
    color: inherit;
    font-size: inherit;
    margin-bottom: 0;
}

/* Bill hóa đơn chi tiết */
.receipt-bill {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

/* Header bill */
.receipt-bill-header {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
    padding: 16px;
    text-align: center;
}
.receipt-bill-logo {
    font-size: 28px;
    margin-bottom: 6px;
}
.receipt-bill-title {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.receipt-bill-code {
    font-size: 0.85em;
    opacity: 0.9;
}
.receipt-bill-code span {
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Section trong bill */
.receipt-bill-section {
    padding: 14px 16px;
    border-bottom: 1px dashed #e0e0e0;
}
.receipt-bill-section:last-of-type {
    border-bottom: none;
}
.receipt-bill-section-title {
    font-size: 0.75em;
    font-weight: 700;
    color: #1565c0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e3f2fd;
}

/* Row trong bill */
.receipt-bill-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 0.85em;
}
.receipt-bill-label {
    color: #616161;
    flex-shrink: 0;
}
.receipt-bill-value {
    color: #212121;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

/* Products trong bill */
.receipt-bill-products {
    background: #fafafa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

/* Product item với ảnh */
.receipt-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid #1565c0;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.receipt-product-item:last-child {
    margin-bottom: 0;
}
.receipt-product-item:hover {
    background: #f8f9fa;
    transform: translateX(3px);
}
.receipt-product-image {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}
.receipt-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.receipt-product-info {
    flex: 1;
    min-width: 0;
}
.receipt-product-name {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}
.receipt-product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.receipt-product-qty {
    font-size: 0.8em;
    color: #666;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 10px;
}
.receipt-product-price {
    font-size: 0.85em;
    font-weight: 600;
    color: #1565c0;
}

/* Legacy: cho trường hợp không có ảnh */
#receipt-product-items p {
    margin: 0 0 8px 0;
    padding: 8px 10px;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #1565c0;
    font-size: 0.85em;
    line-height: 1.5;
}
#receipt-product-items p:last-child {
    margin-bottom: 0;
}

/* Summary thanh toán */
.receipt-bill-summary .receipt-bill-subtotal {
    border-top: 1px dashed #bdbdbd;
    padding-top: 10px;
    margin-top: 5px;
}
.receipt-bill-total {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    margin: 10px -16px -14px -16px;
    padding: 12px 16px !important;
    border-top: 2px solid #c62828;
}
.receipt-bill-total .receipt-bill-label {
    color: #c62828;
    font-weight: 700;
}
.receipt-total-value {
    color: #c62828 !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
}
.receipt-discount {
    color: #c62828;
}
.receipt-free {
    color: #2e7d32;
    font-weight: 600;
}

/* Payment section */
.receipt-bill-payment-method {
    background: #e3f2fd;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #1565c0;
    text-align: center;
    margin-bottom: 12px;
}

/* =====================================================
   Bank Transfer QR Payment Block
   ===================================================== */

/* Container chính */
#receipt-bank-transfer-info {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    animation: oat-bank-card-appear 0.4s ease-out;
}
@keyframes oat-bank-card-appear {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Khối 1: Header thành công nhỏ gọn */
.oat-qr-success-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-bottom: 1px solid #a5d6a7;
}
.oat-qr-success-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}
.oat-qr-success-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.oat-qr-success-text strong {
    color: #2e7d32;
    font-size: 0.95em;
}
.oat-qr-success-text span {
    color: #558b2f;
    font-size: 0.8em;
}

/* Khối 2: Số tiền nổi bật */
.oat-qr-amount-block {
    text-align: center;
    padding: 18px 16px 14px;
    position: relative;
}
.oat-qr-amount-label {
    font-size: 0.78em;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.oat-qr-amount-value {
    font-size: 1.65em;
    font-weight: 800;
    color: #c62828;
    line-height: 1.2;
}
.oat-qr-amount-value strong {
    color: inherit;
}
.oat-qr-amount-block .oat-copy-btn {
    margin-top: 8px;
}

/* Khối 3: Mã QR */
.oat-qr-code-block {
    text-align: center;
    padding: 0 16px 16px;
}
.oat-qr-image-wrapper {
    position: relative;
    display: inline-block;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 8px;
    max-width: 260px;
    width: 100%;
}
.oat-qr-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.oat-qr-loading {
    padding: 60px 20px;
    color: #9e9e9e;
    font-size: 0.85em;
}
.oat-qr-error {
    padding: 20px;
    color: #e65100;
    font-size: 0.82em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.oat-qr-hint {
    margin: 10px 0 0;
    color: #757575;
    font-size: 0.78em;
}

/* Khối 4: Nội dung CK */
.oat-qr-transfer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.oat-qr-transfer-label {
    font-size: 0.82em;
    color: #757575;
}
.oat-qr-transfer-content code {
    background: #fff3e0;
    color: #bf360c;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.92em;
    border: 1px solid #ffe0b2;
}

/* Khối 5: Toggle chi tiết */
.oat-qr-details-toggle {
    padding: 0 16px;
}
.oat-qr-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    padding: 12px 0;
    background: none;
    border: none;
    color: #1976d2;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
.oat-qr-toggle-btn:hover {
    color: #0d47a1;
}
.oat-qr-chevron {
    transition: transform 0.2s;
}
.oat-qr-chevron.is-open {
    transform: rotate(180deg);
}

/* Panel chi tiết */
.oat-qr-details-panel {
    padding: 0 16px 12px;
}
.oat-qr-details-panel .receipt-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 0.83em;
    border-bottom: 1px dotted #e0e0e0;
}
.oat-qr-details-panel .receipt-bank-row:last-child {
    border-bottom: none;
}
.oat-qr-details-panel .receipt-bank-row span {
    color: #757575;
}
.oat-qr-details-panel .receipt-bank-row strong {
    color: #212121;
    font-weight: 600;
}
.oat-qr-row-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Copy buttons */
.oat-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #616161;
    font-size: 0.78em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.oat-copy-btn:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}
.oat-copy-btn.oat-copied {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}
.oat-copy-btn-sm {
    padding: 2px 6px;
    font-size: 0.72em;
}

/* Ghi chú cuối */
.oat-qr-note {
    padding: 10px 16px;
    text-align: center;
}
.oat-qr-note small {
    color: #9e9e9e;
    font-size: 0.72em;
    line-height: 1.4;
}

/* Footer bill */
.receipt-bill-footer {
    background: #f5f5f5;
    padding: 14px;
    text-align: center;
    border-top: 2px dashed #e0e0e0;
}
.receipt-bill-footer p {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #424242;
    font-size: 0.9em;
}
.receipt-bill-footer small {
    color: #757575;
    font-size: 0.8em;
}

/* Confirm section */
.receipt-confirm-section {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

/* Khoảng cách giữa block "Xác nhận chuyển khoản" và phần hóa đơn bên dưới */
#payment-confirmation-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}
.receipt-confirm-section h4 {
    margin: 0 0 12px 0;
    color: #f57f17;
    font-size: 1em;
}
.receipt-confirm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9em;
    color: #5d4037;
}
.receipt-confirm-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f57f17;
}
.receipt-confirm-note {
    font-size: 0.8em;
    color: #8d6e63;
    margin: 10px 0 14px;
    font-style: italic;
}
.receipt-confirm-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.receipt-confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,152,0,0.4);
}
.receipt-confirm-btn:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

/* Action buttons */
.receipt-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.receipt-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.receipt-btn span {
    font-size: 1.1em;
}
.receipt-btn-secondary {
    background: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
}
.receipt-btn-secondary:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
}
.receipt-btn-primary {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
}
.receipt-btn-primary:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21,101,192,0.4);
}

/* =======================
   5b. Step Indicator (Thanh tiến trình 3 bước)
   ======================= */
.oat-bank-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 12px;
    margin-bottom: 12px;
}
.oat-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.oat-step span {
    font-size: 0.72em;
    color: #9e9e9e;
    white-space: nowrap;
}
.oat-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 700;
    background: #e0e0e0;
    color: #9e9e9e;
    transition: all 0.3s ease;
}
.oat-step.is-active .oat-step-circle {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #fff;
    box-shadow: 0 2px 8px rgba(25,118,210,0.3);
}
.oat-step.is-active span {
    color: #1565c0;
    font-weight: 600;
}
.oat-step.is-done .oat-step-circle {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff;
    box-shadow: 0 2px 8px rgba(46,125,50,0.3);
}
.oat-step.is-done span {
    color: #2e7d32;
    font-weight: 500;
}
.oat-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    min-width: 30px;
    margin: 0 6px;
    margin-bottom: 18px;
    transition: background 0.3s ease;
}
.oat-step-line.is-active {
    background: linear-gradient(90deg, #43a047, #1976d2);
}
.oat-step-line.is-done {
    background: #43a047;
}

/* =======================
   5c. Order Summary Bar (Thông tin đơn hàng tóm tắt)
   ======================= */
.oat-order-summary-bar {
    background: #f5f9ff;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.oat-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.85em;
}
.oat-summary-row span {
    color: #616161;
}
.oat-summary-row strong {
    color: #212121;
}
.oat-summary-status-badge {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.8em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #ffe0b2;
}

/* =======================
   6. Phase 3: Waiting for Admin Confirmation
   ======================= */
#phase3-waiting-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    background-color: transparent;
    border-radius: 8px;
}

/* Phase 3 container */
.phase3-container {
    width: 100%;
    padding: 24px 16px;
    text-align: center;
}

/* Phase 3 step indicator override */
.oat-bank-steps--phase3 {
    margin-bottom: 20px;
}

/* Phase 3 icon */
.phase3-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(46,125,50,0.3);
}

/* Phase 3 title */
.phase3-title {
    font-size: 1.25em;
    color: #2e7d32;
    margin: 0 0 16px;
    font-weight: 700;
}

/* Phase 3 order info */
.phase3-order-info {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    text-align: left;
}
.phase3-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.88em;
}
.phase3-order-row span {
    color: #616161;
}
.phase3-order-row strong {
    color: #212121;
}
.phase3-amount-value {
    color: #c62828 !important;
    font-weight: 700;
}
.phase3-status-badge {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.78em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #ffe0b2;
}

/* Phase 3 message box */
.phase3-message-box {
    background: #fff;
    border-left: 4px solid #43a047;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.phase3-message-box p {
    margin: 0 0 6px;
    font-size: 0.88em;
    color: #424242;
    line-height: 1.5;
}
.phase3-message-box p:last-child {
    margin-bottom: 0;
}

/* Phase 3 info block */
.phase3-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.phase3-info-time {
    margin: 0 0 6px;
    font-size: 0.88em;
    color: #1565c0;
}
.phase3-info-time strong {
    color: #0d47a1;
}
.phase3-info-hint {
    margin: 0;
    font-size: 0.82em;
    color: #1976d2;
    line-height: 1.5;
}

/* Phase 3 buttons */
.phase3-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.phase3-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.phase3-btn-primary {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: #fff;
}
.phase3-btn-primary:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21,101,192,0.4);
}
.phase3-btn-secondary {
    background: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
}
.phase3-btn-secondary:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
}

/* Phase 3 loading area */
.phase3-countdown {
    font-size: 1.8em;
    font-weight: bold;
    color: #4CAF50;
    margin: 0 0 10px;
    line-height: 1.2;
}
.phase3-status-text {
    font-size: 0.92em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.oat-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50 !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: oatSpin 1.2s linear infinite;
    margin: 20px auto 25px;
}
@keyframes oatSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#phase3-countdown-timer {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
#phase3-status-text {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
#phase3-status-text strong {
    font-weight: 600;
}
#phase3-waiting-confirmation p small {
    font-size: 0.9em;
    color: #777;
    line-height: 1.5;
}
#phase3-status-text .payment-confirmed-message {
    color: #28a745;
    font-weight: bold;
}
#phase3-status-text .payment-not-received-message {
    color: #dc3545;
    font-weight: bold;
}
#phase3-status-text .payment-confirmed-message::before,
#phase3-status-text .payment-not-received-message::before {
    font-family: "dashicons";
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}
#phase3-status-text .payment-confirmed-message::before {
    content: "\f147";
}
#phase3-status-text .payment-not-received-message::before {
    content: "\f158";
}
#phase3-waiting-confirmation.status-updated #phase3-countdown-timer,
#phase3-waiting-confirmation.status-updated .oat-spinner {
    display: none;
}

/* Thông báo CHƯA NHẬN ĐƯỢC Thanh Toán */
#phase3-status-text .payment-not-received-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff9e6;
    border: 1px solid #ffecb3;
    border-left: 5px solid #ffc107;
    padding: 25px 30px;
    border-radius: 8px;
    color: #856404;
    line-height: 1.6;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}
#phase3-status-text .payment-not-received-message-content .payment-not-received-icon {
    margin-bottom: 15px;
}
#phase3-status-text .payment-not-received-message-content .payment-not-received-icon svg {
    fill: #ffc107;
    width: 48px;
    height: 48px;
}
#phase3-status-text .payment-not-received-message-content .main-notice {
    font-weight: 600;
    font-size: 1.25em;
    color: #721c24;
    margin-bottom: 8px;
    display: block;
}
#phase3-status-text .payment-not-received-message .main-notice::before,
#phase3-status-text .payment-not-received-message-content .main-notice::before {
    content: none;
}
#phase3-status-text .payment-not-received-message-content .instructions-intro {
    display: block;
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #856404;
    text-align: left;
}
#phase3-status-text .payment-not-received-message-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}
#phase3-status-text .payment-not-received-message-content ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.9em;
    color: #525252;
}
#phase3-status-text .payment-not-received-message-content ul li:last-child {
    margin-bottom: 0;
}
#phase3-status-text .payment-not-received-message-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    color: #ffc107;
    font-weight: bold;
    font-size: 1.1em;
    width: 8px;
    height: 8px;
    background-color: #ffc107;
    border-radius: 50%;
    transform: translateY(-50%);
}
#phase3-status-text .payment-not-received-message-content ul li strong {
    color: #333;
    font-weight: 600;
}
#phase3-status-text .payment-not-received-message-content ul li .phone-number-link {
    display: inline-block;
    background-color: #0073aa;
    color: white !important;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
#phase3-status-text .payment-not-received-message ul li .phone-number:hover {
    text-decoration: underline;
}
#phase3-status-text .order-code-info {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #777;
    text-align: center;
}

/* Thông báo Thanh Toán ĐÃ ĐƯỢC Xác Nhận */
#phase3-status-text .payment-confirmed-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-left: 5px solid #4CAF50;
    padding: 25px 30px;
    border-radius: 8px;
    color: #2e7d32;
    line-height: 1.6;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}
#phase3-status-text .payment-confirmed-message-content .payment-confirmed-icon {
    margin-bottom: 15px;
}
#phase3-status-text .payment-confirmed-message-content .payment-confirmed-icon svg {
    fill: #4CAF50;
    width: 48px;
    height: 48px;
}
#phase3-status-text .payment-confirmed-message-content .main-notice {
    font-weight: 600;
    font-size: 1.25em;
    color: #1b5e20;
    margin-bottom: 8px;
    display: block;
}
#phase3-status-text .payment-confirmed-message-content .details {
    font-size: 0.95em;
    color: #388e3c;
    display: block;
    margin-bottom: 5px;
}
#phase3-status-text .payment-confirmed-message::before {
    content: none;
}

/* =======================
   7. Responsive - Mobile Bottom Sheet
   ======================= */

/* Desktop / large screens: tận dụng chiều cao viewport */
@media (min-width: 769px) {
    .order-popup-content {
        height: 85vh;
        height: 85dvh;
        max-height: calc(100vh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
}
@media (min-width: 769px) and (min-height: 900px) {
    .order-popup-content {
        height: 88vh;
        height: 88dvh;
        max-height: calc(100vh - 60px);
        max-height: calc(100dvh - 60px);
    }
}

/* Mobile: Bottom Sheet style (bám đáy màn hình) */
@media (max-width: 768px) {
    /* Popup bám đáy - bottom sheet */
    .order-popup-content {
        /* Bottom-sheet: bám đáy, center bằng margin (không dùng transform) */
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        transform: none; /* Tránh iOS zoom/layout bug */
        
        /* Full-width trên mobile — bottom sheet */
        width: 100%;
        max-width: none;
        
        /* Height auto + max-height: keyboard không gây jump */
        height: auto;
        min-height: 300px;
        max-height: calc(100vh - 20px - env(safe-area-inset-top, 0px));
        max-height: calc(100svh - 20px - env(safe-area-inset-top, 0px));
        max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px));
        
        /* Border-radius: Bo góc trên, không bo dưới (bottom sheet) */
        border-radius: 20px 20px 0 0;
    }
    
    /* Header bottom sheet */
    .order-popup-header-fixed {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    
    /* Body padding */
    .order-popup-stages-container {
        padding-bottom: 20px;
    }
    /* Footer bottom-sheet: không bo góc dưới */
    .order-popup-footer {
        border-radius: 0;
        padding-bottom: max(12px, calc(12px + env(safe-area-inset-bottom, 0px)));
    }
    
    /* iOS input zoom fix: font >=16px */
    .order-popup-content input,
    .order-popup-content select,
    .order-popup-content textarea {
        font-size: 16px !important;
    }
}

/* Mobile small screens: Tối ưu thêm */
@media (max-width: 600px) {
    .order-popup-content {
        width: 100%; /* Full width trên mobile nhỏ */
        border-radius: 16px 16px 0 0; /* Bottom-sheet: bo góc trên */
    }
    .oat-voucher-item {
        flex-direction: column;
        align-items: stretch;
    }
    .oat-voucher-icon {
        width: auto;
        border-right: none;
        border-bottom: 1px dashed #ddd;
        padding: 10px;
        border-top-right-radius: 7px;
        border-bottom-left-radius: 0;
    }
    .oat-voucher-details {
        padding-left: 12px;
        padding-top: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 7px;
    }
    .order-popup-header-fixed {
        padding: 12px 15px 10px 15px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }
    .order-popup-close {
        top: -8px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 32px;
    }
    .order-popup-stages-container {
        padding: 12px 15px 15px 15px;
    }
    .order-popup-footer {
        padding: 10px 15px;
        padding-bottom: max(10px, calc(10px + env(safe-area-inset-bottom, 0px)));
        border-radius: 0;
    }
    .receipt-section {
        padding: 12px;
    }
    #phase3-waiting-confirmation {
        padding: 20px 15px;
    }
}

/* =======================
   PRODUCT SELECTOR MODAL
   ======================= */
.oat-product-selector-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.oat-product-selector-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.oat-product-selector-content {
    position: relative;
    background: #fff;
    width: 550px;
    max-width: calc(95vw - 2 * env(safe-area-inset-left, 0px));
    max-height: calc(85vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(85dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.oat-product-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.oat-product-selector-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}
.oat-product-selector-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    line-height: 1;
}
.oat-product-selector-close:hover {
    color: #333;
}
.oat-product-selector-body {
    overflow-y: auto;
    padding: 16px;
    flex: 1;
}
.oat-product-selector-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.oat-product-selector-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.oat-product-selector-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
    background: #f8fcff;
}
.oat-product-selector-card.oat-oos {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9f9f9;
}
.oat-product-selector-card.oat-oos:hover {
    border-color: #e0e0e0;
    box-shadow: none;
    background: #f9f9f9;
}
.oat-psc-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}
.oat-psc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.oat-psc-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 1.5em;
}
.oat-psc-info {
    flex: 1;
    min-width: 0;
}
.oat-psc-name {
    font-weight: 600;
    font-size: 1em;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oat-psc-desc {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oat-psc-price {
    font-weight: 700;
    color: #c00;
    font-size: 0.95em;
    margin-bottom: 2px;
}
.oat-psc-stock {
    font-size: 0.8em;
    font-weight: 600;
}
.oat-psc-instock {
    color: #28a745;
}
.oat-psc-oos {
    color: #dc3545;
}
.oat-psc-select-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}
.oat-psc-select-btn:hover {
    background: #005a87;
}

/* Responsive product selector */
@media (max-width: 480px) {
    .oat-product-selector-modal {
        align-items: flex-end; /* Chuyển sang Bottom Sheet để không bị mất đầu popup */
    }
    .oat-product-selector-content {
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0; /* Bo góc trên bám đáy */
        height: auto;
        min-height: 300px;
        max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px));
        margin-bottom: 0;
    }
    .oat-psc-image {
        width: 55px;
        height: 55px;
    }
    .oat-psc-select-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* =======================
   8. Landscape mode (mobile xoay ngang)
   ======================= */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .order-popup-content {
        /* Landscape: Quay về center style vì height thấp, bottom sheet không phù hợp */
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        
        width: 85vw;
        max-width: 750px;
        height: auto;
        max-height: calc(95vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(95dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        border-radius: 12px;
    }
    .order-popup-header-fixed {
        padding: 10px 16px 8px 16px;
        border-radius: 12px 12px 0 0;
    }
    .order-popup-header-fixed h2 {
        font-size: 1.1em;
    }
    .order-popup-close {
        width: 28px;
        height: 28px;
        font-size: 28px;
    }
    .order-popup-stages-container {
        padding: 10px 16px 12px 16px;
    }
    .order-popup-footer {
        padding: 8px 16px;
        border-radius: 0 0 12px 12px;
    }
    /* Product selector landscape */
    .oat-product-selector-content {
        width: 80vw;
        max-width: 700px;
        max-height: 90vh;
        max-height: 90dvh;
    }
}