/* Trendish v262 — native support chat */
.support-chat-v262{position:fixed;left:22px;bottom:22px;z-index:9994;font-family:inherit;direction:rtl;color:#22152c}
.support-chat-v262 *{box-sizing:border-box}
.support-chat-launcher{height:58px;min-width:58px;border:0;border-radius:20px;background:linear-gradient(145deg,#f58fb2,#e65a93);box-shadow:0 14px 38px rgba(92,25,65,.24),0 4px 14px rgba(230,90,147,.22);display:flex;align-items:center;gap:9px;padding:0 15px;color:#fff;cursor:pointer;position:relative;transition:transform .2s ease,box-shadow .2s ease}
.support-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(92,25,65,.28),0 5px 16px rgba(230,90,147,.25)}
.support-chat-launcher-icon{width:29px;height:29px;display:grid;place-items:center}
.support-chat-launcher-icon svg{width:27px;height:27px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.support-chat-launcher-label{font-weight:800;font-size:13px;white-space:nowrap}
.support-chat-launcher-dot{position:absolute;right:8px;top:8px;width:9px;height:9px;border-radius:99px;background:#adb0ba;border:2px solid #fff}
.support-chat-launcher-dot.is-online{background:#2ecb73;box-shadow:0 0 0 4px rgba(46,203,115,.13)}
.support-chat-launcher-badge{position:absolute;left:-6px;top:-7px;min-width:22px;height:22px;padding:0 5px;border-radius:99px;background:#53227f;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-size:10px;font-weight:900;box-shadow:0 3px 10px rgba(45,17,74,.25)}
.support-chat-launcher-badge.is-hidden{display:none}

.support-chat-panel{position:absolute;left:0;bottom:70px;width:min(370px,calc(100vw - 28px));height:min(590px,calc(100vh - 110px));background:#fff;border:1px solid rgba(235,183,206,.7);border-radius:25px;overflow:hidden;box-shadow:0 28px 80px rgba(46,24,57,.22),0 8px 22px rgba(96,37,78,.10);display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(14px) scale(.97);transform-origin:bottom left;transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
.support-chat-panel.is-open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.support-chat-head{min-height:82px;padding:16px 17px;background:linear-gradient(135deg,#3b1463 0%,#5b1d84 58%,#7a2b8e 100%);color:#fff;display:flex;align-items:center;gap:11px;position:relative;overflow:hidden;flex:0 0 auto}
.support-chat-head:after{content:"";position:absolute;width:140px;height:140px;left:-42px;top:-72px;border-radius:50%;background:radial-gradient(circle,rgba(255,150,203,.34),rgba(255,150,203,0) 68%);pointer-events:none}
.support-chat-avatar{width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,#ff9abe,#f15f99);display:grid;place-items:center;font-size:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 8px 22px rgba(21,4,36,.18);flex:0 0 auto}
.support-chat-head-copy{min-width:0;display:flex;flex-direction:column;gap:5px;position:relative;z-index:1}
.support-chat-head-copy strong{font-size:15px;font-weight:900}
.support-chat-head-copy span{font-size:11px;color:#e8dcef;display:flex;align-items:center;gap:6px}
.support-chat-head-copy span i{width:7px;height:7px;border-radius:50%;background:#a9a5b2;display:inline-block}
.support-chat-head-copy span i.is-online{background:#43dc83;box-shadow:0 0 0 4px rgba(67,220,131,.14)}
.support-chat-minimize{margin-right:auto;width:34px;height:34px;border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:12px;font-size:24px;line-height:1;cursor:pointer;position:relative;z-index:1}
.support-chat-minimize:hover{background:rgba(255,255,255,.17)}

.support-chat-body{flex:1;min-height:0;overflow-y:auto;padding:15px 15px 10px;background:linear-gradient(180deg,#fff 0%,#fffafd 100%);scrollbar-width:thin;scrollbar-color:#e8c8d7 transparent}
.support-chat-welcome{background:linear-gradient(145deg,#fff5f9,#fff);border:1px solid #f3d5e2;border-radius:18px;padding:13px 14px;margin-bottom:11px}
.support-chat-welcome strong{font-size:13px;font-weight:900;display:block;margin-bottom:5px}
.support-chat-welcome p{font-size:11px;line-height:1.8;color:#786a76;margin:0 0 10px}
.support-chat-topics{display:flex;gap:6px;flex-wrap:wrap}
.support-chat-topics button{border:1px solid #ead8e1;background:#fff;color:#6f5a68;border-radius:11px;padding:7px 9px;font:inherit;font-size:10px;font-weight:800;cursor:pointer;transition:.18s ease}
.support-chat-topics button:hover,.support-chat-topics button.active{border-color:#ea7ca5;background:#fff0f6;color:#a63a68}
.support-chat-context,.support-chat-guest{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}
.support-chat-context{grid-template-columns:1fr;position:relative}
.support-chat-context label{font-size:10px;font-weight:800;color:#77616f;margin-right:3px}
.support-chat-context input,.support-chat-context select,.support-chat-guest input{width:100%;min-height:38px;border:1px solid #eed9e3;border-radius:12px;background:#fff;padding:8px 10px;font:inherit;font-size:11px;outline:none;color:#3b2a35}
.support-chat-context input:focus,.support-chat-context select:focus,.support-chat-guest input:focus{border-color:#df80a5;box-shadow:0 0 0 3px rgba(223,128,165,.10)}
.support-chat-context.is-hidden,.support-chat-error.is-hidden{display:none}
.support-chat-messages{display:flex;flex-direction:column;gap:8px;padding:2px 1px 6px}
.support-chat-message{max-width:84%;padding:9px 11px;border-radius:15px;font-size:11px;line-height:1.75;word-break:break-word;box-shadow:0 3px 9px rgba(49,25,39,.04)}
.support-chat-message.customer{align-self:flex-start;background:linear-gradient(135deg,#f48fb4,#e9699a);color:#fff;border-bottom-right-radius:5px}
.support-chat-message.admin{align-self:flex-end;background:#f5f0f5;color:#3e3040;border:1px solid #ebe1eb;border-bottom-left-radius:5px}
.support-chat-message.system{align-self:center;background:#fff8e5;color:#765a12;border:1px solid #f0e1ad;max-width:92%;font-size:10px;text-align:center}
.support-chat-message small{display:block;margin-top:3px;font-size:8px;opacity:.72;direction:ltr;text-align:left}
.support-chat-message.admin small{text-align:right;direction:rtl}
.support-chat-empty{text-align:center;color:#9b8b95;font-size:10px;padding:18px 8px 8px}
.support-chat-empty.is-hidden{display:none}
.support-chat-error{margin:7px 0 0;background:#fff1f1;border:1px solid #f4cece;color:#a84b4b;border-radius:11px;padding:8px 10px;font-size:10px}

.support-chat-compose{flex:0 0 auto;display:flex;align-items:flex-end;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid #f0dfe7}
.support-chat-compose textarea{flex:1;min-height:43px;max-height:112px;resize:none;border:1px solid #ead7e0;background:#fbf8fa;border-radius:15px;padding:11px 12px;font:inherit;font-size:11px;line-height:1.6;outline:none;color:#312330;overflow-y:auto}
.support-chat-compose textarea:focus{border-color:#e177a0;box-shadow:0 0 0 3px rgba(225,119,160,.09)}
.support-chat-compose button{width:43px;height:43px;border:0;border-radius:14px;background:linear-gradient(145deg,#f184ad,#e75691);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 7px 16px rgba(225,73,137,.22);flex:0 0 auto}
.support-chat-compose button:disabled{opacity:.55;cursor:wait}
.support-chat-compose button svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:scaleX(-1)}
.support-chat-alt{flex:0 0 auto;min-height:34px;padding:7px 13px;border-top:1px dashed #eedde5;background:#fffafd;display:flex;align-items:center;gap:8px;color:#9a8792;font-size:9px}
.support-chat-alt a{color:#b84e78;font-weight:800;text-decoration:none}
.support-chat-alt a:hover{text-decoration:underline}

@media (max-width:640px){
  .support-chat-v262{left:12px;bottom:14px}
  .support-chat-launcher{height:52px;min-width:52px;border-radius:17px;padding:0 12px}
  .support-chat-launcher-icon{width:25px;height:25px}.support-chat-launcher-icon svg{width:24px;height:24px}
  .support-chat-launcher-label{display:none}
  .support-chat-panel{position:fixed;left:10px;right:10px;bottom:76px;width:auto;height:min(560px,calc(100dvh - 96px));border-radius:22px;transform-origin:bottom left}
  .support-chat-head{min-height:74px;padding:13px 14px}.support-chat-avatar{width:40px;height:40px;border-radius:13px}
  .support-chat-body{padding:12px 11px 8px}.support-chat-welcome{padding:11px 12px}
  .support-chat-guest{grid-template-columns:1fr}
}
.support-chat-guest.is-hidden{display:none}
