#mpt-chat-wrapper {
  max-width: 880px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mpt-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  overflow: hidden;
  margin-bottom: 20px;
}

.mpt-header {
  text-align: center;
  padding: 40px 32px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.mpt-header .mpt-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.mpt-header h2 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 700; }
.mpt-header p { margin: 0; opacity: 0.9; font-size: 1rem; }

.mpt-intake {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mpt-intake label { font-weight: 600; color: #444; font-size: 0.9rem; }
.mpt-intake input, .mpt-intake select {
  padding: 12px 16px 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}
.mpt-intake input:focus, .mpt-intake select:focus { border-color: #667eea; }
#mpt-start-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}
#mpt-start-btn:hover { opacity: 0.9; }
.mpt-note { text-align: center; color: #888; font-size: 0.82rem; margin: 4px 0 0; }

/* Chat */
#mpt-chat {
  flex-direction: column;
  min-height: 480px;
}
.mpt-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.mpt-avatar {
  font-size: 2rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mpt-chat-header strong { display: block; font-size: 0.95rem; }
.mpt-status { font-size: 0.78rem; color: #22c55e; }
.mpt-counter {
  margin-left: auto;
  font-size: 0.78rem;
  color: #888;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 20px;
}
.mpt-counter-warn { background: #fef3c7; color: #d97706; }

.mpt-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mpt-msg { display: flex; }
.mpt-msg-user { justify-content: flex-end; }
.mpt-msg-assistant { justify-content: flex-start; }
.mpt-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.mpt-msg-user .mpt-bubble {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.mpt-msg-assistant .mpt-bubble {
  background: #f4f4f8;
  color: #222;
  border-bottom-left-radius: 4px;
}

.mpt-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
#mpt-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  resize: none;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
#mpt-input:focus { border-color: #667eea; }
#mpt-send-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
#mpt-send-btn:hover { opacity: 0.9; }

/* Paywall */
#mpt-paywall .mpt-header { padding: 32px 32px 20px; }
.mpt-pricing {
  display: flex;
  gap: 16px;
  padding: 24px 32px 32px;
  flex-wrap: wrap;
}
.mpt-price-card {
  flex: 1;
  min-width: 200px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
}
.mpt-price-card.featured { border-color: #667eea; }
.mpt-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.mpt-price-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.mpt-amount { font-size: 2rem; font-weight: 700; color: #222; margin-bottom: 16px; }
.mpt-amount span { font-size: 1rem; color: #888; font-weight: 400; }
.mpt-price-card ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.mpt-price-card li { font-size: 0.88rem; color: #555; }
.mpt-btn-primary, .mpt-btn-secondary {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.mpt-btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
.mpt-btn-secondary {
  background: #f4f4f8;
  color: #444;
}
.mpt-btn-primary:hover, .mpt-btn-secondary:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .mpt-intake { padding: 20px; }
  .mpt-pricing { padding: 16px; }
  .mpt-header { padding: 28px 20px 20px; }
}

/* Dropdown fix */
.mpt-intake select {
  -webkit-appearance: auto;
  appearance: auto;
  overflow: visible !important;
  text-overflow: clip;
}
.mpt-intake select option {
  padding: 10px 14px;
  font-size: 1rem;
}
/* Fullwidth auf grossen Screens */
@media (min-width: 900px) {
  #mpt-chat-wrapper { max-width: 860px; }
  .mpt-messages { max-height: 450px !important; }
  #mpt-chat { min-height: 620px !important; }
}

/* Select height + overflow fix */
.mpt-intake select {
  min-height: 50px !important;
  height: auto !important;
  line-height: 1.6 !important;
  padding: 13px 14px !important;
  overflow: visible !important;
  display: block !important;
}

.mpt-typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-radius: 18px 18px 18px 4px;
  width: fit-content;
  margin-bottom: 8px;
}
.mpt-typing span {
  width: 8px;
  height: 8px;
  background: #888;
  border-radius: 50%;
  display: inline-block;
  animation: mpt-bounce 1.2s infinite ease-in-out;
}
.mpt-typing span:nth-child(2) { animation-delay: 0.2s; }
.mpt-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mpt-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
