.support-chat-dialog { width: min(680px, calc(100vw - 32px)); height: min(780px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; border: 1px solid #dce2e5; border-radius: 8px; background: #f7f9f8; color: #182321; }
.support-chat-dialog::backdrop { background: rgb(0 0 0 / 42%); }
.support-chat-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.support-chat-shell header { display: flex; flex: 0 0 auto; min-height: 54px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; box-sizing: border-box; background: #ffffff; border-bottom: 1px solid #e1e7e4; }
.support-chat-shell h1 { font-size: 17px; margin: 0; font-weight: 600; }
.support-chat-shell button { min-height: 36px; border: 1px solid #dce2e5; border-radius: 6px; background: #ffffff; color: #24332e; padding: 0 12px; cursor: pointer; flex-shrink: 0; }
.support-chat-shell button:disabled { opacity: .5; cursor: wait; }
.support-chat-shell [data-support-close] { font-size: 28px; width: 38px; padding: 0; border: 0; }
.support-chat-shell [hidden], .support-unread[hidden] { display: none !important; }
.support-chat-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.support-chat-shell .support-message { width: fit-content; max-width: 86%; margin: 0 0 14px; }
.support-chat-shell .support-message.mine { margin-left: auto; }
.support-chat-shell .support-message small { display: block; font-size: 11px; line-height: 1.5; color: #68746f; margin-bottom: 4px; overflow-wrap: anywhere; }
.support-chat-shell .support-message p { margin: 0; padding: 10px 12px; background: #ffffff; border: 1px solid #e1e7e4; border-radius: 6px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-chat-shell .support-message.mine p { background: #e9f6ef; border-color: #cbe4d5; }
.support-chat-empty { text-align: center; color: #68746f; font-size: 14px; }
.support-chat-compose { position:relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #ffffff; border-top: 1px solid #e1e7e4; }
.support-chat-compose textarea { box-sizing: border-box; flex: 1; min-width: 0; width: 0; resize: none; height: 36px; min-height: 36px; max-height: 36px; border: 1px solid #dce2e5; border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 14px; line-height: 20px; color: inherit; background: #ffffff; }
.support-chat-compose button { min-width: 52px; padding: 0 8px; background: #16634c; color: #ffffff; border-color: #16634c; }
.support-chat-error { color: #a82e2e; font-size: 13px; padding: 8px 12px; margin: 0; overflow-wrap: anywhere; }
.support-chat-shell [data-support-older], .support-chat-shell [data-support-new] { align-self: center; margin: 6px; }
.contact-list button[data-contact-type="service"], #contactEntry { position: relative; }
.support-unread { position: absolute; right: 36px; top: 12px; border-radius: 12px; padding: 2px 6px; min-width: 18px; text-align: center; font: 12px Arial, sans-serif; background: #b93636; color: #ffffff; }
#contactEntry strong { padding-right: 44px; }
#contactEntry .support-unread { top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .support-chat-dialog { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; } }
.support-composer-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; position: relative; min-height: 36px; }
.support-chat-compose .support-composer-tools button { min-width: 36px; background: #ffffff; color: #44564d; border-color: #dce2e5; }
.support-chat-compose [data-support-emoji] { font-size: 22px; padding: 0 8px; }
.support-chat-compose [data-support-image]{display:grid;place-items:center;width:36px;min-width:36px;padding:0;font-size:26px;line-height:1}
.support-composer-emoji{display:flex;align-items:center;flex:0 0 auto}
.support-chat-compose .support-composer-emoji>[data-support-emoji]{width:36px;min-width:36px;padding:0;background:#fff;color:#44564d;border-color:#dce2e5}
.support-emoji-picker { position: absolute; bottom: calc(100% + 8px); right: 8px; left:auto; display: grid; box-sizing:border-box; width:min(280px,calc(100% - 16px)); max-height:min(264px,40dvh); overflow-y:auto; overscroll-behavior:contain; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 4px; border: 1px solid #dce2e5; border-radius: 8px; padding: 8px; background: #ffffff; z-index: 2; box-shadow: 0 4px 16px rgb(0 0 0 / 10%); }
.support-chat-shell .support-emoji-picker button { border: 0; padding: 0; font-size: 22px; width:100%;min-width:0; height: 36px; }
.support-draft-photo { position: absolute; bottom: 48px; left: 0; width: 66px; height: 54px; padding: 4px; background: #ffffff; border: 1px solid #dce2e5; border-radius: 6px; }
.support-draft-photo img { width: 66px; height: 54px; object-fit: contain; background: #f4f7f5; }
.support-chat-shell .support-draft-photo button { position: absolute; right: -4px; top: -5px; min-width: 22px; width: 22px; min-height: 22px; height: 22px; padding: 0; border-radius: 50%; font-size: 18px; background: #ffffff; }
.support-chat-shell .support-message-image { display: flex; align-items: center; justify-content: center; margin-top: 4px; width: 260px; max-width: 100%; height: 200px; padding: 0; background: #ffffff; overflow: hidden; }
.support-message-image img { width: 100%; height: 100%; object-fit: contain; }
.support-chat-shell .support-delivery { text-align: right; margin-top: 4px; }

.support-chat-dialog .support-service-status{margin:0;padding:8px 16px;background:#eaf6f0;color:#24614f;font-size:12px;line-height:1.6}.support-chat-dialog .support-service-status.is-offline{background:#f3f5f7;color:#526573}
