﻿.quick-replies-popover{width:min(520px,calc(100vw - 24px));max-height:min(65vh,540px);padding:12px;z-index:40;overflow:auto;background:var(--surface,#fff);color:var(--ink,#172e29);border:1px solid var(--rule,#d8e0dc);border-radius:12px;box-shadow:0 10px 35px #142b2520}.quick-replies-head,.quick-replies-tools{display:flex;align-items:center;gap:8px;margin-bottom:10px}.quick-replies-head{justify-content:space-between;font-size:14px}.quick-replies-head small{display:block;color:var(--muted,#65766e);font-size:10px}.quick-replies-tools input{flex:1;min-width:0;width:auto}.quick-replies-tools select{width:145px;min-width:0}.quick-replies-cats{display:flex;gap:5px;overflow-x:auto;margin-bottom:8px}.quick-replies-cats button{white-space:nowrap;padding:5px 8px;font-size:11px}.quick-replies-cats button.active{background:#205c48;color:#fff}.quick-reply-row{display:flex;width:100%;gap:10px;align-items:flex-start;text-align:left;padding:10px;border:0;border-bottom:1px solid var(--rule,#e6ebe8);background:transparent;cursor:pointer;color:inherit}.quick-reply-row:hover,.quick-reply-row.active{background:#eaf3ee;outline:2px solid #49836b;outline-offset:-2px}.quick-reply-row img,.quick-reply-thumb{width:44px;height:44px;flex:0 0 44px;border-radius:6px;object-fit:cover;background:var(--rule-soft,#f1f4f2);display:grid;place-items:center;color:var(--muted,#65766e)}.quick-reply-copy{min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}.quick-reply-copy small{color:var(--muted,#65766e);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.quick-reply-copy code{font-size:11px;color:#205c48}.quick-replies-help{font-size:11px;color:var(--muted,#65766e);margin:8px 0 0}.quick-replies-status{font-size:12px;padding:7px;color:var(--muted,#65766e)}@media(max-width:767px){.quick-replies-popover{position:fixed;top:calc(8px + env(safe-area-inset-top));right:0;bottom:calc(8px + env(safe-area-inset-bottom));left:auto;width:min(86vw,360px);max-height:none;border-radius:16px 0 0 16px;box-shadow:-12px 0 35px #142b2530}.quick-replies-tools select{width:120px}}
#quick-replies{display:inline-flex}
@media(max-width:767px){.quick-replies-popover{padding:12px 10px}.quick-replies-head{min-height:32px}.quick-replies-tools{position:sticky;top:-12px;padding:8px 0;background:var(--surface,#fff)}.quick-reply-row{min-height:60px;padding:12px 8px;font-size:15px}.quick-reply-copy small{-webkit-line-clamp:2}.quick-replies-help{padding-bottom:env(safe-area-inset-bottom)}}
/* แตะแล้วต้องเห็นผลทันทีแบบ LINE: ไฮไลต์ตอนนิ้วแตะ, ไม่มีกรอบ hover ค้างบนจอสัมผัส */
.quick-reply-row,#quick-replies,#quote-png{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.quick-reply-row:active{background:#d6eadf}
#quick-replies:active,#quote-png:active{transform:scale(.96)}
@media(hover:none){.quick-reply-row:hover:not(.active){background:transparent;outline:0}}
