/* =============================================
   ATW Biotech – Order Lookup Page
   ============================================= */

.atw-lookup-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 16px;
    font-family: inherit;
}

/* ── Search form ─────────────────────────── */
.atw-lookup-form-card {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 16px;
    padding: 40px 36px;
    color: #fff;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(46,125,50,0.25);
}
.atw-lookup-form-card h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}
.atw-lookup-form-card p {
    margin: 0 0 28px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.atw-lookup-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 580px) {
    .atw-lookup-fields { grid-template-columns: 1fr; }
    .atw-lookup-form-card { padding: 28px 20px; }
}
.atw-lookup-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.atw-lookup-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.atw-lookup-field input::placeholder { color: rgba(255,255,255,0.5); }
.atw-lookup-field input:focus {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.22);
}
.atw-lookup-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    color: #2e7d32 !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.atw-lookup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.atw-lookup-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ── Messages ────────────────────────────── */
.atw-lookup-msg {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 14px;
}
.atw-lookup-msg.is-error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ── Result card ─────────────────────────── */
#atw-lookup-result {
    display: none;
}
#atw-lookup-result.is-visible {
    display: block;
    animation: atwFadeUp 0.3s ease;
}
@keyframes atwFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Status badge */
.atw-lookup-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.atw-lookup-order-num {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
}
.atw-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.atw-status-badge.pending    { background: #fff8e1; color: #f57f17; }
.atw-status-badge.processing { background: #e3f2fd; color: #1565c0; }
.atw-status-badge.on-hold    { background: #f3e5f5; color: #6a1b9a; }
.atw-status-badge.completed  { background: #e8f5e9; color: #2e7d32; }
.atw-status-badge.cancelled  { background: #ffebee; color: #c62828; }
.atw-status-badge.refunded   { background: #fce4ec; color: #880e4f; }
.atw-status-badge.failed     { background: #ffebee; color: #b71c1c; }
.atw-status-badge.default    { background: #f5f5f5; color: #555; }

/* Timeline */
.atw-timeline {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.atw-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 72px;
    position: relative;
}
.atw-timeline-step + .atw-timeline-step::before {
    content: '';
    position: absolute;
    left: calc(-50% + 20px);
    right: calc(50% + 20px);
    top: 20px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.atw-timeline-step.active + .atw-timeline-step::before,
.atw-timeline-step.done   + .atw-timeline-step::before {
    background: #2e7d32;
}
.atw-tl-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1;
    position: relative;
    transition: all 0.3s;
}
.atw-timeline-step.done .atw-tl-circle {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}
.atw-timeline-step.active .atw-tl-circle {
    background: #fff;
    border-color: #2e7d32;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(46,125,50,0.15);
}
.atw-tl-label {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
    text-align: center;
    font-weight: 600;
}
.atw-timeline-step.done .atw-tl-label,
.atw-timeline-step.active .atw-tl-label {
    color: #2e7d32;
}

/* Result detail cards */
.atw-result-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 640px) { .atw-result-cards { grid-template-columns: 1fr; } }
.atw-result-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.atw-result-card--full {
    grid-column: 1 / -1;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.atw-result-card-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1b5e20 !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    letter-spacing: -0.3px;
}
.atw-result-info {
    margin: 0;
    padding: 0;
    display: block;
}
.atw-info-group {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 16px !important;
}
.atw-info-label,
.atw-result-info dt {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}
.atw-info-value,
.atw-result-info dd {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #444444 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
}




/* Product Table & Horizontal Scroll */
.atw-product-scroll-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.atw-result-product-table {
    width: 100% !important;
    min-width: 480px !important;
    border-collapse: collapse !important;
    display: table !important;
}

.atw-result-product-table th {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #888888 !important;
    text-transform: uppercase !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #eeeeee !important;
    letter-spacing: 0.5px !important;
}

.atw-result-product-table td {
    padding: 10px !important;
    border-bottom: 1px solid #f8f8f8 !important;
    vertical-align: middle !important;
}

.atw-result-product-table .col-name {
    text-align: left !important;
    min-width: 250px !important;
}

.atw-result-product-table .col-qty {
    text-align: center !important;
    width: 60px !important;
    white-space: nowrap !important;
}

.atw-result-product-table .col-price {
    text-align: right !important;
    width: 110px !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
    font-size: 14px !important;
}

.atw-prod-flex {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.atw-prod-flex img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid #eee !important;
    flex-shrink: 0 !important;
}

.atw-prod-flex span {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    line-height: 1.4 !important;
}

.atw-result-product-qty {
    display: inline-block !important;
    font-size: 12px !important;
    color: #2e7d32 !important;
    background: #e8f5e9 !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    font-weight: 700 !important;
}


.atw-result-total {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e8f5e9;
    font-size: 16px;
    font-weight: 800;
    color: #1b5e20;
}

