/* OLDDAT - WhatsApp flotante V2 */
.old-wa-root,
.old-wa-root * {
  box-sizing: border-box;
}

.old-wa-root {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.old-wa-root.old-wa-root--panel {
  right: auto;
  left: max(16px, env(safe-area-inset-left));
}

.old-wa-root.old-wa-root--panel .old-wa-panel {
  right: auto;
  left: 0;
  transform-origin: left bottom;
}

.old-wa-launcher {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #1fa855;
  box-shadow: 0 10px 24px rgba(9, 54, 32, .24);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.old-wa-launcher:hover {
  background: #178b46;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(9, 54, 32, .3);
}

.old-wa-launcher:focus-visible,
.old-wa-close:focus-visible,
.old-wa-action:focus-visible,
.old-wa-copy-btn:focus-visible {
  outline: 3px solid rgba(31, 168, 85, .28);
  outline-offset: 3px;
}

.old-wa-launcher svg {
  width: 29px;
  height: 29px;
  display: block;
  fill: currentColor;
}

.old-wa-pulse {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffdc5d;
  border: 3px solid #fff;
}

.old-wa-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(316px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(7, 58, 103, .11);
  border-radius: 18px;
  background: #fff;
  color: #0d2b45;
  box-shadow: 0 18px 44px rgba(5, 43, 77, .2);
  transform-origin: right bottom;
  animation: old-wa-open .18s ease-out;
}

.old-wa-panel[hidden] {
  display: none !important;
}

.old-wa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: #fff;
  background: linear-gradient(135deg, #137f42, #20a958);
}

.old-wa-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  font-size: 14px;
}

.old-wa-head-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.17);
}

.old-wa-head-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.old-wa-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.15);
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.old-wa-close:hover {
  background: rgba(255,255,255,.25);
}

.old-wa-body {
  padding: 16px;
}

.old-wa-message {
  margin: 0 0 14px;
  color: #557188;
  font-size: 14px;
  line-height: 1.55;
}

.old-wa-action {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  padding: 11px 14px;
  color: #fff !important;
  background: #168b47;
  text-decoration: none !important;
  font-weight: 900;
  font-size: 14px;
  transition: background .18s ease, transform .18s ease;
}

.old-wa-action:hover {
  background: #116f39;
  transform: translateY(-1px);
}

.old-wa-number-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(7, 58, 103, .08);
}

.old-wa-number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: center;
}

.old-wa-number-label {
  color: #6c7f91;
  font-size: 12px;
}

.old-wa-number-link {
  color: #0d62a6;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.old-wa-copy-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 98, 166, .18);
  border-radius: 8px;
  background: #f6fbff;
  color: #0d62a6;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.old-wa-copy-btn:hover {
  background: #eef7ff;
  border-color: rgba(13, 98, 166, .3);
}

.old-wa-copy-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.old-wa-copy-feedback {
  margin-top: 6px;
  min-height: 16px;
  text-align: center;
  color: #168b47;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .16s ease;
}

.old-wa-copy-feedback.is-visible {
  opacity: 1;
}

.old-contact-whatsapp {
  margin-top: 20px;
  padding: 16px 17px;
  border: 1px solid rgba(22, 139, 71, .22);
  border-radius: 16px;
  background: #f0fbf5;
  color: #173f31;
}

.old-contact-whatsapp strong {
  display: block;
  margin-bottom: 5px;
  color: #116f39;
}

.old-contact-whatsapp a {
  color: #0b7040;
  font-weight: 900;
  text-decoration: none;
}

.old-contact-whatsapp a:hover {
  text-decoration: underline;
}

.old-contact-whatsapp small {
  display: block;
  margin-top: 5px;
  color: #587267;
  line-height: 1.45;
}

@keyframes old-wa-open {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .old-wa-root,
  .old-wa-root.old-wa-root--panel {
    right: max(14px, env(safe-area-inset-right));
    left: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .old-wa-root.old-wa-root--panel .old-wa-panel {
    right: 0;
    left: auto;
    transform-origin: right bottom;
  }

  .old-wa-panel {
    width: min(308px, calc(100vw - 20px));
    bottom: 66px;
    border-radius: 16px;
  }

  .old-wa-body {
    padding: 15px;
  }
}
