
/* =====================================================
   MODA&FASHION - CHAT DE ATENCION AL CLIENTE
   Archivo: css/chat-widget.css
===================================================== */

#mf-chat-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: #252525;
  color: #ffffff;
  font-size: 27px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 5px 20px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}

#mf-chat-button:hover {
  transform: translateY(-3px);
  background: #3b1e42;
}

#mf-chat-window {
  position: fixed;
  right: 24px;
  bottom: 98px;
  width: 350px;
  max-width: calc(100vw - 30px);
  height: 490px;
  max-height: calc(100vh - 125px);
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 35px rgba(0,0,0,.20);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#mf-chat-window.mf-chat-open {
  display: flex;
  animation: mfChatAppear .2s ease;
}

@keyframes mfChatAppear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.mf-chat-header {
  background: #252525;
  color: #ffffff;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mf-chat-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mf-chat-brand strong {
  font-size: 15px;
  letter-spacing: .5px;
}

.mf-chat-brand span {
  font-size: 11px;
  color: #d4c5aa;
}

#mf-chat-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 25px;
  cursor: pointer;
}

.mf-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f6f2;
}

.mf-chat-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.mf-chat-bot {
  align-self: flex-start;
  background: #ffffff;
  color: #333333;
  border: 1px solid #eee9e1;
  border-bottom-left-radius: 3px;
}

.mf-chat-user {
  align-self: flex-end;
  background: #3b1e42;
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.mf-chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 3px;
}

.mf-chat-option {
  width: 100%;
  padding: 11px;
  border: 1px solid #c8b69a;
  background: #ffffff;
  color: #292929;
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
}

.mf-chat-option:hover {
  background: #f0ebe3;
}

.mf-chat-footer {
  padding: 12px 15px;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  text-align: center;
  color: #888888;
  font-size: 10px;
}

.mf-chat-whatsapp {
  display: block;
  padding: 11px 12px;
  background: #218c55;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  margin-top: 9px;
}

.mf-chat-whatsapp:hover {
  background: #176d40;
}

@media (max-width: 480px) {
  #mf-chat-button {
    right: 16px;
    bottom: 18px;
  }

  #mf-chat-window {
    right: 12px;
    bottom: 88px;
    width: min(340px, calc(100vw - 24px));
    height: min(390px, calc(100dvh - 130px));
    max-height: calc(100dvh - 130px);
    border-radius: 13px;
  }
}
