/* ---- LURO web chat on mobile PDP ---- */
.is-luro-web-chat-open { overflow: hidden; }
.luro-web-chat[aria-hidden="true"] { display: none; }
.luro-web-chat { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; box-sizing: border-box; width: 100%; max-width: 100%; overflow-x: hidden; }
.luro-web-chat__backdrop { position: absolute; inset: 0; border: 0; background: rgba(18, 15, 24, .34); }
.luro-web-chat__panel { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-width: 100%; max-height: 88vh; max-height: 88dvh; box-sizing: border-box; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -18px 48px rgba(20, 16, 30, .22); overflow: hidden; }
.luro-web-chat__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eee8f6; padding: 13px 14px 11px; }
.luro-web-chat__header-copy { min-width: 0; }
.luro-web-chat__title { display: block; color: #17131d; font-size: 16px; font-weight: 750; line-height: 1.2; }
.luro-web-chat__status { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px; margin: 3px 0 0; color: #7a7088; font-size: 12px; font-weight: 650; line-height: 1.25; }
.luro-web-chat__status-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 999px; background: #21a85b; box-shadow: 0 0 0 2px rgba(33, 168, 91, .12); }
.luro-web-chat__status-online { color: #198b4b; font-weight: 800; }
.luro-web-chat__status-response { color: #7a7088; }
.luro-web-chat__header button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: #f5f1fa; color: #5f3f8f; font-size: 24px; line-height: 1; }
.luro-web-chat__messages { display: flex; min-height: 260px; flex-direction: column; gap: 9px; overflow-x: hidden; overflow-y: auto; padding: 12px 14px; background: #fbfafc; }
.luro-web-chat__empty { margin: auto 0; color: #756d80; font-size: 13px; text-align: center; }
.luro-web-chat__bubble { max-width: 82%; margin: 0; border-radius: 14px; padding: 9px 11px; font-size: 14px; line-height: 1.38; overflow-wrap: anywhere; }
.luro-web-chat__bubble.is-customer { align-self: flex-end; border-bottom-right-radius: 5px; background: #6e45a2; color: #fff; }
.luro-web-chat__bubble.is-shop { align-self: flex-start; border: 1px solid #eee8f6; border-bottom-left-radius: 5px; background: #fff; color: #211a2c; }
.luro-web-chat__typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; max-width: 82%; margin: 0; border: 1px solid #eee8f6; border-radius: 14px; border-bottom-left-radius: 5px; background: #fff; color: rgba(72, 59, 88, .68); padding: 8px 10px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.luro-web-chat__typing span { display: inline-flex; gap: 3px; align-items: center; }
.luro-web-chat__typing i { width: 5px; height: 5px; border-radius: 999px; background: #8b67b8; opacity: .38; animation: luro-chat-typing 1.05s infinite ease-in-out; }
.luro-web-chat__typing i:nth-child(2) { animation-delay: .16s; }
.luro-web-chat__typing i:nth-child(3) { animation-delay: .32s; }
.luro-web-chat__typing.is-slow { color: rgba(72, 59, 88, .62); }
[data-luro-web-chat].luro-web-chat .luro-web-chat__product { box-sizing: border-box; align-self: flex-start; width: 80%; max-width: 80%; display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 6px; align-items: center; min-height: 74px; border: 1px solid #eadff5; border-radius: 10px; background: #fff; padding: 7px; }
[data-luro-web-chat].luro-web-chat .luro-web-chat__product img, [data-luro-web-chat].luro-web-chat .luro-web-chat__product > span { width: 48px; height: 48px; border-radius: 6px; background: #f4f0f8; object-fit: cover; }
[data-luro-web-chat].luro-web-chat .luro-web-chat__product > span { display: grid; place-items: center; color: #6e45a2; font-size: 10px; }
[data-luro-web-chat].luro-web-chat .luro-web-chat__product div { display: grid; gap: 2px; min-width: 0; }
[data-luro-web-chat].luro-web-chat .luro-web-chat__product strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; max-height: 34px; color: #18131f; font-size: 12px; font-weight: 650; line-height: 17px; }
[data-luro-web-chat].luro-web-chat .luro-web-chat__product b { white-space: nowrap; color: #6e45a2; font-size: 12px; line-height: 18px; }
[data-luro-web-chat].luro-web-chat .luro-web-chat__product a { display: flex; align-items: center; justify-content: center; min-height: 44px; color: #6e45a2; font-size: 12px; font-weight: 700; text-decoration: none; }
[data-luro-web-chat] .luro-web-chat__support { flex-shrink: 0; width: auto; min-height: 36px; height: auto; padding: 6px 9px; border: 1px solid #eadff5; border-radius: 8px; background: #f5f1fa; color: #5f3f8f; font-size: 12px; line-height: 18px; cursor: pointer; align-self: flex-start; }
.luro-web-chat__support:disabled { opacity: .6; cursor: default; }
.luro-web-chat__notice { align-self: flex-start; max-width: 80%; margin: 0; color: #655477; font-size: 13px; line-height: 1.4; }
.luro-web-chat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; box-sizing: border-box; border-top: 1px solid #eee8f6; background: #fff; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.luro-web-chat__form textarea { min-width: 0; width: 100%; height: 42px; box-sizing: border-box; border: 1px solid #e4ddea; border-radius: 999px; padding: 10px 13px; resize: none; overflow-y: auto; max-height: 112px; color: #17131d; font-size: 16px; line-height: 1.25; outline: none; }
.luro-web-chat__form textarea:focus { border-color: #8b67b8; box-shadow: 0 0 0 3px rgba(110, 69, 162, .1); }
.luro-web-chat__form button { min-width: 56px; height: 42px; box-sizing: border-box; border: 0; border-radius: 999px; background: #6e45a2; color: #fff; font-size: 13px; font-weight: 900; }
.luro-web-chat__form button:disabled { opacity: .55; }
.sticky-cta__icon .luro-web-chat__badge { position: absolute; top: 5px; right: 11px; display: grid; min-width: 18px; height: 18px; place-items: center; border: 2px solid #fff; border-radius: 999px; background: #e5486d; color: #fff; padding: 0 4px; font-size: 10px; font-weight: 900; line-height: 1; box-shadow: 0 4px 10px rgba(229, 72, 109, .26); }
.sticky-cta__icon .luro-web-chat__badge[hidden] { display: none; }
.luro-web-chat-toast { position: fixed; left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 88; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; border: 1px solid #eadff5; border-radius: 14px; background: #fff; box-shadow: 0 16px 42px rgba(24, 18, 34, .18); color: #211a2c; padding: 11px 13px; text-align: left; }
.luro-web-chat-toast::after { content: "Xem ngay"; grid-column: 2; grid-row: 1 / span 2; color: #6e45a2; font-size: 12px; font-weight: 900; white-space: nowrap; }
.luro-web-chat-toast strong { min-width: 0; color: #17131d; font-size: 13px; font-weight: 900; }
.luro-web-chat-toast span { min-width: 0; overflow: hidden; color: #756d80; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.luro-web-chat-toast[hidden], .is-luro-web-chat-open .luro-web-chat-toast { display: none; }
@keyframes luro-chat-typing {
    0%, 80%, 100% { transform: translateY(0); opacity: .32; }
    40% { transform: translateY(-3px); opacity: .76; }
}


@media (min-width: 768px) { .luro-web-chat { justify-items: end; } .luro-web-chat__panel { width: min(480px, 100%); } }

/* The visual viewport, not the layout viewport, bounds the keyboard-visible chat. */
[data-luro-web-chat].luro-web-chat[data-viewport-active] { inset: auto; top: var(--luro-chat-top); left: var(--luro-chat-left); width: var(--luro-chat-width); height: var(--luro-chat-height); }
[data-luro-web-chat].luro-web-chat[data-viewport-active] .luro-web-chat__panel { height: var(--luro-chat-panel-height); max-height: 100%; }
[data-luro-web-chat].luro-web-chat .luro-web-chat__messages { min-height: 0; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
[data-luro-web-chat].luro-web-chat:not([data-viewport-active]) .luro-web-chat__panel { height: 88vh; height: 88dvh; }
[data-luro-web-chat].luro-web-chat .luro-web-chat__form { align-items: end; padding-bottom: calc(10px + var(--luro-chat-safe-bottom, env(safe-area-inset-bottom))); }
[data-luro-web-chat].luro-web-chat .luro-web-chat__form textarea { min-height: 42px; border-radius: 21px; overscroll-behavior-y: contain; }
[data-luro-web-chat] .luro-web-chat__reply { display: flex; flex: 0 0 auto; flex-direction: column; gap: 7px; align-items: flex-start; width: 100%; }
[data-luro-web-chat] .luro-web-chat__reply > .luro-web-chat__support { min-height: 40px; max-width: 80%; }

[data-luro-web-chat].luro-web-chat[data-viewport-full] .luro-web-chat__header { padding-top: max(13px, env(safe-area-inset-top)); }
[data-luro-web-chat].luro-web-chat[data-viewport-active] .luro-web-chat__header,
[data-luro-web-chat].luro-web-chat[data-viewport-active] .luro-web-chat__messages { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
[data-luro-web-chat].luro-web-chat[data-viewport-active] .luro-web-chat__form { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }

[data-luro-web-chat] .luro-web-chat__order { box-sizing:border-box; width:90%; max-width:90%; padding:12px; border:1px solid #eadff5; border-radius:12px; background:white; color:#342446; overflow-wrap:anywhere; font-size:13px; line-height:1.5; }
[data-luro-web-chat] .luro-web-chat__order p { margin:6px 0; }
[data-luro-web-chat] .luro-web-chat__order ul { margin:8px 0; padding-left:18px; }

.luro-web-chat__delivery { display:block; margin-top:4px; font-size:11px; opacity:.85; }
.luro-web-chat__delivery button { border:0; padding:0 3px; background:none; color:inherit; text-decoration:underline; cursor:pointer; font:inherit; }

/* Verified color media: fixed geometry prevents layout jumps as images arrive. */
[data-luro-web-chat] .luro-web-chat__colors { box-sizing:border-box; width:80%; max-width:330px; border:1px solid #eadff5; border-radius:14px; background:#fff; padding:10px; color:#342446; font-size:13px; }
[data-luro-web-chat] .luro-web-chat__colors > strong { display:block; margin-bottom:9px; overflow-wrap:anywhere; }
[data-luro-web-chat] .luro-web-chat__color-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:350px; overflow-y:auto; overscroll-behavior:contain; }
[data-luro-web-chat] .luro-web-chat__color-grid figure { margin:0; min-width:0; }
[data-luro-web-chat] .luro-web-chat__color-photo { box-sizing:border-box; position:relative; display:grid; place-items:center; width:100%; aspect-ratio:1; border:0; border-radius:10px; background:#f3f0f6; padding:0; overflow:hidden; color:#756b80; font:inherit; text-align:center; }
[data-luro-web-chat] .luro-web-chat__color-photo > span { padding:8px; font-size:11px; }
[data-luro-web-chat] .luro-web-chat__color-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
[data-luro-web-chat] button.luro-web-chat__color-photo { cursor:zoom-in; }
[data-luro-web-chat] .luro-web-chat__color-grid figcaption { margin-top:5px; text-align:center; font-weight:600; overflow-wrap:anywhere; }
.is-luro-web-chat-open .review-lightbox { z-index:2147483646; }
/* Compact order card only; no chat-shell, composer or checkout behavior changes. */
[data-luro-web-chat] .luro-web-chat__order.is-visual { width:100%; max-width:380px; padding:10px; font-size:12px; line-height:1.4; }
[data-luro-web-chat] .luro-web-chat__order.is-visual header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-bottom:4px; border-bottom:1px solid #eee8f3; }
[data-luro-web-chat] .luro-web-chat__order.is-visual header strong { font-size:14px; color:#211a2c; }
[data-luro-web-chat] .luro-web-chat__order.is-visual header > span { font-size:11px; color:#756b80; white-space:nowrap; }
[data-luro-web-chat] .luro-web-chat__order.is-visual small { display:block; color:#756b80; font-size:11px; font-weight:400; }
[data-luro-web-chat] .luro-web-chat__order .luro-web-chat__order-items { list-style:none; padding:0; margin:0; }
[data-luro-web-chat] .luro-web-chat__order-items li { display:grid; grid-template-columns:40px minmax(0,1fr) max-content; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid #eee8f3; }
[data-luro-web-chat] .luro-web-chat__order-photo { position:relative; display:grid; place-items:center; width:40px; height:44px; border-radius:7px; background:#f3f0f6; overflow:hidden; font-size:10px; text-align:center; color:#756b80; }
[data-luro-web-chat] .luro-web-chat__order-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
[data-luro-web-chat] .luro-web-chat__order-product { min-width:0; }
[data-luro-web-chat] .luro-web-chat__order-name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:12px; line-height:1.35; color:#211a2c; }
[data-luro-web-chat] .luro-web-chat__order-items .luro-web-chat__order-variant { margin:3px 0 0; font-size:11px; color:#756b80; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
[data-luro-web-chat] .luro-web-chat__order-line-price { display:flex; flex-direction:column; align-items:flex-end; white-space:nowrap; font-variant-numeric:tabular-nums; }
[data-luro-web-chat] .luro-web-chat__order-line-price s { color:#8b8194; font-size:10px; font-weight:400; }
[data-luro-web-chat] .luro-web-chat__order-line-price b { color:#211a2c; font-size:12px; }
[data-luro-web-chat] .luro-web-chat__order-money { margin:0; padding:7px 0; }
[data-luro-web-chat] .luro-web-chat__order-money > div { display:flex; justify-content:space-between; gap:8px; margin:2px 0; }
[data-luro-web-chat] .luro-web-chat__order-money dd { margin:0; text-align:right; flex-shrink:0; font-variant-numeric:tabular-nums; }
[data-luro-web-chat] .luro-web-chat__order-money .is-discount dd,
[data-luro-web-chat] .luro-web-chat__order-money .is-free dd { color:#078269; font-weight:600; }
[data-luro-web-chat] .luro-web-chat__order-footer { display:grid; grid-template-columns:minmax(0,1fr) minmax(96px,max-content); align-items:start; gap:10px; border-top:1px solid #eee8f3; padding-top:8px; }
[data-luro-web-chat] .luro-web-chat__order-recipient { min-width:0; }
[data-luro-web-chat] .luro-web-chat__order-recipient p { margin:3px 0 0; font-size:11px; overflow-wrap:anywhere; }
[data-luro-web-chat] .luro-web-chat__order-contact { font-weight:650; color:#211a2c; }
[data-luro-web-chat] .luro-web-chat__order-address { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
[data-luro-web-chat] .luro-web-chat__order-total { min-width:0; padding-left:10px; border-left:1px solid #eee8f3; text-align:right; }
[data-luro-web-chat] .luro-web-chat__order-total > strong { display:block; font-size:20px; line-height:1.35; color:#7437bc; font-weight:800; white-space:nowrap; font-variant-numeric:tabular-nums; }
[data-luro-web-chat] .luro-web-chat__order .luro-web-chat__order-status { padding:5px 0 0; margin:5px 0 0; font-size:11px; color:#756b80; border-top:1px solid #eee8f3; }
[data-luro-web-chat] .luro-web-chat__order-actions { display:flex; align-items:center; gap:8px; margin-top:6px; }
[data-luro-web-chat] .luro-web-chat__order-actions button { min-height:44px; border:0; border-radius:9px; padding:8px; font:inherit; font-weight:650; cursor:pointer; }
[data-luro-web-chat] .luro-web-chat__order-actions [data-order-card-edit] { flex:0 0 auto; background:transparent; color:#68577a; font-size:11px; }
[data-luro-web-chat] .luro-web-chat__order-actions [data-order-card-confirm] { flex:1; min-width:0; background:#7437bc; color:#fff; }
[data-luro-web-chat] .luro-web-chat__order-actions button:focus-visible { outline:2px solid #7437bc; outline-offset:2px; }
[data-luro-web-chat] .luro-web-chat__order-actions button:disabled { opacity:.6; cursor:default; }

/* LURO recommendation/picker only; chat shell and order card remain unchanged. */
.luro-web-chat__recommendations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-width:0}
.luro-web-chat__recommendation{min-width:0;display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #ece5f4;border-radius:12px;padding:8px;overflow:hidden}
.luro-web-chat__recommendation-photo{aspect-ratio:1;display:grid;place-items:center;border-radius:8px;overflow:hidden;background:#f4f1f7;color:#81748d;font-size:14px}
.luro-web-chat__recommendation-photo img{width:100%;height:100%;object-fit:cover;display:block}
.luro-web-chat__recommendation>strong{font-size:13px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.luro-web-chat__recommendation>b{font-size:15px;line-height:22px;color:#6b35ac}
.luro-web-chat__recommendation>button{min-height:38px;border:0;border-radius:8px;background:#f0e8fa;color:#602a9e;font:inherit;font-size:13px;font-weight:700;cursor:pointer;margin-top:2px}
.luro-web-chat__picker{box-sizing:border-box;width:calc(100% - 24px);max-width:410px;max-height:85vh;max-height:85dvh;border:0;border-radius:18px;padding:16px;background:#fff;color:#241a30;box-shadow:0 20px 70px #23143344;font:14px/1.45 system-ui,sans-serif;overflow:auto}
.luro-web-chat__picker::backdrop{background:#21162d88}
.luro-web-chat__picker *{box-sizing:border-box}
.luro-web-chat__picker header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.luro-web-chat__picker header>strong{font-size:16px}
.luro-web-chat__picker [data-picker-close]{border:0;background:#f5f1f8;border-radius:50%;width:36px;height:36px;font-size:24px;color:#493653;cursor:pointer}
.luro-web-chat__picker-product{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:center;margin-bottom:14px}
.luro-web-chat__picker-product>div{width:90px;height:106px;background:#f4f1f7;border-radius:9px;display:grid;place-items:center;overflow:hidden}
.luro-web-chat__picker-product img{width:100%;height:100%;object-fit:cover}
.luro-web-chat__picker-product section{min-width:0;display:flex;flex-direction:column;gap:6px}
.luro-web-chat__picker-product strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.luro-web-chat__picker-product b{font-size:20px;color:#6b35ac}.luro-web-chat__picker small{color:#827889}
.luro-web-chat__picker fieldset{border:0;padding:0;margin:0 0 14px;min-width:0}.luro-web-chat__picker legend{font-weight:650;margin-bottom:7px}
.luro-web-chat__picker-options{display:flex;flex-wrap:wrap;gap:7px}
.luro-web-chat__picker-options button{display:inline-flex;align-items:center;gap:6px;min-height:40px;min-width:42px;padding:6px 10px;border:1px solid #ddd3e8;border-radius:8px;background:#fff;color:#33243e;font:inherit;max-width:100%;overflow-wrap:anywhere;cursor:pointer}
.luro-web-chat__picker-options img{width:24px;height:28px;border-radius:4px;object-fit:cover}
.luro-web-chat__picker-options button[aria-pressed=true]{border-color:#783cba;background:#f4ecff;color:#6428a3;box-shadow:inset 0 0 0 1px #783cba}
.luro-web-chat__picker button:disabled{opacity:.42;cursor:not-allowed}
.luro-web-chat__picker [data-picker-add]{width:100%;min-height:44px;border:0;border-radius:10px;background:#7137b3;color:white;font:inherit;font-weight:700;cursor:pointer}
.luro-web-chat__picker footer p{font-size:12px;min-height:17px;margin:6px 0 0;color:#827889;text-align:center}
.luro-web-chat__picker button:focus-visible,.luro-web-chat__recommendation button:focus-visible{outline:2px solid #7137b3;outline-offset:2px}
