/* ===== Selecta WhatsApp Chat Widget ===== */
.wa-widget {
  --wa-green: #25d366;
  --wa-dark: #075e54;
  --wa-bg: #efeae2;
  --wa-bubble: #ffffff;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wa-widget *,
.wa-widget *::before,
.wa-widget *::after { box-sizing: border-box; }

.wa-fab {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
  position: relative;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab:focus-visible,
.wa-box__close:focus-visible,
.wa-box__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-fab svg { width: 32px; height: 32px; }

.wa-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.wa-fab__badge[hidden] { display: none; }
.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  animation: wa-pulse 2s infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.wa-box {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 340px;
  max-width: calc(100vw - 32px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--wa-bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-widget.is-open .wa-box {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.wa-box__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--wa-dark);
  color: #fff;
}
.wa-box__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  flex-shrink: 0;
}
.wa-box__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.wa-box__status { font-size: 12px; opacity: .85; }
.wa-box__close {
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.wa-box__close:hover { opacity: 1; }
.wa-box__body {
  padding: 18px 14px;
  min-height: 170px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wa-msg {
  align-self: flex-start;
  max-width: 85%;
  background: var(--wa-bubble);
  padding: 8px 12px 18px;
  border-radius: 0 10px 10px 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #111;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
  animation: wa-in .3s ease;
}
.wa-msg__time {
  position: absolute;
  right: 8px;
  bottom: 3px;
  font-size: 10px;
  color: #777;
}
@keyframes wa-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.wa-typing {
  align-self: flex-start;
  background: var(--wa-bubble);
  border-radius: 0 10px 10px 10px;
  padding: 12px 14px;
  display: flex;
  gap: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}
.wa-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777;
  animation: wa-dot 1.2s infinite;
}
.wa-typing span:nth-child(2) { animation-delay: .2s; }
.wa-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes wa-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.wa-box__footer { padding: 12px 14px 16px; }
.wa-box__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 24px;
  background: var(--wa-green);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: filter .2s;
}
.wa-box__cta:hover { filter: brightness(.93); color: #fff; }
.wa-box__cta svg { width: 20px; height: 20px; }

@media (max-width: 479px) {
  .wa-widget { right: 16px; bottom: 16px; }
  .wa-box { bottom: 72px; max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab::before, .wa-msg, .wa-typing span { animation: none; }
}


/* Alinhamento dos cards de serviços no tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .slider-service:not(.frota) .card-content {
    min-height: 31.625rem;
  }

  .slider-service:not(.frota) .image_card-content {
    margin-top: auto;
  }
}


/* Padronizacao dos cards de servicos no mobile */
@media (max-width: 767px) {
  .slider-service:not(.frota) .card-content {
    min-height: 30.125rem;
  }

  .slider-service:not(.frota) .image_card-content {
    margin-top: auto;
  }
}


/* Protecao para celulares muito estreitos */
@media (max-width: 359px) {
  .slider-service:not(.frota) .card-content {
    min-height: 33.125rem;
  }
}
