/*
 * FOMA order pages: checkout (map + address), pay, tracking, lookup. Prefix .ox-
 * Mobile first; uses the --shop-* tokens from shop.css.
 */

.ox { padding-bottom: 96px; } /* room for the sticky mobile bar */
.ox-narrow { max-width: 680px; }

/* ---------- steps ---------- */
.ox-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
.ox-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 999px; background: var(--shop-surface-alt); color: var(--shop-muted); font-size: var(--fs-meta); font-weight: 700; }
.ox-steps li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; font-size: 12px; }
.ox-steps .is-done { color: var(--shop-success); background: var(--shop-success-soft); }
.ox-steps .is-now { color: var(--shop-ink); background: var(--shop-brand); }

/* ---------- layout ---------- */
.ox-grid { display: grid; gap: 16px; }
@media (min-width: 992px) {
    .ox-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
    .ox-sticky { position: sticky; top: 90px; }
    .ox { padding-bottom: 40px; }
}

.ox-card { background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: var(--shop-radius); padding: 18px 16px; margin-bottom: 16px; box-shadow: var(--shop-shadow); }
@media (min-width: 576px) { .ox-card { padding: 22px 24px; } }
.ox-card__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h5); font-weight: 800; margin: 0 0 14px; }
.ox-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--shop-brand); color: var(--shop-ink); font-size: 14px; flex: none; }

/* ---------- fields ---------- */
.ox-row { display: grid; gap: 0 12px; }
@media (min-width: 576px) { .ox-row { grid-template-columns: 1fr 1fr; } }
.ox-field { margin-bottom: 14px; }
.ox-field label { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: 6px; }
.ox-field label i { color: var(--shop-danger); font-style: normal; }
.ox-field label small { color: var(--shop-muted); font-weight: 400; }
.ox-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #d6d9dc; border-radius: var(--shop-radius-sm); background: #fff; font-size: 16px; /* 16px: no iOS zoom */ color: var(--shop-ink); transition: border-color .15s, box-shadow .15s; }
textarea.ox-input { min-height: 72px; resize: vertical; }
.ox-input:focus { outline: 0; border-color: var(--shop-brand-hover); box-shadow: 0 0 0 3px var(--shop-brand-soft); }
.ox-input.is-invalid { border-color: var(--shop-danger); background: var(--shop-danger-soft); }
.ox-input--code { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: 3px; font-size: 20px; font-weight: 800; }
.ox-err { color: var(--shop-danger); font-size: var(--fs-meta); margin-top: 4px; font-weight: 600; }
.ox-hint { color: var(--shop-muted); font-size: var(--fs-small); margin: 6px 0 0; }
.ox-hint--center { text-align: center; }

/* ---------- map ---------- */
.ox-mapbox { position: relative; border-radius: var(--shop-radius-sm); overflow: hidden; border: 2px solid var(--shop-line); margin-bottom: 8px; }
.ox-mapbox.is-invalid { border-color: var(--shop-danger); }
.ox-map { height: 280px; width: 100%; background: #e9ecef; z-index: 0; }
@media (max-width: 575.98px) { .ox-map { height: 220px; } }
.ox-map--small { height: 200px; border-radius: var(--shop-radius-sm); margin: 10px 0; }
/* step 2: one big "use my location" button, the map is the fallback */
.ox-locate { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 16px; border: 2px solid #1a73e8; border-radius: var(--shop-radius-sm); background: #fff; color: #1a73e8; font-size: var(--fs-base); font-weight: 800; cursor: pointer; transition: background .15s; }
.ox-locate:hover, .ox-locate:focus-visible { background: #eef4fe; }
.ox-locate:disabled { opacity: .7; cursor: progress; }
.ox-or { margin: 8px 0; text-align: center; color: var(--shop-muted); font-size: var(--fs-small); }
.ox-pin { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; color: var(--shop-muted); font-size: var(--fs-small); font-weight: 600; line-height: 1.45; }
.ox-pin::before { content: ""; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%; background: currentColor; flex: none; }
.ox-pin.is-ok { color: var(--shop-success); }
.ox-pin.is-invalid { color: var(--shop-danger); }
/* optional delivery note, folded */
.ox-more { margin-top: 2px; }
.ox-more summary { display: inline-block; cursor: pointer; color: var(--shop-ink); font-weight: 700; font-size: var(--fs-small); padding: 6px 0; list-style: none; }
.ox-more summary::-webkit-details-marker { display: none; }
.ox-more summary small { color: var(--shop-muted); font-weight: 400; }
.ox-more[open] summary { margin-bottom: 6px; }

/* ---------- summary ---------- */
.ox-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.ox-lines li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--shop-line); }
.ox-lines img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: var(--shop-surface-alt); }
.ox-lines div { flex: 1; min-width: 0; }
.ox-lines b { display: block; font-size: var(--fs-small); line-height: 1.3; }
.ox-lines small { color: var(--shop-muted); font-size: var(--fs-meta); }
.ox-lines > li > span { font-weight: 800; white-space: nowrap; }
.ox-sum { display: flex; justify-content: space-between; padding: 6px 0; font-size: var(--fs-small); }
.ox-sum--total { font-size: var(--fs-h5); font-weight: 800; border-top: 2px solid var(--shop-ink); margin-top: 6px; padding-top: 10px; }
.ox-paynote { display: flex; flex-direction: column; gap: 2px; background: var(--shop-brand-soft); border-radius: var(--shop-radius-sm); padding: 12px 14px; margin: 14px 0; font-size: var(--fs-small); }
.ox-submit { height: auto; min-height: 48px; font-size: var(--fs-base); font-weight: 800; border-radius: var(--shop-radius-sm); }

/* sticky bar on phones */
.ox-bar { display: none; }
@media (max-width: 991.98px) {
    .ox-side .ox-submit { display: none; }
    .ox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.1); }
    .ox-bar small { display: block; color: var(--shop-muted); font-size: var(--fs-meta); }
    .ox-bar b { font-size: var(--fs-h5); }
    .ox-bar .btn { height: auto; min-height: 44px; padding: 0 18px; font-size: var(--fs-h6); font-weight: 800; border-radius: var(--shop-radius-sm); }
}

/* ---------- alerts ---------- */
.ox-alert { border-radius: var(--shop-radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: var(--fs-small); }
.ox-alert ul { margin: 4px 0 0; padding-left: 18px; }
.ox-alert--danger { background: var(--shop-danger-soft); color: #8a2121; border: 1px solid #f3c2c2; }
.ox-alert--warn { background: var(--shop-warn-soft); color: #7a4f12; border: 1px solid #f1d8a8; }

/* ---------- pay ---------- */
.ox-pay__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--shop-line); margin-bottom: 14px; }
.ox-pay__head small { display: block; color: var(--shop-muted); font-size: var(--fs-meta); }
.ox-pay__amount { text-align: right; }
.ox-pay__amount b { font-size: 28px; font-weight: 900; }
.ox-code { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 900; letter-spacing: 2px; }
.ox-pay__title { font-size: var(--fs-h5); font-weight: 800; margin: 18px 0 2px; }
.ox-timer { background: var(--shop-surface-alt); border-radius: 999px; padding: 6px 14px; text-align: center; font-size: var(--fs-small); margin-bottom: 4px; }
.ox-timer.is-over { background: var(--shop-danger-soft); color: var(--shop-danger); }
.ox-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.ox-bank { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1.5px solid var(--shop-line); border-radius: 12px; color: var(--shop-ink); text-align: center; font-size: 12px; font-weight: 700; line-height: 1.2; transition: border-color .15s, transform .1s; }
.ox-bank:hover, .ox-bank:focus { border-color: var(--shop-brand-hover); color: var(--shop-ink); text-decoration: none; }
.ox-bank:active { transform: scale(.97); }
.ox-bank img, .ox-bank__ph { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.ox-bank__ph { display: grid; place-items: center; background: var(--shop-brand-soft); font-size: 18px; font-weight: 900; }
.ox-qr { text-align: center; margin-top: 8px; }
.ox-qr img, .ox-qr #qrFallback { display: inline-block; margin-top: 10px; padding: 10px; background: #fff; border: 1px solid var(--shop-line); border-radius: 12px; max-width: 100%; height: auto; }
/* phones pay in a bank app on the same phone; QR is for desktop */
.ox-card-pay { margin-top: 18px; font-weight: 800; }
.ox-waiting { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 12px; border-radius: var(--shop-radius-sm); background: var(--shop-surface-alt); font-size: var(--fs-small); color: var(--shop-muted); text-align: center; }
.ox-spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--shop-line); border-top-color: var(--shop-brand-hover); animation: ox-spin 0.9s linear infinite; flex: none; }
@keyframes ox-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ox-spinner { animation: none; } }
.ox-details summary { cursor: pointer; font-weight: 700; }
.ox-details[open] summary { margin-bottom: 8px; }
.ox-cancel { text-align: center; }
.ox-cancel .btn-link { color: var(--shop-muted); font-size: var(--fs-small); }

/* ---------- tracking ---------- */
.ox-hero { text-align: center; border-radius: var(--shop-radius); padding: 26px 18px; margin-bottom: 16px; background: var(--shop-surface-alt); }
.ox-hero--ok { background: var(--shop-success-soft); }
.ox-hero--done { background: linear-gradient(135deg, var(--shop-success-soft), var(--shop-brand-soft)); }
.ox-hero--wait { background: var(--shop-brand-soft); }
.ox-hero--off { background: var(--shop-surface-alt); }
.ox-hero__icon { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.ox-hero h1 { font-size: var(--fs-h3); font-weight: 800; margin: 0 0 6px; }
.ox-hero p { margin: 0 0 12px; }
.ox-hero__code { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 12px; margin: 6px 0 4px; flex-wrap: wrap; justify-content: center; }
.ox-hero__code small { color: var(--shop-muted); font-size: var(--fs-meta); }
.ox-hero .btn { margin-top: 14px; }
.ox-copy { border: 1px solid var(--shop-line); background: var(--shop-surface-alt); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }

.ox-track { display: flex; list-style: none; padding: 0; margin: 0 0 16px; }
.ox-track li { flex: 1; position: relative; text-align: center; color: var(--shop-muted); font-size: 12px; font-weight: 700; }
.ox-track li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 4px; background: var(--shop-line); z-index: 0; }
.ox-track li:first-child::before { display: none; }
.ox-track li.is-done::before, .ox-track li.is-now::before { background: var(--shop-success); }
.ox-track__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 3px solid var(--shop-line); font-size: 14px; }
.ox-track .is-done .ox-track__dot { background: var(--shop-success); border-color: var(--shop-success); color: #fff; }
.ox-track .is-now .ox-track__dot { background: var(--shop-brand); border-color: var(--shop-brand-hover); color: var(--shop-ink); box-shadow: 0 0 0 5px var(--shop-brand-soft); }
.ox-track .is-now, .ox-track .is-done { color: var(--shop-ink); }
.ox-track__label { display: block; }
.ox-track small { display: block; font-weight: 400; color: var(--shop-muted); }

.ox-addr { font-size: var(--fs-base); margin: 0; }
.ox-kv { display: grid; grid-template-columns: 80px 1fr; gap: 4px 10px; margin: 10px 0 0; font-size: var(--fs-small); }
.ox-kv dt { color: var(--shop-muted); font-weight: 400; }
.ox-kv dd { margin: 0; }
.ox-timeline { list-style: none; margin: 0; padding: 0; }
.ox-timeline li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--shop-line); font-size: var(--fs-small); }
.ox-timeline small { color: var(--shop-muted); white-space: nowrap; }
.ox-help { text-align: center; color: var(--shop-muted); font-size: var(--fs-small); }

/* ---------- lookup ---------- */
.ox-mine { list-style: none; margin: 0; padding: 0; }
.ox-mine a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--shop-line); color: var(--shop-ink); }
.ox-mine a:hover { text-decoration: none; background: var(--shop-surface-alt); }
.ox-mine .ox-code { font-size: 17px; }
.ox-mine span { color: var(--shop-muted); font-size: var(--fs-small); flex: 1; }
.ox-pill { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--shop-surface-alt); }
.ox-pill--paid, .ox-pill--preparing, .ox-pill--delivering { background: var(--shop-success-soft); color: var(--shop-success); }
.ox-pill--delivered { background: var(--shop-success); color: #fff; }
.ox-pill--pending { background: var(--shop-warn-soft); color: var(--shop-warn); }

/* theme .btn-xl has a fixed height; long Mongolian labels need to wrap inside the button */
.ox .btn-xl, .ox .btn-lg { height: auto; min-height: 48px; white-space: normal; line-height: 1.25; padding: 12px 20px; font-size: var(--fs-base); font-weight: 800; }

/* ---------- floating «Live chat» → Messenger (frontend/includes/live-chat.blade.php) ----------
 * Bottom-left, always visible. Bottom-right belongs to .float-stack (cart + back to top). */
.live-chat {
    position: fixed;
    left: max(20px, env(safe-area-inset-left));
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1039; /* just under .float-stack (1040) and the snackbar (1045) */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00b2ff, #006aff);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0, 106, 255, .35), 0 1px 3px rgba(0, 0, 0, .15);
    transition: transform .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.live-chat:hover, .live-chat:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 106, 255, .4); }
.live-chat:active { transform: scale(.96); }
.live-chat:focus-visible { outline: 3px solid #3d3d3d; outline-offset: 3px; }
.live-chat__dot { position: absolute; top: 6px; left: 34px; width: 10px; height: 10px; border-radius: 50%; background: #31d158; border: 2px solid #fff; }

@media (max-width: 767px) {
    .live-chat { left: max(14px, env(safe-area-inset-left)); bottom: calc(14px + env(safe-area-inset-bottom)); height: 48px; padding: 0 16px 0 13px; font-size: 14px; }
    .live-chat__dot { left: 30px; top: 5px; }
    /* above the pinned product bar «Сагсанд нэмэх» (shop.css shows it ≤767px) */
    body:has(.pdp-sticky.is-visible) .live-chat { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 575px) {
    /* cart total bar (shop.css shows .cartx-bar only ≤575px) */
    body:has(.cartx-bar) .live-chat { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 991.98px) {
    /* checkout total bar: lift the chat button and the cart / back-to-top stack */
    body:has(.ox-bar) .live-chat,
    body:has(.ox-bar) .float-stack { bottom: calc(86px + env(safe-area-inset-bottom)); }
    body:has(.ox-bar) .lc-teaser { bottom: calc(150px + env(safe-area-inset-bottom)); }
    /* checkout form: icon-only round button so it does not cover the fields */
    body:has(.ox-bar) .live-chat { width: 48px; height: 48px; padding: 0; justify-content: center; }
    body:has(.ox-bar) .live-chat__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    body:has(.ox-bar) .live-chat__dot { left: auto; right: 2px; top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .live-chat { transition: none; } }
@media print { .live-chat { display: none; } }
.ox-input--code::placeholder { text-transform: none; letter-spacing: normal; font-size: 16px; font-weight: 400; }

/* ---------- product page «Тодорхойлолт» table (frontend/product/partials/specs.blade.php) ---------- */
.pspec { width: 100%; max-width: 760px; border-collapse: collapse; font-size: var(--fs-base); }
.pspec th, .pspec td { padding: 11px 14px; border-bottom: 1px solid var(--shop-line, #ebebeb); vertical-align: top; text-align: left; }
.pspec tbody tr:not(.pspec__group):nth-child(odd) { background: var(--shop-surface-alt, #f7f7f7); }
.pspec th[scope=row] { width: 38%; color: var(--shop-muted, #6c757d); font-weight: 600; }
.pspec td { color: var(--shop-ink, #3d464d); font-weight: 600; }
.pspec__group th { padding-top: 20px; font-size: var(--fs-h6, 15px); font-weight: 800; color: var(--shop-ink, #3d464d); border-bottom: 2px solid var(--shop-brand, #ffcc00); background: none; }
.pspec tbody tr:first-child.pspec__group th { padding-top: 6px; }
@media (max-width: 575.98px) {
    .pspec th, .pspec td { padding: 9px 10px; font-size: var(--fs-small, 14px); }
    .pspec th[scope=row] { width: 42%; }
}

/* ---------- «Live chat» help window (live-chat.blade.php + js/live-chat.js) ----------
 * Desktop: card above the pill (bottom-left). Phone ≤575px: bottom sheet with a dim backdrop.
 * z-index 1042: above .float-stack (1040) and the «FOMA зөвлөх» chat (1039/1041), below modals (1050). */
.lc-panel {
    position: fixed;
    left: max(20px, env(safe-area-inset-left));
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 1042;
    width: 360px;
    max-height: min(580px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(20, 30, 50, .22), 0 2px 8px rgba(20, 30, 50, .1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transform-origin: bottom left;
    transition: opacity .18s ease, transform .18s ease;
    font-family: var(--font-body);
}
.lc--open .lc-panel { opacity: 1; transform: none; }
.lc-panel[hidden] { display: none; }

.lc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff; }
.lc-head__avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.lc-head__avatar img { width: 30px; height: 30px; object-fit: contain; }
.lc-head__text { flex: 1; min-width: 0; line-height: 1.25; }
.lc-head__text b { display: block; font-size: 16px; font-weight: 800; }
.lc-head__text small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .92; }
.lc-online { width: 8px; height: 8px; border-radius: 50%; background: #31d158; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); flex: none; }
.lc-head__close { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.lc-head__close:hover { background: rgba(255, 255, 255, .3); }

.lc-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #f4f6f9; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.lc-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-line; word-wrap: break-word; animation: lc-in .18s ease-out; }
.lc-msg--bot { align-self: flex-start; background: #fff; color: #1f2933; border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.lc-msg--soft { background: transparent; box-shadow: none; padding: 0 4px; color: #6b7280; font-size: 13px; }
.lc-msg--me { align-self: flex-end; background: #0a7cff; color: #fff; border-bottom-right-radius: 5px; }
.lc-note { align-self: flex-start; font-size: 12px; color: #6b7280; padding: 0 4px; }
@keyframes lc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lc-quick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 2px; }
.lc-chip { border: 1.5px solid #0a7cff; background: #fff; color: #0a7cff; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; text-align: left; line-height: 1.3; transition: background .15s, color .15s; }
.lc-chip:hover, .lc-chip:focus-visible { background: #0a7cff; color: #fff; outline: none; }

.lc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; white-space: normal; }
.lc-action { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; background: var(--shop-brand, #ffcc00); color: #2b2b2b !important; text-decoration: none !important; }
.lc-action--messenger { background: #e8f1ff; color: #0a5bd6 !important; }

.lc-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.lc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #a0aec0; animation: lc-dot 1s infinite ease-in-out; }
.lc-typing i:nth-child(2) { animation-delay: .15s; }
.lc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.lc-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #e5e7eb; background: #fff; margin: 0; }
.lc-input input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid #e5e7eb; border-radius: 999px; padding: 0 16px; font-size: 16px; /* no iOS zoom */ background: #f9fafb; }
.lc-input input:focus { outline: none; border-color: #0a7cff; background: #fff; }
.lc-input button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #0a7cff; color: #fff; display: grid; place-items: center; flex: none; }

.lc-foot { display: flex; gap: 8px; padding: 0 12px 12px; background: #fff; }
.lc-foot a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 12px; font-size: 14px; font-weight: 800; text-decoration: none !important; }
.lc-foot__messenger { background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff !important; }
.lc-foot__call { flex: 0 0 auto !important; padding: 0 14px; background: #f1f3f5; color: #343a40 !important; }

/* teaser bubble above the pill */
.lc-teaser {
    position: fixed;
    left: max(20px, env(safe-area-inset-left));
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 1039;
    display: flex;
    align-items: flex-start;
    max-width: min(280px, calc(100vw - 40px));
    background: #fff;
    border-radius: 16px 16px 16px 5px;
    box-shadow: 0 10px 30px rgba(20, 30, 50, .18);
    animation: lc-in .25s ease-out;
}
.lc-teaser[hidden] { display: none; }
.lc-teaser__open { border: 0; background: none; text-align: left; padding: 12px 6px 12px 14px; font-size: 14.5px; font-weight: 700; color: #1f2933; line-height: 1.4; }
.lc-teaser__close { border: 0; background: none; color: #9ca3af; font-size: 20px; line-height: 1; padding: 8px 10px; }

@media (max-width: 767px) {
    .lc-teaser { left: max(14px, env(safe-area-inset-left)); bottom: calc(76px + env(safe-area-inset-bottom)); }
    body:has(.pdp-sticky.is-visible) .lc-teaser { bottom: calc(148px + env(safe-area-inset-bottom)); }
}
@media (max-width: 575px) {
    body:has(.cartx-bar) .lc-teaser { bottom: calc(148px + env(safe-area-inset-bottom)); }

    /* bottom sheet */
    .lc-panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(40px); transform-origin: bottom center; }
    .lc--open::before { content: ""; position: fixed; inset: 0; z-index: 1041; background: rgba(15, 23, 42, .4); animation: lc-in .18s ease-out; }
    html.lc-locked, html.lc-locked body { overflow: hidden; }
    .lc-msg { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-panel, .lc-msg, .lc-teaser, .lc--open::before { transition: none; animation: none; }
    .lc-typing i { animation: none; }
}
@media print { .lc-panel, .lc-teaser { display: none !important; } }
.lc-chip.is-asked { border-color: #c7d2fe; color: #6b7280; }
.lc-chip.is-asked:hover { background: #eef2ff; color: #374151; }
