/* Widget Towdah — Modelo 3 */
#towdah-wa-widget {
  --wa-red: #f51d46;
  --wa-black: #171717;
  font-family: 'Manjari', Arial, sans-serif;
}
#towdah-wa-widget *,
#towdah-wa-widget *::before,
#towdah-wa-widget *::after { box-sizing: border-box; }
#towdah-wa-widget .towdah-wa-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--wa-black);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,.2);
  transition: transform .25s, background .25s;
}
#towdah-wa-widget .towdah-wa-toggle:hover {
  background: var(--wa-red);
  transform: translateY(-3px);
}
#towdah-wa-widget .towdah-wa-toggle svg { flex-shrink: 0; }
#towdah-wa-widget .towdah-wa-chat {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 9999;
  width: 340px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 116px);
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  overflow-x: hidden;
  overflow-y: hidden;
  box-shadow: 0 12px 42px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
#towdah-wa-widget .towdah-wa-chat.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#towdah-wa-widget .towdah-wa-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 20px;
  background: var(--wa-red);
  color: #fff;
}
#towdah-wa-widget .towdah-wa-header h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
#towdah-wa-widget .towdah-wa-header > div:not(.towdah-wa-logo) { flex: 1; min-width: 0; }
#towdah-wa-widget .towdah-wa-logo { flex: 0 0 54px; padding: 5px; border-radius: 8px; background: #fff; }
#towdah-wa-widget .towdah-wa-logo img { display: block; width: 44px; height: 33px; object-fit: contain; }
#towdah-wa-widget button:focus-visible { outline: 3px solid var(--wa-black); outline-offset: 3px; }
#towdah-wa-widget .towdah-wa-header p { margin: 0; color: #fff; font-size: 13px; }
#towdah-wa-widget .towdah-wa-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
#towdah-wa-widget .towdah-wa-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 20px;
  min-height: 0;
  overflow-y: auto;
}
#towdah-wa-widget .towdah-wa-options button {
  width: 100%;
  min-height: 32px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  color: #222;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
#towdah-wa-widget .towdah-wa-options button:hover {
  background: #fff5f7;
  border-color: var(--wa-red);
}
#towdah-wa-widget .towdah-wa-arrow { color: var(--wa-red); font-size: 16px; line-height: 1; flex-shrink: 0; }
#towdah-wa-widget .towdah-wa-footer {
  flex-shrink: 0;
  padding: 12px;
  background: #f7f7f7;
  color: #888;
  font-size: 11px;
  text-align: center;
}
#towdah-wa-widget .towdah-wa-toggle {
  width: 62px;
  height: 62px;
  padding: 0;
  justify-content: center;
  background: #25d366;
}
#towdah-wa-widget .towdah-wa-toggle:hover { background: #20bd5a; }
#towdah-wa-widget .towdah-wa-toggle svg { width: 34px; height: 34px; }
@media (max-width: 480px) {
  #towdah-wa-widget .towdah-wa-toggle { right: 16px; bottom: 16px; }
  #towdah-wa-widget .towdah-wa-chat {
    right: 16px;
    bottom: 84px;
    width: calc(100vw - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #towdah-wa-widget .towdah-wa-chat,
  #towdah-wa-widget .towdah-wa-toggle { transition: none; }
}
