.atreve-availability-module {
  box-sizing: border-box;
  clear: both;
  position: relative;
  max-width: 100%;
}

.atreve-availability-module *,
.atreve-availability-module *::before,
.atreve-availability-module *::after {
  box-sizing: border-box;
}

.atav-front-main {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.atav-front-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

.atav-front-icon i { line-height: 1; }
.atav-front-icon img { display: block; object-fit: contain; }

.atav-front-content {
  flex: 1 1 auto;
  min-width: 0;
}

.atav-front-title {
  line-height: 1.25;
  margin: 0 0 3px;
}

.atav-front-summary {
  line-height: 1.45;
  margin: 0 0 10px;
}

.atav-front-availability {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.4;
}

.atav-more-wrap { margin-top: 13px; }

.atav-more-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: .35px;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, filter .25s ease;
}

.atav-more-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.atav-more-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}

.atav-more-button[aria-expanded="true"] .atav-more-chevron {
  transform: rotate(225deg) translate(-2px,-2px);
}

.atav-more-panel {
  overflow: hidden;
  margin-top: 10px;
}

.atav-animation-slide .atav-more-panel {
  max-height: 0;
  opacity: 0;
  transition: max-height var(--atav-duration, 320ms) cubic-bezier(.22,1,.36,1), opacity calc(var(--atav-duration, 320ms) * .7) ease;
}

.atav-animation-slide .atav-more-panel.is-open { opacity: 1; }

.atav-animation-fade .atav-more-panel {
  display: none;
  opacity: 0;
  transition: opacity var(--atav-duration, 320ms) ease;
}
.atav-animation-fade .atav-more-panel.is-open { display: block; opacity: 1; }

.atav-animation-none .atav-more-panel { display: none; }
.atav-animation-none .atav-more-panel.is-open { display: block; }

.atav-more-panel-inner { line-height: 1.55; }
.atav-more-panel-inner > :first-child { margin-top: 0; }
.atav-more-panel-inner > :last-child { margin-bottom: 0; }
.atav-more-panel-inner ul,
.atav-more-panel-inner ol { padding-left: 20px; }
.atav-more-panel-inner a { color: #930024; text-decoration: underline; }

@media (max-width: 767px) {
  .atav-front-main { align-items: flex-start; }
  .atav-front-availability { gap: 4px; }
}

/* ==========================================================
   v1.0.3 — alinhamento robusto + indicador de stock
   ========================================================== */

/* Quando o módulo é movido para a zona de ações, não herda
   larguras/float da coluna .add do tema. */
#main.product-detail .product-add-to-cart > #atreve-availability-module,
#main .product-add-to-cart > #atreve-availability-module,
.product-add-to-cart > #atreve-availability-module {
  float: none !important;
  clear: both !important;
  position: relative !important;
}

.atav-front-availability {
  align-items: center;
}

.atav-stock-indicator {
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  vertical-align: middle;
}

/* Semáforo compacto: três luzes, a última é a luz ativa. */
.atav-stock-traffic {
  width: 2.15em;
  height: 1em;
  align-items: center;
  justify-content: space-evenly;
  padding: .12em .18em;
  border-radius: .55em;
  background: #272124;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.atav-stock-traffic i {
  display: block;
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: #70686b;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.atav-stock-traffic i.is-active {
  background: currentColor;
  box-shadow: 0 0 .45em currentColor;
}

/* Alternativa mais minimalista, configurável no Backoffice. */
.atav-stock-dot {
  width: .82em;
  height: .82em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .5em color-mix(in srgb, currentColor 55%, transparent);
}
