.hc-chat-launcher { position: fixed; z-index: 80; right: 24px; bottom: 24px; display: flex; width: 54px; min-height: 54px; align-items: center; gap: 10px; overflow: visible; padding: 0 11px; border: 1px solid rgba(239,201,76,.58); border-radius: 999px; background: #0d2520; color: #fff; box-shadow: 0 16px 38px rgba(5,13,11,.25); font: 700 .78rem "Manrope", sans-serif; cursor: pointer; transition: width .28s cubic-bezier(.22,.61,.36,1), transform .22s ease, background .22s ease; }
.hc-chat-launcher:hover { transform: translateY(-2px); background: #12352d; }
.hc-chat-launcher:focus-visible { width: 190px; outline: 3px solid rgba(239,201,76,.34); outline-offset: 4px; }
.hc-chat-launcher__icon { display: flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; gap: 3px; border-radius: 50%; background: var(--gold); }
.hc-chat-launcher__icon i { width: 3px; height: 3px; border-radius: 50%; background: #101315; }
.hc-chat-launcher__label { max-width: 0; overflow: hidden; opacity: 0; transform: translateX(6px); white-space: nowrap; transition: max-width .28s cubic-bezier(.22,.61,.36,1), opacity .18s ease, transform .28s ease; }
.hc-chat-launcher:focus-visible .hc-chat-launcher__label { max-width: 130px; opacity: 1; transform: translateX(0); }
.hc-chat-launcher b { position: absolute; top: -7px; right: -7px; display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 20px; background: var(--gold); color: #101315; font-size: 10px; }
.hc-chat-launcher b[hidden] { display: none !important; }

@media (hover: hover) and (pointer: fine) {
  .hc-chat-launcher:hover { width: 190px; }
  .hc-chat-launcher:hover .hc-chat-launcher__label { max-width: 130px; opacity: 1; transform: translateX(0); }
}
.hc-chat { position: fixed; z-index: 90; right: 24px; bottom: 24px; width: min(420px, calc(100vw - 30px)); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: #fff; box-shadow: 0 30px 80px rgba(4,10,9,.32); opacity: 0; visibility: hidden; transform: translateY(20px) scale(.98); transform-origin: right bottom; transition: opacity .24s ease, transform .28s cubic-bezier(.2,.75,.25,1), visibility .24s ease; }
.hc-chat.is-open { opacity: 1; visibility: visible; transform: none; }
.hc-chat [hidden] { display: none !important; }
.hc-chat__head { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 13px 16px; background: #0d2520; color: #fff; }
.hc-chat__head > div:first-child { display: flex; align-items: center; gap: 11px; }
.hc-chat__head img { width: 38px; height: 38px; object-fit: contain; }
.hc-chat__head span { display: grid; }
.hc-chat__head strong { font-size: .84rem; }
.hc-chat__head small { color: rgba(255,255,255,.64); font-size: .68rem; }
.hc-chat__head-actions { display: flex; align-items: center; gap: 3px; }
.hc-chat__head-actions button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid transparent; border-radius: 2px; background: transparent; color: rgba(255,255,255,.82); font: 300 1.35rem/1 sans-serif; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.hc-chat__head-actions button:hover, .hc-chat__head-actions button:focus-visible { border-color: rgba(239,201,76,.45); background: rgba(255,255,255,.07); color: var(--gold); outline: none; }
.hc-chat__confirm { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(5,13,11,.76); backdrop-filter: blur(5px); animation: hcChatConfirmFade .18s ease both; }
.hc-chat__confirm-card { width: min(330px, 100%); padding: 28px; border: 1px solid rgba(239,201,76,.28); border-radius: 3px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.28); animation: hcChatConfirmIn .24s cubic-bezier(.2,.75,.25,1) both; }
.hc-chat__confirm-mark { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 18px; border-radius: 50%; background: #0d2520; color: var(--gold); font-size: 1rem; font-weight: 800; }
.hc-chat__confirm .eyebrow { margin-bottom: 8px; }
.hc-chat__confirm h2 { margin-bottom: 10px; font-size: 1.45rem; }
.hc-chat__confirm-card > p { margin-bottom: 22px; color: #626a6f; font-size: .76rem; line-height: 1.65; }
.hc-chat__confirm-error { padding: 9px 11px; border-left: 3px solid #b64e43; background: #fff0ee; color: #85372f !important; }
.hc-chat__confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hc-chat__confirm-actions button { min-height: 44px; border: 1px solid #d8d9d4; border-radius: 2px; background: #fff; color: #30373a; font: 750 .7rem "Manrope", sans-serif; cursor: pointer; }
.hc-chat__confirm-actions button:last-child { border-color: var(--gold); background: var(--gold); color: #101315; }
.hc-chat__confirm-actions button:hover, .hc-chat__confirm-actions button:focus-visible { border-color: #b99020; outline: 2px solid rgba(239,201,76,.35); outline-offset: 2px; }
.hc-chat__confirm-actions button:disabled { cursor: wait; opacity: .58; }
.hc-chat__body { max-height: min(680px, calc(100svh - 50px)); overflow-y: auto; }
.hc-chat__intro { padding: 25px 24px 22px; }
.hc-chat__intro .eyebrow { margin-bottom: 8px; }
.hc-chat__intro h2 { margin-bottom: 8px; font-size: 1.55rem; }
.hc-chat__intro > p { margin-bottom: 21px; color: var(--muted); font-size: .82rem; }
.hc-chat__intro form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.hc-chat__website { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.hc-chat__intro label { display: grid; gap: 5px; }
.hc-chat__intro label:nth-of-type(5), .hc-chat__intro label:nth-of-type(6), .hc-chat__intro form > button, .hc-chat__intro form > small, .hc-chat__error { grid-column: 1/-1; }
.hc-chat__intro label > span { color: #495256; font-size: .68rem; font-weight: 700; }
.hc-chat__intro input, .hc-chat__intro select, .hc-chat__intro textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #d8d9d4; border-radius: 2px; background: #fff; color: #101315; font: 500 .78rem "Manrope", sans-serif; }
.hc-chat__intro textarea { resize: vertical; }
.hc-chat__intro input:focus, .hc-chat__intro select:focus, .hc-chat__intro textarea:focus, .hc-chat__composer textarea:focus { outline: 2px solid rgba(239,201,76,.45); outline-offset: 1px; border-color: #c99b1b; }
.hc-chat__intro form > button { min-height: 48px; border: 0; border-radius: 2px; background: var(--gold); color: #101315; font: 800 .76rem "Manrope", sans-serif; cursor: pointer; }
.hc-chat__intro form > button:disabled { cursor: wait; opacity: .6; }
.hc-chat__intro form > small { color: #7a8285; font-size: .62rem; line-height: 1.45; text-align: center; }
.hc-chat__error { padding: 9px 11px; border-left: 3px solid #b64e43; background: #fff0ee; color: #85372f; font-size: .7rem; }
.hc-chat__conversation { display: grid; height: min(610px, calc(100svh - 126px)); grid-template-rows: auto minmax(0, 1fr) auto; }
.hc-chat__waiting { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #dedfd9; background: #faf5df; }
.hc-chat__waiting > i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #d4a72b; box-shadow: 0 0 0 5px rgba(212,167,43,.16); animation: hcChatPulse 1.8s infinite; }
.hc-chat__waiting span { display: grid; }
.hc-chat__waiting strong { font-size: .72rem; }
.hc-chat__waiting small { color: #6d7477; font-size: .61rem; }
.hc-chat__waiting.is-active > i { background: #36a56b; box-shadow: 0 0 0 5px rgba(54,165,107,.13); animation: none; }
.hc-chat__messages { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 18px; background: linear-gradient(180deg, #fff, #f8f8f5); }
.hc-chat-message { max-width: 82%; }
.hc-chat-message span { display: block; margin: 0 3px 3px; color: #7c8386; font-size: .58rem; font-weight: 700; }
.hc-chat-message p { margin: 0; padding: 10px 12px; border-radius: 3px 13px 13px; background: #e8e9e5; color: #242a2d; font-size: .76rem; line-height: 1.5; }
.hc-chat-message time { display: block; margin: 3px; color: #969c9e; font-size: .55rem; }
.hc-chat-message--visitor { align-self: flex-end; }
.hc-chat-message--visitor span, .hc-chat-message--visitor time { text-align: right; }
.hc-chat-message--visitor p { border-radius: 13px 3px 13px 13px; background: #0d2520; color: #fff; }
.hc-chat__composer { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 9px; padding: 12px 14px; border-top: 1px solid #dedfd9; }
.hc-chat__composer textarea { min-height: 44px; max-height: 110px; resize: none; padding: 10px 11px; border: 1px solid #d8d9d4; border-radius: 2px; font: 500 .76rem "Manrope", sans-serif; }
.hc-chat__composer button { border: 0; border-radius: 2px; background: var(--gold); color: #101315; cursor: pointer; }
.hc-chat__unavailable { padding: 44px 28px; text-align: center; }
.hc-chat__unavailable p { color: var(--muted); font-size: .82rem; }
.hc-chat__unavailable a { color: #9c7511; font-size: .75rem; font-weight: 800; }
.hc-chat__offline-success { padding: 52px 30px; text-align: center; }
.hc-chat__offline-success strong { display: block; margin-bottom: 10px; color: #0d2520; font-size: 1.2rem; }
.hc-chat__offline-success p { margin-bottom: 22px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.hc-chat__offline-success button { min-width: 120px; min-height: 44px; border: 0; border-radius: 2px; background: var(--gold); color: #101315; font: 800 .74rem "Manrope", sans-serif; cursor: pointer; }
@keyframes hcChatPulse { 50% { opacity: .45; } }
@keyframes hcChatConfirmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hcChatConfirmIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 540px) {
  .hc-chat-launcher { right: 14px; bottom: 14px; }
  .hc-chat-launcher__label { display: none; }
  .hc-chat-launcher { width: 54px; padding: 0; justify-content: center; }
  .hc-chat-launcher:focus-visible { width: 54px; }
  .hc-chat { right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .hc-chat__intro form { grid-template-columns: 1fr; }
  .hc-chat__intro label, .hc-chat__intro label:nth-of-type(5), .hc-chat__intro label:nth-of-type(6) { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-chat, .hc-chat-launcher, .hc-chat__waiting > i, .hc-chat__confirm, .hc-chat__confirm-card { animation: none; transition: none; }
}
