/* Purchase chat layout, shared between the customer and staff. */
.guty-modal.web-purchase-chat-modal,.modal-card.admin-web-chat-card{width:min(760px,calc(100vw - 26px))!important;max-width:none!important;height:min(780px,calc(100dvh - 30px))!important;max-height:calc(100dvh - 30px)!important;display:flex!important;flex-direction:column;padding:0!important;overflow:hidden!important;border-radius:22px!important;background:#0c192c;border:1px solid #324f73;box-shadow:0 28px 85px #0009}
.web-purchase-chat-head,.admin-web-chat-head{flex:none;display:flex;align-items:center;gap:12px;padding:16px 20px;background:linear-gradient(120deg,#172e4b,#101e32);border-bottom:1px solid #2d476a}.chat-head-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:13px;background:#203f65;border:1px solid #41628b;color:#9bd3ff}.chat-head-icon svg{width:24px;height:24px}.web-purchase-chat-head>div,.admin-web-chat-head>div{flex:1;min-width:0}.web-purchase-chat-head h2,.admin-web-chat-head h2{font-size:22px!important;margin:2px 0!important}.web-purchase-chat-head p,.admin-web-chat-head p{font-size:12px;margin:0!important}.web-purchase-chat-head .eyebrow,.admin-web-chat-head .package-kicker{font-size:10px;letter-spacing:.12em;color:#89b9e4}.web-purchase-chat-close,.admin-web-chat-close{display:grid;place-items:center;flex:none;width:38px;height:38px;min-width:0;padding:0!important;border-radius:11px!important;border:1px solid #365579;background:#172a44;color:#a6c3e5;cursor:pointer}.web-purchase-chat-close svg,.admin-web-chat-close svg{width:19px;height:19px}
.web-purchase-chat-messages,.admin-web-chat-messages{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:20px;gap:12px;scrollbar-width:thin;background:radial-gradient(ellipse at 0 0,#19314e70,transparent 50%),#0b1728;overscroll-behavior:contain}
.web-purchase-chat-bubble,.admin-web-chat-bubble{max-width:min(82%,520px);padding:11px 14px;border-radius:15px 15px 15px 5px;border:1px solid #30496b;background:#15263d;overflow-wrap:anywhere;min-width:0}.web-purchase-chat-message.mine .web-purchase-chat-bubble,.admin-web-chat-message.mine .admin-web-chat-bubble{border-radius:15px 15px 5px 15px;background:#1a426c;border-color:#3e72a6}.web-purchase-chat-message.sistema .web-purchase-chat-bubble,.admin-web-chat-message.system .admin-web-chat-bubble{border-radius:12px;background:#17273b;border-color:#2a405b;text-align:center;max-width:90%;font-size:12px}.web-purchase-chat-author,.admin-web-chat-bubble>strong{font-size:11px;color:#a1c8f4;margin-bottom:5px}.chat-message-text{font-size:14px;line-height:1.53;white-space:normal}.chat-message-meta{display:flex!important;align-items:center;justify-content:flex-end;gap:6px;font-size:10px!important;color:#b2c6e1!important;margin-top:6px!important}.chat-receipt{display:inline-flex;align-items:center;color:#b2c6e1}.chat-receipt.seen{color:#70dcff}.chat-receipt svg{width:19px;height:14px}.chat-image-link{display:block;margin:4px 0 7px}.chat-image{display:block;max-width:100%;max-height:300px;border-radius:9px;object-fit:contain;background:#091323;cursor:zoom-in}
.web-purchase-chat-form,.admin-web-chat-form{flex:none;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;padding:12px 16px!important;background:#101f33;border-top:1px solid #2d476a;position:relative}.web-purchase-chat-form.hidden,.admin-web-chat-form.hidden{display:none!important}.chat-composer-row{display:flex;align-items:flex-end;gap:7px;min-width:0}.chat-tool,.chat-attachment-preview button{display:grid;place-items:center;flex:none;width:38px;height:42px;color:#9abddd;border:1px solid #304b6d;background:#162a44;border-radius:11px;cursor:pointer}.chat-tool:hover,.chat-tool[aria-expanded=true]{background:#23486b;color:#fff}.chat-tool svg,.chat-attachment-preview button svg{width:21px;height:21px}.chat-composer-row textarea{flex:1;min-width:0!important;width:0!important;resize:none;height:42px;min-height:42px;max-height:100px;border-radius:12px!important;padding:11px!important;background:#0b1729;line-height:1.35}.chat-composer-row .chat-send{min-width:0!important;width:47px;height:42px;min-height:42px!important;flex:none;display:grid;place-items:center;padding:0!important;border-radius:12px!important}.chat-send svg{width:22px;height:22px}.chat-composer-hint{color:#8ca5c6;font-size:10px;line-height:1.3}.chat-emoji-picker{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:9px;border:1px solid #365476;background:#142740;border-radius:14px;max-height:155px;overflow:auto}.chat-emoji-picker[hidden],.chat-attachment-preview[hidden]{display:none!important}.chat-emoji-picker button{font-size:20px;border:0;border-radius:7px;background:transparent;cursor:pointer;padding:5px;color:inherit}.chat-emoji-picker button:hover{background:#274565}.chat-attachment-preview{display:flex;gap:9px;align-items:center;padding:8px;border:1px solid #345171;background:#142740;border-radius:12px}.chat-attachment-preview img{width:50px;height:50px;object-fit:cover;border-radius:7px}.chat-attachment-name{flex:1;min-width:0;overflow-wrap:anywhere;color:#b9d1eb;font-size:12px}.chat-attachment-preview button{width:32px;height:32px}.chat-attachment-preview button svg{width:17px;height:17px}
@media(max-width:520px){.guty-modal.web-purchase-chat-modal,.modal-card.admin-web-chat-card{width:calc(100vw - 14px)!important;height:calc(100dvh - 18px)!important;max-height:calc(100dvh - 18px)!important;border-radius:16px!important}.web-purchase-chat-head,.admin-web-chat-head{padding:12px;gap:9px}.chat-head-icon{width:39px;height:39px}.web-purchase-chat-head h2,.admin-web-chat-head h2{font-size:18px!important}.web-purchase-chat-messages,.admin-web-chat-messages{padding:12px;gap:10px}.web-purchase-chat-bubble,.admin-web-chat-bubble{max-width:90%;padding:9px 11px}.web-purchase-chat-form,.admin-web-chat-form{padding:10px!important}.chat-composer-row{gap:5px}.chat-tool{width:34px}.chat-composer-row .chat-send{width:42px}.chat-composer-hint{font-size:9px}.chat-emoji-picker{grid-template-columns:repeat(6,minmax(0,1fr))}}
