.page.shopee-lookup {
    display: grid;
    gap: 25px;
    padding-block: 20px 52px;
}
.lookup-panel {
    min-width: 0;
    padding: clamp(16px, 2.5vw, 30px);
    border: 1px solid #eeecf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(26 26 36 / .035);
}
.lookup-hero {
    text-align: center;
    padding-block: clamp(27px, 4vw, 46px);
    background:
        radial-gradient(ellipse at 10% 80%, #fff0ec 0%, transparent 58%),
        radial-gradient(ellipse at 95% 10%, #faeef1 0%, transparent 55%),
        #fff;
}
.lookup-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ac2a07;
    background: #ffebe4;
    font-size: 11px;
    font-weight: 700;
}
.lookup-hero h1 {
    margin-top: 14px;
    font-size: clamp(24px, 3.45vw, 40px);
    letter-spacing: -.04em;
}
.lookup-hero > p {
    max-width: 670px;
    margin: 12px auto 0;
    color: var(--muted);
}
.lookup-form {
    max-width: 790px;
    margin: 22px auto 0;
    padding: 9px;
    border: 1px solid #eae6f0;
    border-radius: 12px;
    background: #f5f3f9;
}
.lookup-form-row,
.lookup-input,
.lookup-form-help,
.lookup-heading-row,
.lookup-product-actions,
.lookup-formula {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lookup-input {
    flex: 1;
    min-width: 0;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.lookup-input .platform-logo {
    width: 28px;
    height: 28px;
    padding: 3px;
    border-radius: 6px;
    background: #fff0ea;
}
.lookup-input input {
    flex: 1;
    padding-block: 8px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 13px;
}
.lookup-input .button { min-height: 29px; padding: 4px 10px; }
.lookup-form-row > .button { align-self: stretch; padding-inline: 18px; }
.lookup-form-help {
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 5px 3px 0;
    color: var(--muted);
    text-align: left;
    font-size: 11px;
}
.lookup-form-help .icon { color: var(--green); }
.lookup-form-help button {
    border: 0;
    padding: 2px 0;
    color: var(--brand);
    background: transparent;
    font-weight: 700;
}
.lookup-error { margin: 5px 3px 0; color: var(--brand); text-align: left; font-weight: 600; }

.lookup-product {
    display: grid;
    grid-template-columns: minmax(145px, 31%) minmax(0, 1fr);
    gap: clamp(14px, 3vw, 32px);
}
.lookup-product-card h2 { margin: 10px 0 4px; font-size: 16px; overflow-wrap: anywhere; }
.lookup-product-photo,
.lookup-product-placeholder {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 12px;
    background: #f8f3f1;
    object-fit: contain;
}
.lookup-product-placeholder { display: grid; place-items: center; }
.lookup-product-placeholder .platform-logo { width: 52px; height: 52px; }
.lookup-product-details { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.lookup-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 8px;
    color: #674600;
    background: #fff4dd;
    font-size: 12px;
    font-weight: 700;
}
.lookup-status-good, .lookup-stats .lookup-stat-good { color: #146423; background: #e2f1e3; }
.lookup-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lookup-stats > div {
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 13px;
    border-radius: 9px;
    background: #f4f3f9;
    overflow-wrap: anywhere;
}
.lookup-stats span, .lookup-muted { color: var(--muted); font-size: 12px; }
.lookup-stats strong { font-size: clamp(16px, 2.2vw, 24px); }
.lookup-stats .lookup-stat-accent { color: var(--brand); background: #fae6eb; }
.lookup-product-actions { flex-wrap: wrap; margin-top: auto; }
.lookup-product-actions .lookup-buy { flex: 1; color: #fff; background: #bf380d; }
.lookup-buy:hover { background: #a8300d; }

.lookup-heading-row { justify-content: space-between; align-items: start; }
.lookup-heading-row h2, .lookup-guide h2, .lookup-guide-side h2 { font-size: clamp(17px, 2.05vw, 23px); }
.lookup-heading-row h2 .icon, .lookup-guide h2 .icon { color: var(--brand); }
.lookup-heading-row .lookup-muted { margin-top: 4px; }
.lookup-periods { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 8px; background: #f2eff9; }
.lookup-periods button {
    border: 0;
    border-radius: 6px;
    padding: 5px 8px;
    color: var(--muted);
    background: transparent;
    font-size: 11px;
    white-space: nowrap;
}
.lookup-periods button[aria-pressed="true"] { color: var(--brand); background: #fff; font-weight: 700; }
.lookup-chart-stats, .lookup-chart, .lookup-empty, .lookup-price-table { margin-top: 15px; }
.lookup-chart {
    display: block;
    width: 100%;
    height: auto;
    min-height: 150px;
    border-radius: 11px;
    color: var(--muted);
    background: #f5f3f9;
}
.lookup-empty { padding: 16px; border-radius: 9px; color: var(--muted); background: #f5f3f9; }
.lookup-price-table table { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12px; }
.lookup-price-table th, .lookup-price-table td { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; }

.lookup-voucher-grid, .lookup-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.lookup-voucher-grid { margin-top: 15px; }
.lookup-voucher-grid .voucher-lookup { grid-template-columns: 88px minmax(0, 1fr); }
.lookup-voucher-grid .voucher-lookup .voucher-stub { background: #fff3ee; }
.lookup-voucher-grid .voucher-lookup .voucher-actions { background: #f7f5fb; }
.lookup-formula {
    flex-wrap: wrap;
    margin-top: 13px;
    padding: 12px;
    border-radius: 9px;
    background: var(--lavender-deep);
}
.lookup-formula strong { color: var(--brand); }
.lookup-guide-grid { grid-template-columns: 1.42fr 1fr; align-items: stretch; }
.lookup-guide ol { padding: 0; margin: 15px 0; list-style: none; counter-reset: lookup-step; }
.lookup-guide li {
    position: relative;
    min-height: 34px;
    padding-left: 33px;
    margin-block: 10px;
    counter-increment: lookup-step;
}
.lookup-guide li::before {
    content: counter(lookup-step);
    position: absolute;
    display: grid;
    place-items: center;
    inset: 1px auto auto 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    background: #bf380d;
    font-weight: 700;
}
.lookup-guide li span { display: block; color: var(--muted); font-size: 12px; }
.lookup-guide-side { background: var(--lavender); }
.lookup-guide-side h2 { margin-block: 10px 5px; }
.lookup-guide-side .button { margin-block: 11px; }
.lookup-disclosure { padding: 9px; border-radius: 7px; color: var(--muted); background: #fff; font-size: 11px; }

@media (max-width: 700px) {
    .page.shopee-lookup { gap: 15px; }
    .lookup-desktop-break { display: none; }
    .lookup-form-row, .lookup-heading-row { flex-direction: column; align-items: stretch; }
    .lookup-product, .lookup-guide-grid, .lookup-voucher-grid { grid-template-columns: minmax(0, 1fr); }
    .lookup-product-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 11px; align-content: center; }
    .lookup-product-photo, .lookup-product-placeholder { grid-row: span 2; }
    .lookup-product-card h2 { margin-top: 0; align-self: end; }
    .lookup-stats { gap: 5px; }
    .lookup-stats > div { padding: 7px; }
    .lookup-stats span { font-size: 10px; }
    .lookup-stats strong { font-size: clamp(12px, 4vw, 16px); }
    .lookup-heading-row > .button { align-self: start; }
}
