.ntt-assistant {
  --ntt-blue: #079fc8;
  --ntt-blue-dark: #007fa9;
  --ntt-pink: #da2d82;
  --ntt-yellow: #f2c400;
  --ntt-ink: #172433;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1090;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ntt-ink);
}

.ntt-assistant *, .ntt-assistant *::before, .ntt-assistant *::after { box-sizing: border-box; }

.ntt-assistant__launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 7px 18px 7px 8px;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #e43b91 0%, #c91f72 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(201, 31, 114, .32);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ntt-assistant__launcher:hover, .ntt-assistant__launcher:focus { background: linear-gradient(135deg, #d72d83 0%, #b71964 100%); color: #fff; }
.ntt-assistant__launcher:focus-visible, .ntt-assistant button:focus-visible, .ntt-assistant input:focus-visible { outline: 3px solid var(--ntt-yellow); outline-offset: 2px; }
.ntt-assistant__launcher-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ntt-pink); font-size: 23px; }

.ntt-assistant__panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 380px;
  max-height: min(620px, calc(100vh - 105px));
  overflow: hidden;
  border: 1px solid #d8e0e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(18, 37, 55, .24);
}

.ntt-assistant__panel[hidden] { display: none; }
.ntt-assistant__header { display: flex; align-items: center; gap: 11px; padding: 15px 16px; background: linear-gradient(135deg, #0cadd0 0%, #078fbc 100%); color: #fff; }
.ntt-assistant__header strong { display: block; font-size: 15px; }
.ntt-assistant__header span { display: block; margin-top: 2px; font-size: 12px; opacity: .9; }
.ntt-assistant__header span i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #78dc8b; }
.ntt-assistant__avatar { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 12px; background: #fff; }
.ntt-assistant__avatar img { display: block; width: 32px; height: 32px; object-fit: contain; }
.ntt-assistant__close { margin-left: auto; padding: 2px 7px; border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

.ntt-assistant__messages { height: 390px; max-height: calc(100vh - 255px); padding: 16px; overflow-y: auto; background: #f5f7f9; }
.ntt-assistant__message { width: fit-content; max-width: 88%; margin: 0 0 10px; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; white-space: pre-line; }
.ntt-assistant__message--bot { border: 1px solid #e1e7ec; border-top-left-radius: 4px; background: #fff; }
.ntt-assistant__message--user { margin-left: auto; border-top-right-radius: 4px; background: linear-gradient(135deg, #0aa7cc 0%, #078ab5 100%); color: #fff; }
.ntt-assistant__message a { color: var(--ntt-blue); font-weight: 700; text-decoration: underline; }
.ntt-assistant__message--user a { color: #fff; }
.ntt-assistant__message--loading { color: #5d6873; }

.ntt-assistant__quick-actions, .ntt-assistant__results { display: grid; gap: 7px; margin: 3px 0 12px; }
.ntt-assistant__quick-actions button, .ntt-assistant__result-button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9cee1;
  border-radius: 10px;
  background: #fff;
  color: var(--ntt-blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.ntt-assistant__quick-actions button:hover, .ntt-assistant__result-button:hover { border-color: var(--ntt-blue); background: #ebf9fc; }

.ntt-assistant__products { display: grid; gap: 8px; margin: 7px 0 12px; }
.ntt-assistant__product { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 8px; border: 1px solid #dfe6ec; border-radius: 10px; background: #fff; color: var(--ntt-ink); text-decoration: none; }
.ntt-assistant__product:hover { border-color: var(--ntt-blue); text-decoration: none; }
.ntt-assistant__product img { width: 52px; height: 52px; object-fit: contain; }
.ntt-assistant__product strong { display: block; font-size: 12px; line-height: 1.3; }
.ntt-assistant__product span { display: block; margin-top: 4px; color: var(--ntt-blue); font-size: 13px; font-weight: 800; }
.ntt-assistant__all-link { display: inline-block; margin: 2px 0 12px; padding: 9px 12px; border-radius: 9px; background: var(--ntt-yellow); color: #333 !important; text-decoration: none !important; }

.ntt-assistant__form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid #e1e6eb; background: #fff; }
.ntt-assistant__form input { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #cbd4dc; border-radius: 10px; color: var(--ntt-ink); font-size: 14px; }
.ntt-assistant__form button { border: 0; border-radius: 10px; background: linear-gradient(135deg, #0aa7cc 0%, #078ab5 100%); color: #fff; font-size: 21px; cursor: pointer; }
.ntt-assistant__privacy { margin: 0; padding: 2px 12px 9px; background: #fff; color: #747f89; font-size: 10px; text-align: center; }

@media (max-width: 520px) {
  .ntt-assistant { right: 12px; bottom: 12px; left: 12px; }
  .ntt-assistant__launcher { margin-left: auto; }
  .ntt-assistant__panel { position: fixed; right: 10px; bottom: 76px; left: 10px; width: auto; max-height: calc(100vh - 90px); border-radius: 16px; }
  .ntt-assistant__messages { height: min(390px, calc(100vh - 255px)); }
}

@media (prefers-reduced-motion: no-preference) {
  .ntt-assistant__panel { animation: ntt-assistant-in .18s ease-out; transform-origin: bottom right; }
  @keyframes ntt-assistant-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
}
