/* Nutekh floating chat — matches main-color #DDF160, sub-bg #1C1C1C */

.nutekh-chat-root {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 9998;
  isolation: isolate;
  font-family: "Poppins", sans-serif;
}

@media (max-width: 576px) {
  .nutekh-chat-root {
    right: 16px;
    bottom: 86px;
  }
}

body.light .nutekh-chat-root {
  --nutekh-chat-panel-bg: #fafafa;
  --nutekh-chat-panel-text: #1f1f1f;
  --nutekh-chat-muted: rgba(31, 31, 31, 0.65);
  --nutekh-chat-border: rgba(0, 0, 0, 0.08);
}

.nutekh-chat-root {
  --nutekh-chat-panel-bg: #1c1c1c;
  --nutekh-chat-panel-text: rgba(255, 255, 255, 0.92);
  --nutekh-chat-muted: rgba(255, 255, 255, 0.72);
  --nutekh-chat-border: rgba(255, 255, 255, 0.1);
}

.nutekh-chat-toggle {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ddf160 !important;
  color: #0f130f !important;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.nutekh-chat-toggle:hover {
  transform: scale(1.05);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.nutekh-chat-toggle i {
  font-size: 22px;
  line-height: 1;
}

.nutekh-chat-root.is-open .nutekh-chat-toggle-icon-open {
  display: none !important;
}
.nutekh-chat-root:not(.is-open) .nutekh-chat-toggle-icon-close {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .nutekh-chat-panel,
  .nutekh-chat-panel-backdrop,
  .nutekh-chat-toggle {
    transition: none !important;
  }
}

.nutekh-chat-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    visibility 0.26s ease;
}

body.nutekh-chat-panel-open .nutekh-chat-panel-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nutekh-chat-panel {
  position: fixed;
  bottom: 158px;
  right: 30px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--nutekh-chat-panel-bg);
  color: var(--nutekh-chat-panel-text);
  border: 1px solid var(--nutekh-chat-border);
  border-radius: 28px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(221, 241, 96, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  overflow: hidden;
  transition:
    opacity 0.26s ease,
    visibility 0.26s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 576px) {
  .nutekh-chat-panel {
    right: 16px;
    bottom: 150px;
  }
}

.nutekh-chat-root.is-open .nutekh-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nutekh-chat-submit[aria-busy="true"] {
  opacity: 0.72;
}

.nutekh-chat-panel-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.nutekh-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--nutekh-chat-border);
}

.nutekh-chat-head h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.nutekh-chat-head p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--nutekh-chat-muted);
  line-height: 1.45;
}

.nutekh-chat-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--nutekh-chat-panel-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

body.light .nutekh-chat-close {
  background: rgba(0, 0, 0, 0.06);
}

.nutekh-chat-close:hover {
  background: rgba(221, 241, 96, 0.18);
}

.nutekh-chat-quick {
  display: flex;
  gap: 10px;
  padding: 0 18px 14px;
  flex-wrap: wrap;
}

.nutekh-chat-quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none !important;
  border: 1px solid var(--nutekh-chat-border);
  color: var(--nutekh-chat-panel-text) !important;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.nutekh-chat-quick a:hover {
  border-color: rgba(221, 241, 96, 0.55);
  background: rgba(221, 241, 96, 0.1);
}

.nutekh-chat-quick .nutekh-chat-wa {
  border-color: rgba(37, 211, 102, 0.45);
}

.nutekh-chat-quick .nutekh-chat-wa:hover {
  background: rgba(37, 211, 102, 0.14);
}

.nutekh-chat-quick a i {
  font-size: 1rem;
}

.nutekh-chat-body {
  padding: 14px 18px 20px;
  flex: 1;
}

.nutekh-chat-note {
  font-size: 0.75rem;
  color: var(--nutekh-chat-muted);
  margin-bottom: 12px;
}

.nutekh-chat-field {
  margin-bottom: 12px;
}

.nutekh-chat-field input,
.nutekh-chat-field textarea {
  width: 100%;
  border: 1px solid var(--nutekh-chat-border);
  border-radius: 14px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--nutekh-chat-panel-text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.light .nutekh-chat-field input,
body.light .nutekh-chat-field textarea {
  background: #fff;
}

.nutekh-chat-field input::placeholder,
.nutekh-chat-field textarea::placeholder {
  color: var(--nutekh-chat-muted);
  opacity: 1;
}

.nutekh-chat-field textarea {
  min-height: 88px;
  resize: vertical;
}

.nutekh-chat-field input:focus,
.nutekh-chat-field textarea:focus {
  border-color: rgba(221, 241, 96, 0.55);
  box-shadow: 0 0 0 3px rgba(221, 241, 96, 0.12);
}

.nutekh-chat-submit-wrap {
  margin-top: 4px;
}

.nutekh-chat-submit {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  background-color: #ddf160 !important;
  color: #0f130f !important;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.nutekh-chat-submit:hover:not(:disabled) {
  opacity: 0.92;
}

.nutekh-chat-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nutekh-chat-feedback {
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  min-height: 1.2em;
}

.nutekh-chat-feedback[data-state="ok"] {
  color: #ddf160;
}

body.light .nutekh-chat-feedback[data-state="ok"] {
  color: #5c6a22;
}

.nutekh-chat-feedback[data-state="err"] {
  color: #ff8a80;
}

.nutekh-newsletter-msg {
  animation: nutekh-fade-in 0.25s ease;
}

@keyframes nutekh-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
