.kkta-root {
  --kkta-accent: #173b57;
  --kkta-bg: #f5f3ef;
  --kkta-text: #18212a;
  --kkta-muted: #66717c;
  --kkta-border: rgba(23, 59, 87, 0.16);
  color: var(--kkta-text);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.45;
  box-sizing: border-box;
  position: relative;
  z-index: 99998;
}

.kkta-root *, .kkta-root *::before, .kkta-root *::after { box-sizing: border-box; }
.kkta-root button, .kkta-root input, .kkta-root textarea { font: inherit; }

.kkta-floating {
  position: fixed;
  bottom: 22px;
}

.kkta-position-right { right: 22px; }
.kkta-position-left { left: 22px; }

.kkta-launcher {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--kkta-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 13px 32px rgba(12, 34, 51, 0.27);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.kkta-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(12, 34, 51, 0.33); }
.kkta-open .kkta-launcher { opacity: 0; pointer-events: none; }

.kkta-panel {
  width: min(390px, calc(100vw - 28px));
  min-height: 520px;
  max-height: min(720px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--kkta-border);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(12, 34, 51, 0.24);
}

.kkta-panel[hidden] { display: none !important; }
.kkta-floating .kkta-panel { position: absolute; bottom: 0; }
.kkta-position-right .kkta-panel { right: 0; }
.kkta-position-left .kkta-panel { left: 0; }
.kkta-inline .kkta-panel { width: 100%; max-width: 760px; min-height: 600px; margin: 24px auto; box-shadow: 0 16px 50px rgba(12, 34, 51, 0.12); }

.kkta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: #fff;
  background: var(--kkta-accent);
  font-family: Montserrat, Arial, sans-serif;
}

.kkta-header div { display: flex; flex-direction: column; gap: 1px; }
.kkta-header strong { font-size: 15px; letter-spacing: 0.08em; }
.kkta-header span { font-size: 12px; opacity: 0.83; }
.kkta-close { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 29px; line-height: 1; padding: 2px 4px; }

.kkta-progress { height: 3px; background: rgba(23, 59, 87, 0.08); }
.kkta-progress span { display: block; height: 100%; width: 0; background: #b79b5b; transition: width 220ms ease; }

.kkta-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px 10px;
  background: linear-gradient(180deg, var(--kkta-bg) 0, #fff 68%);
}

.kkta-bubble {
  max-width: 92%;
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 16px 16px 16px 4px;
  font-size: 17px;
}

.kkta-bot { background: #fff; border: 1px solid var(--kkta-border); box-shadow: 0 5px 18px rgba(12, 34, 51, 0.06); }
.kkta-field { margin-top: 6px; }

.kkta-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--kkta-text);
  background: #fff;
  border: 1px solid rgba(23, 59, 87, 0.28);
  border-radius: 10px;
  outline: none;
}

.kkta-input:focus { border-color: var(--kkta-accent); box-shadow: 0 0 0 3px rgba(23, 59, 87, 0.09); }
.kkta-input::placeholder { color: #93999f; }
textarea.kkta-input { resize: vertical; }

.kkta-actions { padding: 10px 20px 16px; background: #fff; }
.kkta-choices { display: grid; grid-template-columns: 1fr; gap: 9px; }
.kkta-choice {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  text-align: left;
  color: var(--kkta-accent);
  background: #fff;
  border: 1px solid rgba(23, 59, 87, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
}
.kkta-choice:hover { background: var(--kkta-accent); color: #fff; border-color: var(--kkta-accent); }

.kkta-nav { display: flex; align-items: center; gap: 9px; }
.kkta-primary, .kkta-secondary, .kkta-link {
  min-height: 43px;
  padding: 9px 14px;
  border-radius: 9px;
  cursor: pointer;
}
.kkta-primary { margin-left: auto; color: #fff; background: var(--kkta-accent); border: 1px solid var(--kkta-accent); }
.kkta-secondary { color: var(--kkta-accent); background: #fff; border: 1px solid rgba(23, 59, 87, 0.25); }
.kkta-link { color: var(--kkta-muted); background: transparent; border: 0; text-decoration: underline; }

.kkta-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--kkta-muted); }
.kkta-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--kkta-accent); }
.kkta-consent a { color: var(--kkta-accent); font-weight: 600; }
.kkta-error { margin-top: 10px; color: #a12b2b; font-family: Montserrat, Arial, sans-serif; font-size: 12px; }
.kkta-success { padding: 11px 13px; color: #1c6441; background: #edf8f2; border: 1px solid #bedfcd; border-radius: 9px; }
.kkta-powered { padding: 0 20px 13px; color: #8a9299; background: #fff; font-family: Montserrat, Arial, sans-serif; font-size: 10px; text-align: center; }

@media (max-width: 540px) {
  .kkta-floating { right: 14px; left: auto; bottom: 14px; }
  .kkta-position-left { left: 14px; right: auto; }
  .kkta-panel { width: calc(100vw - 28px); max-height: calc(100vh - 28px); min-height: min(610px, calc(100vh - 28px)); }
  .kkta-position-right .kkta-panel { right: 0; }
  .kkta-position-left .kkta-panel { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kkta-root *, .kkta-root *::before, .kkta-root *::after { scroll-behavior: auto !important; transition: none !important; }
}

