#cedi-chat-widget {
  --cedi-primary: #1A3C5E;
  position: fixed;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cedi-position-bottom-right {
  right: 24px;
  bottom: 24px;
}

.cedi-position-bottom-left {
  left: 24px;
  bottom: 24px;
  align-items: flex-start !important;
}

.cedi-launcher-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#cedi-chat-widget.cedi-chat-open .cedi-launcher-wrap {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

#cedi-chat-badge {
  background: linear-gradient(180deg, rgba(141, 37, 242, 0.96), rgba(105, 16, 206, 0.96));
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.15px;
  padding: 9px 14px;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(186, 135, 255, 0.9);
  border-right: 0;
  box-shadow: 0 0 0 1px rgba(186, 135, 255, 0.28), 0 0 18px rgba(138, 32, 238, 0.32);
  position: relative;
  z-index: 2;
}

#cedi-chat-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 16px;
  height: 2px;
  background: rgba(153, 74, 243, 0.95);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(153, 74, 243, 0.7);
}

#cedi-chat-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cedi-primary);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 rgba(138, 32, 238, 0.55);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: cedi-pulse 2s ease-in-out infinite;
  margin-left: -1px;
  border: 1px solid rgba(186, 135, 255, 0.9);
  z-index: 3;
}

#cedi-chat-bubble:hover {
  transform: scale(1.1);
}

#cedi-chat-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cedi-chat-panel {
  width: 480px;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #8f5cff;
  background-clip: padding-box;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25), 0 0 12px rgba(143, 92, 255, 0.35);
  animation: cedi-border-side-shift 4.2s linear infinite;
}

#cedi-chat-panel::before {
  content: none;
}

#cedi-chat-panel[hidden] {
  display: none !important;
}

@keyframes cedi-pulse {
  0% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(26, 60, 94, 0.55);
  }

  70% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 14px rgba(26, 60, 94, 0);
  }

  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(26, 60, 94, 0);
  }
}

#cedi-chat-panel.cedi-panel-open {
  animation: cedi-slide-up 0.25s ease, cedi-border-side-shift 4.2s linear infinite;
}

@keyframes cedi-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cedi-header {
  background: linear-gradient(115deg, #121624 0%, #181227 55%, #202a3c 100%);
  padding: 14px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border-bottom: 1px solid rgba(146, 111, 255, 0.35);
}

.cedi-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.cedi-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cedi-name {
  font-weight: 700;
  font-size: 14px;
}

.cedi-status {
  font-size: 12px;
  color: #7af4bc;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(125, 255, 176, 0.35);
}

#cedi-close-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #d7dff5;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  flex: 0 0 34px !important;
  line-height: 1 !important;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#cedi-messages {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  gap: 12px;
  flex: 1;
  min-height: 0;
  background: #111827;
}

.cedi-bubble-user {
  align-self: flex-end;
  background: var(--cedi-primary);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  max-width: 75%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid rgba(135, 160, 212, 0.35);
}

.cedi-bubble-cedi {
  align-self: flex-start;
  background: #1e2a3a;
  color: #e8edf3;
  border-radius: 16px 16px 16px 4px;
  max-width: 75%;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid rgba(156, 119, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(118, 78, 236, 0.08);
}

.cedi-msg-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cedi-msg-content {
  word-break: break-word;
  white-space: pre-line;
  color: #ffffff;
  background: linear-gradient(90deg, #b487ff 0%, #ffffff 50%, #b487ff 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cedi-text-purple-white 4.5s ease-in-out infinite;
}

.cedi-inline-link {
  color: #9fbeff;
  text-decoration: underline;
  font-weight: 600;
}

.cedi-inline-link:hover {
  color: #d2e2ff;
}

.cedi-donate-link {
  display: inline-block;
  margin-top: 6px;
  color: #9fbeff;
  font-weight: 700;
  text-decoration: underline;
}

.cedi-donate-farewell-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1A3C5E 0%, #0f2440 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 6px;
  border: 1px solid #C8963E;
  box-shadow: 0 4px 16px rgba(200, 150, 62, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
  line-height: 1.3;
  min-width: 220px;
}

.cedi-donate-farewell-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.55);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(135deg, #1e4875 0%, #122d54 100%);
}

.cedi-farewell-donate .cedi-msg-content {
  width: 100%;
}

.cedi-typing-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.cedi-typing-label {
  font-size: 13px;
  line-height: 1.2;
  color: #cfd9f5;
}

.cedi-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cedi-typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a7b9db;
  display: inline-block;
  opacity: 0.35;
  animation: cedi-typing-dot-pulse 1s infinite ease-in-out;
}

.cedi-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.cedi-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes cedi-typing-dot-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

#cedi-quick-replies {
  display: block;
  padding: 4px 16px 0;
  border-top: 1px solid rgba(146, 111, 255, 0.25);
  background: #121b2a;
  align-content: start;
  box-sizing: border-box;
  margin-bottom: 0;
  position: relative;
  overflow: visible;
}

.cedi-quick-head {
  position: absolute;
  top: -26px;
  right: 16px;
  z-index: 5;
  margin: 0;
}

.cedi-quick-toggle {
  width: 24px;
  height: 24px;
  border: 1px solid #1f8f49;
  background: #2fad5c;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 6px rgba(31, 143, 73, 0.28);
  position: relative;
}

#cedi-chat-widget #cedi-quick-replies .cedi-quick-toggle {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  flex: 0 0 24px !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.cedi-quick-toggle:hover {
  background: #259c4f;
  border-color: #1c8042;
  color: #ffffff;
}

.cedi-quick-toggle.cedi-toggle-collapsed {
  animation: cedi-toggle-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(47, 173, 92, 0.35), 0 0 14px rgba(47, 173, 92, 0.48);
}

.cedi-quick-toggle.cedi-toggle-collapsed::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(47, 173, 92, 0.45);
  pointer-events: none;
  animation: cedi-toggle-ring 1.4s ease-out infinite;
}

@keyframes cedi-toggle-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 1px rgba(47, 173, 92, 0.35), 0 0 10px rgba(47, 173, 92, 0.4);
  }
  50% {
    transform: translateY(0) scale(1.06);
    box-shadow: 0 0 0 1px rgba(47, 173, 92, 0.42), 0 0 18px rgba(47, 173, 92, 0.62);
  }
}

@keyframes cedi-toggle-ring {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.cedi-quick-toggle:hover::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  top: -28px;
  background: rgba(17, 17, 17, 0.95);
  color: #ffffff;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  padding: 4px 6px;
  border: 1px solid #2e2e2e;
  z-index: 15;
}

.cedi-quick-notice {
  display: none;
  position: absolute;
  right: 48px;
  top: -28px;
  font-size: 10px;
  line-height: 1.2;
  color: #ffffff;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid #2e2e2e;
  padding: 4px 6px;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 15;
}

.cedi-quick-notice.cedi-show {
  display: block;
}

.cedi-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: 0;
  padding-top: 4px;
  padding-bottom: 8px;
  max-height: 118px;
  overflow-y: auto;
}

.cedi-quick-btn {
  border: 1px solid rgba(161, 122, 255, 0.48);
  color: #d7c8ff;
  border-radius: 0;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  background: #151925;
  line-height: 1.2;
  white-space: nowrap;
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.cedi-quick-btn:hover {
  background: #1f2433;
  border-color: #c9afff;
  color: #efe7ff;
  transform: translateY(-1px);
}

/* Force override against theme button styles */
#cedi-chat-widget #cedi-quick-replies button.cedi-quick-btn,
#cedi-chat-widget .cedi-welcome-buttons button.cedi-welcome-btn {
  background: #151925 !important;
  color: #d7c8ff !important;
  -webkit-text-fill-color: #d7c8ff !important;
  border: 1px solid rgba(161, 122, 255, 0.48) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#cedi-chat-widget #cedi-quick-replies button.cedi-quick-btn:hover,
#cedi-chat-widget .cedi-welcome-buttons button.cedi-welcome-btn:hover {
  background: #1f2433 !important;
  color: #efe7ff !important;
  -webkit-text-fill-color: #efe7ff !important;
  border-color: #c9afff !important;
}

.cedi-welcome-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
}

.cedi-welcome-btn {
  border: 1px solid #d9c8ff;
  color: #6d2bf0;
  border-radius: 0;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  background: #f4f2f8;
  box-shadow: none;
  width: 100%;
  text-align: center;
  line-height: 1.2;
  min-height: 30px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cedi-welcome-btn:hover {
  border-color: var(--cedi-primary);
  transform: translateY(-1px);
}

#cedi-chat-widget .cedi-welcome-buttons .cedi-welcome-btn {
  color: #d7c8ff !important;
  background: #151925 !important;
  border: 1px solid rgba(161, 122, 255, 0.48) !important;
  box-shadow: none !important;
  width: 100% !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  min-height: 30px !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
}

#cedi-chat-widget .cedi-welcome-buttons .cedi-welcome-btn:hover {
  color: #efe7ff !important;
  border-color: #c9afff !important;
}

.cedi-unavailable-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
}

.cedi-unavailable-btn {
  border: 1px solid #d9c8ff;
  background: #151925;
  color: #d7c8ff;
  border-radius: 0;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 30px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
}

.cedi-unavailable-btn:hover {
  border-color: #c9afff;
  background: #1f2433;
  color: #efe7ff;
}

#cedi-chat-widget .cedi-unavailable-actions .cedi-unavailable-btn {
  border: 1px solid #d9c8ff !important;
  background: #151925 !important;
  color: #d7c8ff !important;
  -webkit-text-fill-color: #d7c8ff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  min-height: 30px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  width: auto !important;
}

#cedi-chat-widget .cedi-unavailable-actions .cedi-unavailable-btn:hover {
  border-color: #c9afff !important;
  background: #1f2433 !important;
  color: #efe7ff !important;
  -webkit-text-fill-color: #efe7ff !important;
}

.cedi-visitor-composer {
  align-self: stretch;
  border: 1px solid rgba(146, 111, 255, 0.32);
  background: #101521;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.cedi-visitor-title {
  font-size: 12px;
  font-weight: 700;
  color: #d6e0ff;
}

.cedi-visitor-input {
  width: 100%;
  border: 1px solid #3a4258;
  background: #090c14;
  color: #e8edff;
  border-radius: 0;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
  outline: none;
}

.cedi-visitor-textarea {
  width: 100%;
  border: 1px solid #3a4258;
  background: #090c14;
  color: #e8edff;
  border-radius: 0;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
  min-height: 70px;
}

.cedi-visitor-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.cedi-visitor-cancel,
.cedi-visitor-send {
  border-radius: 0;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 30px;
  min-width: 0;
  width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 auto;
  height: 30px;
}

.cedi-visitor-cancel {
  border: 1px solid #d9c8ff;
  background: #151925;
  color: #d7c8ff;
}

.cedi-visitor-send {
  border: 1px solid #d9c8ff;
  background: #151925;
  color: #d7c8ff;
}

.cedi-visitor-cancel:hover,
.cedi-visitor-send:hover {
  background: #1f2433;
  border-color: #c9afff;
  color: #efe7ff;
}

/* Force same visual style as quick-reply buttons */
#cedi-chat-widget .cedi-visitor-actions .cedi-visitor-cancel,
#cedi-chat-widget .cedi-visitor-actions .cedi-visitor-send {
  border: 1px solid #d9c8ff !important;
  background: #151925 !important;
  color: #d7c8ff !important;
  -webkit-text-fill-color: #d7c8ff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  min-height: 30px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: none !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: flex-start !important;
  height: 30px !important;
}

#cedi-chat-widget .cedi-visitor-actions .cedi-visitor-cancel:hover,
#cedi-chat-widget .cedi-visitor-actions .cedi-visitor-send:hover {
  background: #1f2433 !important;
  border-color: #c9afff !important;
  color: #efe7ff !important;
  -webkit-text-fill-color: #efe7ff !important;
}

.cedi-visitor-error {
  display: none;
  border: 1px solid #f2b5b5;
  background: #fff0f0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.25;
  padding: 5px 8px;
}

.cedi-visitor-error.cedi-show {
  display: block;
}

.cedi-visitor-input.cedi-invalid,
.cedi-visitor-textarea.cedi-invalid {
  border-color: #d92d20;
  background: #fff7f7;
}

.cedi-input-area {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #2a3545;
  background: #1a2330;
  align-items: center;
}

#cedi-input {
  flex: 1;
  border: 1px solid #2a3545;
  background: #0f1923;
  color: #e8edf3;
  border-radius: 0;
  padding: 10px 16px;
  resize: none;
  outline: none;
  font-size: 14px;
  line-height: 1.4;
  min-height: 44px;
  max-height: 120px;
}

#cedi-input::placeholder {
  color: #6b7a8d;
}

#cedi-send-btn {
  background: linear-gradient(180deg, #1f2432 0%, #141a26 100%);
  color: #d9cfff;
  border: 1px solid #6654a6;
  border-radius: 6px;
  width: 44px;
  height: 40px;
  min-width: 44px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(102, 84, 166, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#cedi-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(102, 84, 166, 0.5);
}

@keyframes cedi-border-side-shift {
  0% {
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-bottom-color: #8f5cff;
    border-left-color: #8f5cff;
  }
  25% {
    border-top-color: #8f5cff;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-left-color: #8f5cff;
  }
  50% {
    border-top-color: #8f5cff;
    border-right-color: #8f5cff;
    border-bottom-color: #ffffff;
    border-left-color: #ffffff;
  }
  75% {
    border-top-color: #ffffff;
    border-right-color: #8f5cff;
    border-bottom-color: #8f5cff;
    border-left-color: #ffffff;
  }
  100% {
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-bottom-color: #8f5cff;
    border-left-color: #8f5cff;
  }
}

@keyframes cedi-text-purple-white {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 540px) {
  .cedi-position-bottom-right,
  .cedi-position-bottom-left {
    right: 3vw;
    left: auto;
    bottom: 10px;
  }

  #cedi-chat-panel {
    width: 94vw;
    height: 78vh;
    position: fixed;
    right: 3vw;
    bottom: 0;
    margin-bottom: 0;
  }

  #cedi-chat-badge {
    display: none;
  }

  .cedi-welcome-buttons {
    grid-template-columns: 1fr 1fr;
  }

  #cedi-quick-replies {
    grid-template-columns: 1fr 1fr;
  }

  #cedi-messages {
    height: auto;
  }
}

.cedi-name-input-wrap {
  display: flex;
  gap: 8px;
  align-self: stretch;
  margin-top: 4px;
  width: 100%;
  align-items: stretch;
}

.cedi-name-input {
  flex: 1;
  border: 1px solid #2a3545;
  background: #0f1923;
  color: #e8edf3;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 0;
  outline: none;
  min-height: 56px;
  box-sizing: border-box;
}

.cedi-name-input::placeholder {
  color: #6b7a8d;
}

.cedi-name-input:focus {
  border-color: var(--cedi-primary);
}

.cedi-name-submit-btn {
  background: var(--cedi-primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  min-height: 56px;
  min-width: 180px;
  box-sizing: border-box;
}

.cedi-name-submit-btn:hover {
  opacity: 0.9;
}

/* Force consistent first-time visitor row styling over theme button/input styles */
#cedi-chat-widget .cedi-name-input-wrap {
  gap: 12px !important;
  width: 100% !important;
}

#cedi-chat-widget .cedi-name-input {
  background: #0f1923 !important;
  color: #e8edf3 !important;
  border: 1px solid #2a3545 !important;
  border-radius: 10px !important;
  min-height: 56px !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

#cedi-chat-widget .cedi-name-submit-btn {
  background: linear-gradient(180deg, #7a2ff2 0%, #5b19cc 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #8f5cff !important;
  border-radius: 10px !important;
  min-height: 56px !important;
  min-width: 190px !important;
  padding: 0 22px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  box-shadow: 0 6px 16px rgba(122, 47, 242, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#cedi-chat-widget .cedi-name-submit-btn:hover {
  background: linear-gradient(180deg, #8a45ff 0%, #6928db 100%) !important;
  box-shadow: 0 8px 18px rgba(122, 47, 242, 0.45) !important;
  transform: translateY(-1px);
}

#cedi-chat-widget .cedi-name-submit-btn:active {
  transform: translateY(0);
}
