:root {
  --hnka-green: #8bc920;
  --hnka-green-dark: #73ad12;
  --hnka-navy: #0d1d31;
  --hnka-navy-soft: #162a40;
  --hnka-text: #17243a;
  --hnka-muted: #697386;
  --hnka-white: #ffffff;
}

body .smt-app-whatsapp {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.18s ease !important;
}

body .smt-app-whatsapp.hnka-smt-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.hnka-contact,
.hnka-contact * {
  box-sizing: border-box;
}

.hnka-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200000;
  font-family: inherit;
}

.hnka-contact.hnka-smt-active {
  opacity: 0;
  pointer-events: none;
}

.hnka-launcher {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: var(--hnka-green);
  box-shadow: 0 12px 34px rgba(13, 29, 49, 0.25);
  color: var(--hnka-white);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.hnka-launcher:hover,
.hnka-launcher:focus-visible {
  background: var(--hnka-green-dark);
  transform: translateY(-2px);
}

.hnka-launcher:focus-visible,
.hnka-menu-item:focus-visible,
.hnka-panel-close:focus-visible,
.hnka-composer button:focus-visible,
.hnka-quick-question:focus-visible,
.hnka-handoff a:focus-visible,
.hnka-handoff button:focus-visible {
  outline: 3px solid rgba(139, 201, 32, 0.45);
  outline-offset: 3px;
}

.hnka-launcher svg,
.hnka-menu-icon svg,
.hnka-panel-close svg,
.hnka-composer button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hnka-launcher-open,
.hnka-launcher-close {
  position: absolute;
  display: grid;
  place-items: center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hnka-launcher-close {
  opacity: 0;
  transform: rotate(-70deg) scale(0.75);
}

.hnka-contact.hnka-menu-open .hnka-launcher-open,
.hnka-contact.hnka-assistant-open .hnka-launcher-open {
  opacity: 0;
  transform: rotate(70deg) scale(0.75);
}

.hnka-contact.hnka-menu-open .hnka-launcher-close,
.hnka-contact.hnka-assistant-open .hnka-launcher-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.hnka-menu {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: grid;
  width: 224px;
  gap: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hnka-contact.hnka-menu-open .hnka-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hnka-menu-item {
  display: grid;
  min-height: 52px;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  align-items: center;
  margin: 0;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(13, 29, 49, 0.07);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(13, 29, 49, 0.16);
  color: var(--hnka-text) !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  text-decoration: none !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.hnka-menu-item:hover {
  box-shadow: 0 10px 28px rgba(13, 29, 49, 0.21);
  color: var(--hnka-text) !important;
  transform: translateX(-4px);
}

.hnka-menu-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--hnka-green);
  color: #fff;
}

.hnka-menu-icon svg {
  width: 19px;
  height: 19px;
}

.hnka-assistant {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 115px));
  grid-template-rows: auto minmax(140px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(13, 29, 49, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 29, 49, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.97);
  transform-origin: right bottom;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hnka-contact.hnka-assistant-open .hnka-assistant {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hnka-assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 18px 18px 21px;
  background: var(--hnka-navy);
  color: #fff;
}

.hnka-assistant-header > div {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 9px;
  align-items: center;
}

.hnka-assistant-header strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.hnka-assistant-header small {
  grid-column: 2;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 11px;
  line-height: 1.4;
}

.hnka-status-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hnka-green);
  box-shadow: 0 0 0 4px rgba(139, 201, 32, 0.15);
}

.hnka-panel-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  margin: -6px -5px 0 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.hnka-panel-close svg {
  width: 18px;
  height: 18px;
}

.hnka-messages {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 18px;
  background: #f4f6f8;
  scroll-behavior: smooth;
}

.hnka-message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.hnka-message--assistant {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(13, 29, 49, 0.08);
  color: var(--hnka-text);
}

.hnka-message--user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--hnka-navy);
  color: #fff;
}

.hnka-message--handoff {
  max-width: 100%;
  border: 1px solid #dce5d3;
  background: #f7faf4;
}

.hnka-message p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.hnka-handoff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.hnka-handoff a,
.hnka-handoff button {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid #d4dfc9;
  border-radius: 999px;
  background: #fff;
  color: var(--hnka-text) !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}

.hnka-handoff a:hover,
.hnka-handoff button:hover {
  border-color: var(--hnka-green);
  background: var(--hnka-green);
  color: var(--hnka-navy) !important;
}

.hnka-quick-questions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 14px;
  border-top: 1px solid #e7eaee;
  background: #fff;
  scrollbar-width: thin;
}

.hnka-quick-question {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #dce3e8;
  border-radius: 999px;
  background: #fff;
  color: var(--hnka-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.hnka-quick-question:hover {
  border-color: var(--hnka-green);
  background: #f5faec;
}

.hnka-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 10px 12px 8px;
  border-top: 1px solid #e7eaee;
  background: #fff;
}

.hnka-composer input {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #d9e0e6;
  border-radius: 999px;
  outline: none;
  background: #f8f9fa;
  color: var(--hnka-text);
  font-family: inherit;
  font-size: 13px;
}

.hnka-composer input:focus {
  border-color: var(--hnka-green);
  box-shadow: 0 0 0 3px rgba(139, 201, 32, 0.14);
}

.hnka-composer button {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--hnka-green);
  color: #fff;
  cursor: pointer;
}

.hnka-composer button svg {
  width: 18px;
  height: 18px;
}

.hnka-privacy {
  margin: 0;
  padding: 0 14px 11px;
  background: #fff;
  color: var(--hnka-muted);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 600px) {
  .hnka-contact {
    right: 16px;
    bottom: 16px;
  }

  .hnka-launcher {
    width: 56px;
    height: 56px;
  }

  .hnka-menu,
  .hnka-assistant {
    bottom: 68px;
  }

  .hnka-menu {
    width: 218px;
  }

  .hnka-assistant {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 100px);
  }

  .hnka-messages {
    min-height: 190px;
  }

  .hnka-message {
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hnka-contact *,
  body .smt-app-whatsapp {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

