.support-widget {
  position: relative;
  z-index: 1250;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.support-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1251;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #f27a1a;
  box-shadow: 0 12px 32px rgba(48, 24, 8, .28);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.whatsapp-float + .support-widget .support-launcher { bottom: 84px; }
.support-launcher:hover { background: #dc690e; transform: translateY(-1px); }
.support-launcher:focus-visible,
.support-close:focus-visible,
.support-submit:focus-visible { outline: 3px solid rgba(242, 122, 26, .35); outline-offset: 3px; }
.support-launcher-icon { font-size: 19px; }
.support-launcher-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}
.support-launcher-dot.is-online { background: #36d17c; box-shadow: 0 0 0 3px rgba(54, 209, 124, .2); }

.support-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 1252;
  width: min(380px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  background: #fff;
  color: #20242b;
  box-shadow: 0 24px 64px rgba(21, 25, 34, .24);
}
.whatsapp-float + .support-widget .support-panel { bottom: 146px; }
.support-panel[hidden] { display: none; }

.support-header {
  min-height: 76px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f27a1a, #e85d3f);
}
.support-header strong { display: block; font-size: 16px; }
.support-status { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 12px; opacity: .95; }
.support-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; }
.support-status-dot.is-online { background: #53e690; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.support-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.support-body { padding: 17px; max-height: calc(min(640px, 100vh - 120px) - 76px); overflow-y: auto; }
.support-intro { margin: 0 0 15px; color: #5d6571; font-size: 13px; line-height: 1.5; }
.support-feedback { padding: 9px 11px; margin-bottom: 12px; border-radius: 8px; color: #9d351e; background: #fff1eb; font-size: 12px; }
.support-feedback.is-success { color: #176339; background: #eafaf1; }
.support-start-form label { display: block; margin-bottom: 11px; color: #4c5562; font-size: 12px; font-weight: 600; }
.support-start-form input,
.support-start-form textarea,
.support-reply-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px 11px;
  border: 1px solid #dce0e6;
  border-radius: 9px;
  background: #fff;
  color: #20242b;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.support-start-form input:focus,
.support-start-form textarea:focus,
.support-reply-form textarea:focus { outline: 2px solid rgba(242, 122, 26, .2); border-color: #f27a1a; }
.support-start-form small { display: block; margin-top: 9px; color: #7b8491; font-size: 10px; line-height: 1.4; }
.support-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.support-submit {
  width: 100%;
  min-height: 43px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: #f27a1a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.support-submit:hover { background: #dc690e; }
.support-submit:disabled { opacity: .6; cursor: wait; }

.support-messages { display: flex; flex-direction: column; gap: 9px; margin: 0 -3px 14px; }
.support-message { max-width: 86%; padding: 9px 11px; border-radius: 12px 12px 12px 3px; background: #f1f3f6; }
.support-message.is-visitor { align-self: flex-end; border-radius: 12px 12px 3px 12px; color: #fff; background: #f27a1a; }
.support-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.support-message time { display: block; margin-top: 4px; font-size: 9px; opacity: .7; }
.support-reply-form { display: grid; grid-template-columns: 1fr 78px; gap: 8px; align-items: end; }
.support-start-form[hidden],
.support-intro[hidden],
.support-messages[hidden],
.support-reply-form[hidden] { display: none !important; }
.support-reply-form textarea { margin: 0; min-height: 43px; }
.support-reply-form .support-submit { width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body.cookie-consent-open .support-launcher { bottom: 116px; }
body.cookie-consent-open .support-panel { bottom: 178px; }
body.cookie-consent-open .whatsapp-float + .support-widget .support-launcher { bottom: 174px; }
body.cookie-consent-open .whatsapp-float + .support-widget .support-panel { bottom: 236px; }

@media (max-width: 600px) {
  .support-launcher { right: 14px; bottom: 14px; }
  .whatsapp-float + .support-widget .support-launcher { bottom: 74px; }
  .support-panel,
  .whatsapp-float + .support-widget .support-panel {
    right: 14px;
    bottom: 78px;
    max-height: calc(100vh - 100px);
  }
  body.cookie-consent-open .support-panel { bottom: 150px; }
}
