/* =====================================================================
   Tra cứu đơn hàng (fhh-framework/cart/cart-op-mobile/check.html) — style DÙNG CHUNG.
   Nạp sẵn trong check.html nên theme mới không cần viết lại; theme muốn khác
   thì phủ trong css/cart.css của theme (nạp sau) hoặc đổi biến --oc-*.
   ===================================================================== */
.order-check-page {
    --oc-primary: var(--sf-checkout-primary, var(--background, #16a34a));
    --oc-primary-dark: var(--sf-checkout-primary-dark, var(--oc-primary));
    --oc-ink: #0f172a;
    --oc-text: #334155;
    --oc-muted: #64748b;
    --oc-line: #e5e7eb;
    --oc-soft: #f8fafc;
    --oc-radius: 16px;
    padding: 32px 16px 56px;
    min-height: 55vh;
    color: var(--oc-text);
    box-sizing: border-box;
}
.order-check-page *, .order-check-page *::before, .order-check-page *::after { box-sizing: border-box; }
.order-check-page__inner { max-width: 880px; margin: 0 auto; }

.order-check-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.order-check-hero__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--oc-primary) 12%, #fff);
    color: var(--oc-primary);
    font-size: 20px;
}
.order-check-hero__title {
    margin: 0 0 4px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--oc-ink);
}
.order-check-hero__desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--oc-muted); }

.order-check-form {
    background: #fff;
    border: 1px solid var(--oc-line);
    border-radius: var(--oc-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.order-check-form__label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--oc-text);
}
.order-check-form__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.order-check-form__icon {
    position: absolute;
    left: 16px;
    top: 25px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}
.order-check-form__row input[name="check"] {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px 0 44px;
    border: 1.5px solid var(--oc-line);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    color: var(--oc-ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.order-check-form__row input[name="check"]::placeholder { color: #94a3b8; }
.order-check-form__row input[name="check"]:focus {
    border-color: var(--oc-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--oc-primary) 16%, transparent);
}
.order-check-form__submit {
    flex: none;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--oc-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background .15s ease, transform .05s ease;
}
.order-check-form__submit:hover { background: var(--oc-primary-dark); filter: brightness(.95); }
.order-check-form__submit:active { transform: translateY(1px); }

/* Kết quả */
.order-check-results__count { margin: 0 0 10px; font-size: 14px; color: var(--oc-muted); }
.order-check-results__count strong { color: var(--oc-ink); }
.order-check-table-wrap {
    background: #fff;
    border: 1px solid var(--oc-line);
    border-radius: var(--oc-radius);
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.order-check-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-check-table th {
    padding: 12px 16px;
    background: var(--oc-soft);
    border-bottom: 1px solid var(--oc-line);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--oc-muted);
    white-space: nowrap;
}
.order-check-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.order-check-table tr:last-child td { border-bottom: 0; }
.order-check-table tbody tr:hover td { background: #fafbfc; }
.order-check-table .text-end { text-align: right; }
.order-check-table__uid { font-weight: 700; color: var(--oc-ink); text-decoration: none; }
.order-check-table__uid:hover { color: var(--oc-primary); }
.order-check-table__amount { font-weight: 700; color: var(--oc-ink); white-space: nowrap; }
.order-check-table__date { color: var(--oc-muted); white-space: nowrap; }
.order-check-table__link {
    color: var(--oc-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.order-check-table__link:hover { text-decoration: underline; }

.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}
.order-status-badge--pending, .order-status-badge--waiting { background: #fef3c7; color: #92400e; }
.order-status-badge--confirm, .order-status-badge--confirmed, .order-status-badge--processing { background: #dbeafe; color: #1e40af; }
.order-status-badge--shipping, .order-status-badge--delivering { background: #e0e7ff; color: #3730a3; }
.order-status-badge--complete, .order-status-badge--completed, .order-status-badge--success { background: #dcfce7; color: #166534; }
.order-status-badge--cancel, .order-status-badge--canceled, .order-status-badge--cancelled, .order-status-badge--refund { background: #fee2e2; color: #991b1b; }

.order-check-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px dashed var(--oc-line);
    border-radius: var(--oc-radius);
    color: var(--oc-muted);
}
.order-check-empty i { font-size: 36px; color: #cbd5e1; margin-bottom: 10px; display: block; }
.order-check-empty p { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--oc-ink); }
.order-check-empty small { font-size: 13px; }

@media (max-width: 600px) {
    .order-check-page { padding: 20px 12px 40px; }
    .order-check-form { padding: 16px; }
    .order-check-form__row { flex-direction: column; align-items: stretch; }
    .order-check-form__submit { justify-content: center; }
    .order-check-hero__icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 17px; }
    .order-check-table th:nth-child(4), .order-check-table td:nth-child(4) { display: none; }
}
