.happy-chat, .happy-chat * { box-sizing: border-box; }
.happy-chat { position: fixed; z-index: 75; right: 22px; bottom: 150px; color: #f7f4f1; font: 14px/1.45 Montserrat, Arial, sans-serif; }
.happy-chat__toggle { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 0 18px; border: 1px solid #ffc400; border-radius: 18px; background: #ffc400; box-shadow: 0 12px 30px #0008; color: #111; cursor: pointer; font: 700 15px Montserrat, Arial, sans-serif; }
.happy-chat__toggle::before { content: '✦'; font-size: 23px; }
.happy-chat__panel { position: absolute; right: 0; bottom: 66px; display: flex; flex-direction: column; width: min(390px, calc(100vw - 28px)); height: min(600px, calc(100dvh - 105px)); overflow: hidden; border: 1px solid #ffc40088; border-radius: 23px; background: #171717; box-shadow: 0 20px 70px #000b; }
.happy-chat__panel[hidden], .happy-chat__actions[hidden] { display: none; }
.happy-chat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #ffffff25; background: #202020; }
.happy-chat__head strong { display: block; color: #ffc400; font: 24px/1 Righteous, Arial, sans-serif; }
.happy-chat__head small { color: #d7d2cc; }
.happy-chat__close { width: 38px; height: 38px; border: 1px solid #ffffff50; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 23px; }
.happy-chat__messages { flex: 1; display: flex; flex-direction: column; gap: 11px; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
.happy-chat__bubble { max-width: 91%; padding: 11px 13px; border-radius: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.happy-chat__bubble--assistant { align-self: flex-start; border: 1px solid #ffffff24; background: #292929; }
.happy-chat__bubble--user { align-self: flex-end; background: #ffc400; color: #111; }
.happy-chat__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.happy-chat__actions a { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 12px; border: 1px solid #ffc400; border-radius: 999px; color: #ffc400; font-weight: 700; font-size: 12px; text-decoration: none; }
.happy-chat__actions a:first-child { background: #ffc400; color: #111; }
.happy-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #ffffff25; }
.happy-chat__input { min-width: 0; flex: 1; max-height: 90px; min-height: 43px; resize: vertical; padding: 10px; border: 1px solid #ffffff55; border-radius: 12px; background: #282828; color: #fff; font: inherit; }
.happy-chat__send { min-width: 57px; border: 0; border-radius: 12px; background: #ffc400; color: #111; font-weight: 800; cursor: pointer; }
.happy-chat__send:disabled { opacity: .55; cursor: wait; }
.happy-chat__note { margin: 0; padding: 0 14px 11px; color: #c8c3bd; font-size: 11px; }
.happy-chat :focus-visible { outline: 3px solid #b8ff2c; outline-offset: 2px; }
@media (max-width: 600px) {
  .happy-chat { right: 15px; bottom: 150px; }
  .happy-chat__panel { position: fixed; inset: auto 0 0; width: 100%; height: min(640px, 90dvh); border-radius: 23px 23px 0 0; }
  .happy-chat__form { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) { .happy-chat__panel { animation: happy-open .2s ease-out; } @keyframes happy-open { from { opacity: 0; transform: translateY(10px); } } }
