.tt-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  font-family: "Manrope", sans-serif;
}

.tt-chatbot__toggle {
  border: 2px solid #ff6b6b;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #ffe45e;
  background: #d61f1f;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(255, 107, 107, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  max-width: min(420px, calc(100vw - 48px));
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.tt-chatbot__max-label {
  color: #ffffff;
  font-weight: 900;
}


.tt-chatbot__hand {
  color: #ffffff;
}

.tt-chatbot__panel {
  width: min(380px, calc(100vw - 24px));
  height: 480px;
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #0d1c2c;
  border: 1px solid rgba(114, 240, 184, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.tt-chatbot__panel[hidden] {
  display: none !important;
}

.tt-chatbot__panel--open {
  display: grid !important;
}

.tt-chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #e9fff6;
  background: linear-gradient(90deg, #12324f, #0a4e66);
}

.tt-chatbot__title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tt-chatbot__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(114, 240, 184, 0.7);
}

.tt-chatbot__name {
  color: #7fe7ff;
}

.tt-chatbot__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tt-chatbot__messages {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt-chatbot__msg {
  max-width: 86%;
  font-size: 14px;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 12px;
}

.tt-chatbot__msg--bot {
  background: rgba(255, 255, 255, 0.08);
  color: #eff9ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tt-chatbot__wa-link {
  color: #7cfc98;
  font-weight: 800;
  text-decoration: none;
}

.tt-chatbot__wa-link:hover {
  text-decoration: underline;
}

.tt-chatbot__msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #72f0b8, #19d3ff);
  color: #04222d;
}

.tt-chatbot__quick {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
  flex-wrap: wrap;
}

.tt-chatbot__chip {
  border: 1px solid rgba(114, 240, 184, 0.45);
  background: rgba(114, 240, 184, 0.12);
  color: #c8ffe8;
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.tt-chatbot__chip--prices {
  border-color: rgba(255, 228, 94, 0.5);
  background: rgba(255, 228, 94, 0.16);
  color: #ffe45e;
}

.tt-chatbot__chip--budget {
  border-color: rgba(255, 230, 74, 0.9);
  background: rgba(255, 230, 74, 0.28);
  color: #fff4a3;
  font-weight: 700;
}

.tt-chatbot__chip--custom-blue {
  border-color: rgba(64, 157, 255, 0.45);
  background: rgba(64, 157, 255, 0.12);
  color: #cfe6ff;
  display: inline-flex;
  align-items: center;
}

.tt-chatbot__chip--custom-blue::before {
  content: "★";
  color: #4da6ff;
  font-size: 14px;
  margin-right: 4px;
  line-height: 1;
}

.tt-chatbot__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 12, 19, 0.45);
}

.tt-chatbot__input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 15, 24, 0.8);
  color: #eefcff;
  border-radius: 10px;
  padding: 9px 10px;
  min-width: 0;
  height: 40px;
}

.tt-chatbot__input:focus {
  outline: none;
  border-color: rgba(114, 240, 184, 0.75);
}

.tt-chatbot__send {
  border: 0;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  background: #72f0b8;
  color: #03262d;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .tt-chatbot {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: auto;
    display: block;
  }

  .tt-chatbot__toggle {
    width: min(320px, calc(100vw - 32px));
    max-width: min(320px, calc(100vw - 32px));
    margin-left: auto;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .tt-chatbot__panel {
    width: min(286px, calc(100vw - 32px));
    margin-left: auto;
    height: min(520px, calc(100vh - 104px));
  }
}

.tt-chatbot__highlight-yellow {
  color: #ffe45e !important;
  font-weight: 800 !important;
}

@media (min-width: 681px) and (max-width: 1024px) {
  .tt-chatbot {
    display: grid;
    justify-items: end;
    inset: auto 16px 16px auto;
    width: min(620px, calc(100vw - 32px));
  }

  .tt-chatbot__toggle {
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: normal;
    text-wrap: balance;
  }

  .tt-chatbot__panel {
    width: min(620px, calc(100vw - 32px));
    justify-self: end !important;
    margin-left: 0;
  }

  .tt-chatbot--tablet .tt-chatbot__toggle {
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-areas:
      "prefix max"
      "subtitle subtitle";
    justify-content: center;
    align-items: center;
    column-gap: 7px;
    row-gap: 2px;
    min-height: 62px;
    padding: 13px 18px;
    border: 2px solid #ff8f8f;
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 46%),
      linear-gradient(140deg, #d22323 0%, #b81313 55%, #a10f0f 100%);
    box-shadow:
      0 12px 26px rgba(0, 0, 0, 0.32),
      0 0 0 3px rgba(255, 90, 90, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  .tt-chatbot--tablet .tt-chatbot__toggle-prefix {
    grid-area: prefix;
    font-weight: 800;
    font-size: 0.98em;
    color: #ffe45e;
    letter-spacing: 0.01em;
  }

  .tt-chatbot--tablet .tt-chatbot__max-label {
    grid-area: max;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  }

  .tt-chatbot--tablet .tt-chatbot__toggle-subtitle {
    grid-area: subtitle;
    font-size: 0.82em;
    font-weight: 700;
    color: #ffe45e;
    letter-spacing: 0.015em;
    opacity: 0.96;
  }
}

/* Unified button radius for chatbot controls */
:root {
  --tt-btn-radius: 12px;
}

.tt-chatbot__toggle,
.tt-chatbot__close,
.tt-chatbot__send,
.tt-chatbot__chip {
  border-radius: var(--tt-btn-radius) !important;
}
