/*
 * Faydoo Admin CSS Layer
 * Provides utility classes for horizontal scrolling and layout components.
 */

.hscroll {
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.hscroll::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid currentColor;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  white-space: nowrap;
  line-height: 1;
  font-weight: 500;
  font-size: 0.875rem;
}

.pill:hover {
  background: rgba(0, 0, 0, 0.06);
}

.pill.active {
  font-weight: 700;
  background: #4f46e5;      /* brand-primary */
  color: #fff;
  border-color: #4f46e5;
}
.pill.active:hover{
  background:#312e81;       /* brand-dark */
  border-color:#312e81;
}

.carousel-mask {
  overflow: hidden;
  position: relative;
}

.carousel-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.carousel-strip::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  z-index: 10;
}

.carousel-arrow--left {
  left: 0.5rem;
}

.carousel-arrow--right {
  right: 0.5rem;
}

/* 
 * Le larghezze delle card nel carosello #featuredStrip sono ora 
 * gestite interamente dalle classi Tailwind (.w-full, .sm:w-1/2, etc.)
 * nel file home.phtml. Questo garantisce coerenza con la griglia sottostante
 * e risolve i conflitti di layout.
 * Le regole specifiche e duplicate sono state rimosse.
 */

/* === Featured Carousel: gestisco qui le larghezze delle slide === */
#featuredStrip > .slide {
  flex: 0 0 100%;     /* Mobile: 1 card per vista */
}

/* Tablet: 2 card per vista */
@media (min-width: 768px) {
  #featuredStrip > .slide {
    /* 50% width minus half the 1rem gap */
    flex: 0 0 calc(50% - 0.5rem);
  }
}

/* Desktop: 4 card per vista */
@media (min-width: 1024px) {
  #featuredStrip > .slide {
    /* 25% width minus 3/4 of the 1rem gap */
    flex: 0 0 calc(25% - 0.75rem);
  }
}

/* Faydoo Chatbot: layout base */
#faydoo-chatbot-toggle {
  position: fixed;
  right: 1rem;
  bottom: 5rem;           /* sopra lo sticky footer mobile */
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #4f46e5; /* brand-primary */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;            /* > header/footer z-40 */
}

@media (min-width: 768px) {
  #faydoo-chatbot-toggle {
    right: 2rem;
    bottom: 2rem;
    width: 4rem;
    height: 4rem;
  }
}

#faydoo-chatbot-panel {
  position: fixed;
  right: 1rem;
  bottom: 9rem;           /* ancorato sopra il bottone su mobile */
  width: calc(100% - 2rem);
  max-width: 24rem;
  max-height: 70vh;
  z-index: 60;
}

@media (min-width: 768px) {
  #faydoo-chatbot-panel {
    right: 2rem;
    bottom: 7rem;         /* sopra il bottone su desktop */
  }
}