/* input(76,22): run-time error CSS1030: Expected identifier, found ':'
input(76,30): run-time error CSS1025: Expected comma or open brace, found ')' */
/* ===== CHECKOUT PAGE ===== */
.checkout-page-wrap { background: #f8f9fb; padding: 20px 0 60px; }

/* â”€â”€ Breadcrumb spacing â”€â”€ */
@media (min-width: 992px) { .checkout-page-wrap { padding-top: 28px; } }

/* â”€â”€ Page title â”€â”€ */
.checkout-page-title {
    font-size: 20px; font-weight: 800; color: #1e293b;
    margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.checkout-page-title i { color: #f80e63; }

/* â”€â”€ Cards â”€â”€ */
.checkout-form-card {
    background: #fff; border-radius: 14px;
    padding: 22px 24px; box-shadow: 0 2px 10px rgba(0,0,0,.06);
    margin-bottom: 16px;
}
.payment-card {
    background: #fff; border-radius: 14px;
    padding: 20px 24px; box-shadow: 0 2px 10px rgba(0,0,0,.06);
    margin-top: 0;
}
.checkout-section-title {
    font-size: 14px; font-weight: 800; color: #1e293b;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fb;
    display: flex; align-items: center; gap: 7px;
}
.checkout-section-title i { color: #f80e63; }

/* â”€â”€ Notes â”€â”€ */
.checkout-note {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 10px 12px; border-radius: 9px;
    font-size: 12.5px; line-height: 1.5; margin-bottom: 10px;
}
.checkout-note i { flex-shrink: 0; margin-top: 1px; }
.checkout-note.info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.checkout-note.info i  { color: #3b82f6; }
.checkout-note.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.checkout-note.warning i { color: #f59e0b; }

/* â”€â”€ Form fields â”€â”€ */
.co-field { margin-bottom: 14px; }
.co-field label {
    display: block; font-size: 11.5px; font-weight: 700;
    color: #64748b; text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: 5px;
}
.co-field label .required { color: #f80e63; margin-left: 2px; }
.co-field input,
.co-field textarea {
    width: 100%; border: 1.5px solid #e2e8f0; border-radius: 9px;
    padding: 10px 13px; font-size: 13.5px; color: #1e293b;
    background: #f8f9fb; transition: border-color .2s, box-shadow .2s;
    outline: none; font-family: inherit;
}
.co-field input:focus,
.co-field textarea:focus {
    border-color: #f80e63; box-shadow: 0 0 0 3px rgba(248,14,99,.08);
    background: #fff;
}
.co-field textarea { resize: vertical; min-height: 72px; }
.co-field .field-error { font-size: 11.5px; color: #ef4444; margin-top: 3px; display: block; }

/* â”€â”€ Payment options â”€â”€ */
.pay-option {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 11px;
    margin-bottom: 8px; cursor: pointer;
    transition: border-color .2s, background .2s;
}
.pay-option:hover { border-color: #f80e63; background: #fff8fa; }
.pay-option:has(input:checked),
.pay-option.active { border-color: #f80e63; background: #fff5f7; box-shadow: 0 0 0 1px #f80e63; }
.pay-option input[type="radio"] {
    width: 17px; height: 17px; accent-color: #f80e63;
    flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.pay-option-label { font-size: 13.5px; font-weight: 600; color: #1e293b; }
.pay-option-desc  { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }

/* ── Shipping Options Grid (Neat 3-column cards) ── */
.ship-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ship-options-grid .pay-option {
    margin-bottom: 0;
    height: 100%;
    padding: 10px 11px;
    align-items: flex-start;
    gap: 8px;
    border-radius: 11px;
    box-sizing: border-box;
}
.ship-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.ship-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 2px;
}
.ship-price {
    font-size: 12.5px;
    font-weight: 800;
    color: #f80e63;
    white-space: nowrap;
}
.ship-time {
    font-size: 10.5px;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}
.ship-subtext {
    font-size: 11px;
    color: #059669;
    font-weight: 500;
    line-height: 1.3;
}
.ship-subtext.text-warning {
    color: #c2410c;
    font-weight: 700;
    font-size: 11.5px;
}
@media (max-width: 768px) {
    .ship-options-grid {
        grid-template-columns: 1fr;
    }
}

/* â”€â”€ QR Box â”€â”€ */
.qr-hidden { display: none; }
.qr-box {
    background: #fafafa; border-radius: 10px;
    padding: 14px 16px; margin-top: 10px;
    font-size: 13px; color: #475569; line-height: 1.6;
}

/* 2-column layout: QR left | info right */
.qr-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: start;
}
.qr-left {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
}
.qr-right { display: flex; flex-direction: column; gap: 8px; }

/* Amount highlight — full-width top banner */
.qr-amount-box {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #fff5f8;
    border-radius: 8px;
    border: 1px solid rgba(248,14,99,.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}
.qr-amount-label {
    font-size: 11px; color: #64748b; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    white-space: nowrap;
}
.qr-amount-value {
    font-size: 18px; font-weight: 900; color: #f80e63;
    letter-spacing: -.5px; line-height: 1;
}

/* Note box */
.qr-note-box {
    margin-top: 8px; padding: 9px 11px;
    background: #fff7ed; border-radius: 8px;
    border: 1px solid #fed7aa;
    font-size: 12px; color: #92400e; line-height: 1.6;
}

/* QR image */
.qr-img-wrap { text-align: center; }
.qr-img-wrap img {
    width: 100%; max-width: 200px; display: block; margin: 0 auto;
    border-radius: 12px; border: 2px solid #f80e63;
    box-shadow: 0 4px 14px rgba(248,14,99,.12);
}
.qr-download-btn {
    margin: 10px auto 0; display: inline-flex;
    align-items: center; gap: 6px;
    padding: 7px 18px; border: 1.5px solid #f80e63;
    border-radius: 20px; background: transparent;
    color: #f80e63; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.qr-download-btn:hover { background: #f80e63; color: #fff; }
.qr-bank-detail { font-size: 13.5px; color: #475569; margin-top: 10px; line-height: 1.7; }
.qr-bank-detail strong { color: #1e293b; }
.qr-addinfo-text { color: #f80e63; font-weight: 700; }
.qr-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* Copy STK btn */
.copy-stk-btn {
    margin-left: 5px; padding: 2px 8px;
    border: 1px solid #f80e63; border-radius: 5px;
    background: transparent; color: #f80e63;
    font-size: 10.5px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.copy-stk-btn:hover { background: #f80e63; color: #fff; }

/* â”€â”€ Order summary â”€â”€ */
.order-summary-card {
    background: #fff; border-radius: 14px;
    padding: 20px 22px; box-shadow: 0 2px 14px rgba(0,0,0,.07);
}
.order-summary-title {
    font-size: 14px; font-weight: 800; color: #1e293b;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fb;
}
.order-item-row {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid #f8f9fb; font-size: 12.5px;
}
.order-item-name { color: #475569; flex: 1; line-height: 1.4; }
.order-item-name .qty-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #f80e63; font-weight: 700;
    font-size: 10.5px; border-radius: 10px; padding: 1px 6px; margin-left: 4px;
}
.order-item-price { font-weight: 700; color: #1e293b; white-space: nowrap; }
.order-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 12.5px; color: #64748b;
    border-bottom: 1px solid #f8f9fb;
}
.order-summary-row strong { color: #1e293b; font-weight: 700; }
.order-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0 0; font-size: 14px; font-weight: 700; color: #1e293b;
}
.order-total-row .total-amount { font-size: 20px; font-weight: 900; color: #f80e63; }

/* Free ship badge */
.free-ship-badge-sm {
    background: #ecfdf5; color: #059669; border-radius: 8px;
    padding: 7px 11px; font-size: 12px; font-weight: 600;
    margin-top: 10px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}

/* â”€â”€ Place order button â”€â”€ */
.btn-place-order {
    display: block; width: 100%;
    background: linear-gradient(135deg, #f80e63, #ff4d8f);
    color: #fff; border: none; border-radius: 11px;
    padding: 14px; font-size: 15px; font-weight: 800;
    text-align: center; cursor: pointer;
    /* hover thay đổi: transform + box-shadow (background dùng gradient nên không transition được) */
    transition: transform .2s, box-shadow .2s; letter-spacing: .5px; margin-top: 14px;
}
.btn-place-order:hover {
    background: linear-gradient(135deg, #d6005a, #f80e63);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(248,14,99,.32);
}

/* â”€â”€ Delivery info â”€â”€ */
.delivery-info-box {
    margin-top: 10px; padding: 10px 12px;
    background: #f0fdf4; border-radius: 10px;
    border: 1px solid #bbf7d0;
    font-size: 12px; color: #166534; line-height: 1.6;
}
.delivery-info-box strong { display: block; margin-bottom: 3px; font-size: 12.5px; }

/* â”€â”€ Security note â”€â”€ */
.checkout-security-note {
    text-align: center; font-size: 11.5px;
    color: #94a3b8; margin-top: 10px;
}
.checkout-security-note i { color: #059669; }

/* â”€â”€ Mobile â”€â”€ */
@media (max-width: 767px) {
    .checkout-page-wrap { padding: 14px 0 40px; }
    .checkout-form-card { padding: 16px; }
    .payment-card       { padding: 14px 16px; }
    /* Mobile: tắt sticky cho cột summary (stack dọc, không cần sticky) */
    .col-lg-5.col-12[style*="sticky"] { position: static !important; top: auto !important; }
    .order-summary-card { position: static; margin-top: 14px; padding: 16px; }
    .checkout-page-title { font-size: 16px; margin-bottom: 14px; }
    /* Mobile: smaller 2-col so QR stays scannable but doesn't dominate */
    .qr-body            { grid-template-columns: 140px 1fr; gap: 10px; }
    .qr-img-wrap img    { max-width: 140px; }
    .qr-amount-box      { padding: 5px 8px; gap: 5px; }
    .qr-amount-value    { font-size: 15px; }
    .qr-note-box        { padding: 7px 10px; font-size: 11.5px; }
    .btn-place-order    { padding: 13px; font-size: 14px; }
}
@media (max-width: 420px) {
    .qr-body            { grid-template-columns: 1fr; }
    .qr-img-wrap img    { max-width: 180px; }
}
