.support-chat { font: 14px/1.45 Arial,sans-serif; color: #28222a; }
.support-chat [hidden], .support-chat__profile[hidden] { display: none !important; }
.support-chat button, .support-chat input, .support-chat textarea { font: inherit; }
.support-chat button { cursor: pointer; }
.support-chat button:disabled { opacity: .6; cursor: wait; }
.support-chat__launcher { position: fixed; right: 20px; bottom: 22px; z-index: 42; display: flex; align-items: center; gap: 12px; border: 2px solid white; border-radius: 18px; padding: 13px 20px; background: #704b63; color: white; box-shadow: 0 5px 22px #38283255; text-align: left; }
.support-chat__launcher:hover { background: #603b53; }
.support-chat__icon { width: 28px; height: 28px; flex: 0 0 auto; }
.support-chat__label strong { display: block; font-size: 16px; line-height: 1.35; }
.support-chat__label small { font-size: 13px; }
#supportChatBadge { padding: 3px 7px; background: #a73333; border: 1px solid white; border-radius: 12px; }
.support-chat__hint { position: fixed; right: 20px; bottom: 108px; z-index: 43; box-sizing: border-box; width: min(290px,calc(100vw - 32px)); padding: 18px; border: 1px solid #dccbd6; border-radius: 15px; background: white; box-shadow: 0 6px 28px #38283233; }
.support-chat__hint > strong { display: block; padding-right: 26px; }
.support-chat__hint p { margin: 8px 0 12px; color: #62565f; }
.support-chat__hint-close { position: absolute; top: 2px; right: 2px; border: 0; border-radius: 50%; background: transparent; color: #704b63; width: 40px; height: 40px; font-size: 25px !important; }
.support-chat__hint-open { border: 0; border-radius: 8px; padding: 10px 14px; background: #f3eaf0; color: #593349; font-weight: 700 !important; }
.support-chat__launcher.is-highlighted { animation: support-chat-highlight 1.1s ease-out 2; }
@keyframes support-chat-highlight { 50% { box-shadow: 0 0 0 7px #dbad6155, 0 5px 22px #38283255; } }
@media(prefers-reduced-motion: reduce) { .support-chat__launcher.is-highlighted { animation: none; } }
.support-chat__panel { position: fixed; right: 20px; bottom: 20px; z-index: 44; width: min(390px,calc(100vw - 24px)); height: min(720px,calc(100dvh - 40px)); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border: 1px solid #ddd0d8; border-radius: 18px; background: white; box-shadow: 0 12px 55px #38283240; overflow: auto; overscroll-behavior: contain; }
.support-chat__panel > header, .support-chat__intro, .support-chat__sound, .support-chat__form { flex-shrink: 0; }
.support-chat__sound { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 16px; border-bottom: 1px solid #eadfe5; }
.support-chat__sound button { padding: 7px 10px; border: 1px solid #d9cdd4; border-radius: 8px; background: #f9f5f8; color: #593349; font-size: 12px; }
.support-chat__sound small { flex: 1 1 140px; color: #62565f; }
.support-chat__panel header { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; background: #825f73; color: white; }
.support-chat small { display: block; font-size: 11px; line-height: 1.45; }
.support-chat__panel header strong { font-size: 18px; }
.support-chat__close { color: white; background: transparent; border: 0; font-size: 30px !important; width: 40px; height: 40px; }
.support-chat__intro { padding: 12px 16px; margin: 0; background: #f9f5f8; font-size: 12px; }
.support-chat a { color: #704c61; text-decoration: underline; }
.support-chat__messages { min-height: 75px; overflow: auto; overscroll-behavior: contain; padding: 12px; flex: 1 1 160px; }
.support-chat__messages:empty::before { content: 'Здравствуйте! Чем можем помочь?'; color: #766d75; }
.support-message { border-radius: 12px; background: #f3f0f4; padding: 10px 12px; margin: 0 25px 10px 0; overflow-wrap: anywhere; text-align: left; }
.support-message--own { background: #f4e9ef; margin: 0 0 10px 25px; }
.support-message__author { font-size: 11px; }
.support-message p { white-space: pre-wrap; margin: 5px 0; }
.support-message time { display: block; color: #776d75; font-size: 10px; margin-top: 5px; }
.support-message__page { font-size: 12px; }
.support-chat__form { padding: 12px 16px 16px; border-top: 1px solid #eadfe5; display: grid; gap: 8px; }
.support-chat__form label { display: grid; gap: 4px; font-size: 12px; }
.support-chat__form input:not([type=checkbox]), .support-chat__form textarea { width: 100%; box-sizing: border-box; border: 1px solid #d9cdd4; border-radius: 7px; padding: 8px; min-width: 0; background: white; color: #28222a; }
.support-chat__form textarea { resize: vertical; min-height: 70px; max-height: 180px; }
.support-chat__profile { margin: 0; border: 0; padding: 0; display: grid; gap: 8px; }
.support-chat__profile legend { font-size: 12px; margin-bottom: 7px; }
.support-chat__consent { display: flex !important; align-items: start; font-size: 11px !important; }
.support-chat__consent input { margin: 3px 5px 0 0; flex: 0 0 auto; }
.support-chat__form .support-chat__trap { display: none; }
.support-chat__send { background: #825f73; color: white; border: 0; border-radius: 8px; padding: 11px; font-weight: 700 !important; }
.support-chat__status { margin: 0; font-size: 12px; color: #704357; }
.support-chat :focus-visible { outline: 3px solid #dba34d; outline-offset: 2px; }
body:has(.cart-drawer[aria-hidden="false"]) .support-chat, body:has(.cookie-consent:not([hidden])) .support-chat { visibility: hidden; }
@media(max-width: 760px) {
  .support-chat__launcher { bottom: calc(78px + env(safe-area-inset-bottom)); right: 12px; padding: 10px 14px; gap: 9px; }
  .support-chat__label strong { font-size: 14px; }
  .support-chat__label small { font-size: 12px; }
  .support-chat__hint { right: 12px; bottom: calc(153px + env(safe-area-inset-bottom)); }
  .support-chat__panel { bottom: calc(72px + env(safe-area-inset-bottom)); right: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 88px - env(safe-area-inset-bottom)); }
  .support-chat input, .support-chat textarea { font-size: 16px; }
}
