/* KHO MÁY MỚI V1.2.19 — quote content first, mobile-first composer. */
.quote-composer{position:absolute;inset:0;z-index:30;display:none;min-height:0;overflow:hidden;flex-direction:column;color:#fff;background:radial-gradient(94% 66% at -10% -2%,rgba(29,111,198,.33) 0%,rgba(16,69,126,.17) 35%,transparent 69%),radial-gradient(80% 60% at 109% 22%,rgba(125,77,214,.22) 0%,rgba(69,40,131,.10) 38%,transparent 72%),radial-gradient(88% 62% at -5% 104%,rgba(20,129,124,.145) 0%,rgba(10,72,75,.06) 40%,transparent 73%),linear-gradient(160deg,#040a13 0%,#000 50%,#07060c 100%)}
.quote-composer.open{display:flex;animation:kmmComposerIn .20s var(--motion)}.detail.quote-composer-active{overflow:hidden;padding:0!important}
.quote-composer-header{position:relative;z-index:2;flex:none;min-height:80px;padding:calc(var(--safe-top) + 6px) var(--side) 9px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:10px;background:linear-gradient(180deg,rgba(4,9,17,.97),rgba(4,9,17,.82) 72%,rgba(4,9,17,0));-webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%)}
.quote-composer-back,.quote-composer-close{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.11);color:var(--blue);background:linear-gradient(145deg,rgba(53,53,58,.52),rgba(24,24,28,.52));box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 28px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%)}
.quote-composer-close{color:#fff;font-size:23px;font-weight:430;line-height:1}.quote-composer-back svg{width:20px;height:20px}.quote-composer-back:active,.quote-composer-close:active{transform:scale(.95)}
.quote-composer-heading{min-width:0;text-align:center}.quote-composer-heading strong{display:block;color:#f5f5f7;font-size:16px;line-height:1.15;font-weight:790;letter-spacing:.02em}.quote-composer-heading small{display:block;margin-top:3px;color:#9fa0a8;font-size:10.8px;font-weight:560}
.quote-composer-body{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px var(--side) 18px;scroll-padding-bottom:18px}
.quote-compose-card{margin-bottom:10px;padding:14px;border-radius:20px;background:linear-gradient(145deg,rgba(53,53,58,.52),rgba(24,24,28,.52));border:1px solid rgba(255,255,255,.11);box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 28px rgba(0,0,0,.16);-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%)}
.quote-compose-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;margin-bottom:10px}.quote-compose-section-head strong{color:#64d2ff;font-size:12.5px;font-weight:790;letter-spacing:.05em}.quote-compose-section-head small{color:#8e8e93;font-size:10.5px;text-align:right;line-height:1.25}.quote-content-head>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.quote-content-badge{display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border-radius:999px;color:#30d158;background:rgba(48,209,88,.10);border:1px solid rgba(48,209,88,.20);font-size:8.5px;font-weight:820;letter-spacing:.05em}
.quote-template-card{padding-bottom:12px}.quote-template-list{display:flex;gap:8px;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:none}.quote-template-list::-webkit-scrollbar{display:none}.quote-template-btn{flex:none;min-height:36px;padding:8px 13px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:linear-gradient(145deg,rgba(48,48,54,.46),rgba(19,19,23,.48));color:#f5f5f7;font-size:12px;font-weight:680;white-space:nowrap}.quote-template-btn.on{color:#fff;background:linear-gradient(145deg,rgba(10,132,255,.97),rgba(0,91,214,.78));border-color:rgba(108,191,255,.76);box-shadow:0 8px 22px rgba(10,132,255,.17),inset 0 1px 0 rgba(255,255,255,.23)}
.quote-current-summary{margin-top:9px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'name price' 'variant price';column-gap:10px;row-gap:2px;padding:9px 11px;border-radius:14px;background:rgba(4,19,34,.58);border:1px solid rgba(89,182,255,.12)}.quote-current-summary strong{grid-area:name;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f5f5f7;font-size:12.5px}.quote-current-summary span{grid-area:variant;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9fa0a8;font-size:10.5px}.quote-current-summary b{grid-area:price;align-self:center;color:#30d158;font-size:14px;font-variant-numeric:tabular-nums}
.quote-editor-card{padding-bottom:12px;border-color:rgba(89,182,255,.20);box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 0 0 1px rgba(10,132,255,.03),0 12px 30px rgba(0,0,0,.16)}
.quote-draft{width:100%;min-height:156px;padding:13px 14px;border:1px solid rgba(100,178,241,.28);border-radius:17px;outline:0;resize:vertical;background:linear-gradient(145deg,rgba(5,24,42,.90),rgba(3,14,26,.90));color:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;font-size:16px;line-height:1.48;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 18px rgba(10,132,255,.045)}.quote-draft:focus{border-color:rgba(89,182,255,.62);box-shadow:0 0 0 3px rgba(10,132,255,.09),inset 0 1px 0 rgba(255,255,255,.04)}
.quote-dirty-note{min-height:15px;margin:6px 2px 0;color:#8e8e93;font-size:10px;line-height:1.3}.quote-dirty-note.is-dirty{color:#ffb340}
.quote-editor-toolbar{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:9px 1px 0;scrollbar-width:none}.quote-editor-toolbar::-webkit-scrollbar{display:none}.quote-tool{flex:none;min-width:32px;height:32px;padding:0 8px;border:1px solid rgba(255,255,255,.10);border-radius:9px;background:rgba(255,255,255,.055);color:#f5f5f7;font-size:12.5px;font-weight:700}.quote-tool.emoji{font-size:15px;padding:0 7px}.quote-tool:active{transform:scale(.95)}.quote-regenerate{margin-left:auto;height:32px;padding:0 9px;border:0;border-radius:9px;background:transparent;color:#64d2ff;font-size:10.5px;font-weight:700;white-space:nowrap}
.quote-product-card{padding:0;overflow:hidden}.quote-product-card>summary{list-style:none;min-height:58px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.quote-product-card>summary::-webkit-details-marker{display:none}.quote-product-card>summary>span{min-width:0;display:grid;gap:3px}.quote-product-card>summary strong{color:#64d2ff;font-size:12px;font-weight:790;letter-spacing:.045em}.quote-product-card>summary small{color:#8e8e93;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quote-product-card>summary i{font-style:normal;color:#8e8e93;font-size:17px;transition:transform .20s var(--motion)}.quote-product-card[open]>summary i{transform:rotate(180deg)}.quote-product-card .quote-fields{padding:0 14px 14px;border-top:1px solid rgba(255,255,255,.07)}
.quote-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:13px}.quote-field{display:grid;gap:5px;min-width:0}.quote-field.full{grid-column:1/-1}.quote-field[hidden]{display:none}.quote-field>span{color:#b7c9db;font-size:11px;font-weight:650}.quote-field input,.quote-field textarea{width:100%;min-width:0;border:1px solid rgba(100,178,241,.20);outline:0;border-radius:13px;background:linear-gradient(145deg,rgba(7,29,49,.76),rgba(4,17,31,.78));color:#fff;font-family:inherit;font-size:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.035);transition:border-color .18s var(--motion),box-shadow .18s var(--motion)}.quote-field input{height:46px;padding:0 12px}.quote-field textarea{min-height:66px;padding:11px 12px;resize:vertical;line-height:1.45}.quote-field input:focus,.quote-field textarea:focus{border-color:rgba(89,182,255,.60);box-shadow:0 0 0 3px rgba(10,132,255,.10),inset 0 1px 0 rgba(255,255,255,.04)}
.quote-composer-footer{position:relative;z-index:2;flex:none;padding:10px var(--side) calc(10px + env(safe-area-inset-bottom));background:linear-gradient(0deg,rgba(2,5,10,.98),rgba(2,5,10,.90) 76%,rgba(2,5,10,0));-webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%)}.quote-final-copy{width:100%;min-height:50px;border:0;border-radius:17px;background:var(--blue);color:#fff;font-size:16.5px;font-weight:780;box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 10px 28px rgba(10,132,255,.20);transition:transform .18s var(--motion),background .18s var(--motion)}.quote-final-copy:active{transform:scale(.985)}.quote-final-copy.copied{background:linear-gradient(145deg,#32d76b,#20b954)}
.quote-composer-toast{position:absolute;left:50%;bottom:calc(74px + env(safe-area-inset-bottom));z-index:4;max-width:calc(100% - 36px);padding:9px 14px;border-radius:999px;color:#fff;background:rgba(28,28,30,.92);border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 28px rgba(0,0,0,.30);font-size:12px;font-weight:650;opacity:0;pointer-events:none;transform:translate(-50%,8px);transition:opacity .18s,transform .18s}.quote-composer-toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes kmmComposerIn{from{opacity:.35;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:380px){.quote-compose-card{padding:12px}.quote-template-card,.quote-editor-card{padding:12px}.quote-product-card{padding:0}.quote-current-summary{padding:8px 9px}.quote-current-summary b{font-size:13px}.quote-draft{min-height:145px}.quote-fields{grid-template-columns:1fr}.quote-field.full{grid-column:auto}.quote-composer-heading strong{font-size:15px}}
@media(min-width:768px){.quote-draft{min-height:190px}.quote-compose-card{padding:17px}.quote-template-card,.quote-editor-card{padding:17px}.quote-product-card{padding:0}.quote-product-card>summary{padding:14px 17px}.quote-product-card .quote-fields{padding:0 17px 17px}.quote-current-summary{padding:10px 12px}}
@media(min-width:1200px){.quote-composer-header{padding:14px 18px 10px}.quote-composer-body{padding:7px 18px 20px}.quote-composer-footer{padding:10px 18px 16px}.quote-draft{min-height:200px}}
@media(prefers-reduced-motion:reduce){.quote-composer.open{animation:none}.quote-composer-back,.quote-composer-close,.quote-template-btn,.quote-tool,.quote-final-copy,.quote-product-card>summary i{transition:none!important}}