/* Slider styling */

.acc_slider {
  margin-top: 30px;
  margin-bottom: 15px;
}

.acc_slider a {
  color: black;
}

.acc_slider .content {
  width: 99%;
  height: 400px;
  padding: 10px;
  padding-top: 20px;
  text-align: center;

  background-color: #eee;

}
.acc_slider .content .accessory {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes image to bottom */

  width: 100%;
  height: 100%; /* or a fixed height if needed */
  margin: auto;

}

.acc_slider h2 {
  text-align: center;
}

.acc_slider h3 {
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}


.acc_slider img {

  max-width: 348px;
  max-height: 290px;
  margin: auto;
  margin-top: auto;

}

.acc_slider .price {
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}

.acc_slider .custom-pagination-wrapper {
  display: flex;

  /* Ensure no wrapping */
  flex-wrap: nowrap;
  gap: 8px; /* space between arrows and lines */
  align-items: center;
  justify-content: center;
  width: 100%; /* or auto if you want */
  margin-top: 1rem;

  /* Smooth transition for visibility changes */
  transition: visibility .3s ease, opacity .3s ease;
}

.acc_slider .custom-arrow {
  flex-shrink: 0;        /* Prevent arrows from shrinking */
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
}

/* Keep your previous lines styling */
.acc_slider .custom-pagination {
  display: flex;
  flex-grow: 1;          /* Allow lines to expand and fill remaining space */
  gap: 2px;
  justify-content: center; /* Center lines within their container */
  min-width: 0;          /* Prevent flex child overflow */
}

.acc_slider .custom-pagination .line {
  flex-grow: 1;
  height: 3px;
  cursor: pointer;
  background-color: #cdcdcd;
  transition: background-color .3s;
}

.acc_slider .custom-pagination .line.active {
  background-color: var(--wp--preset--color--primary, #009bb4);
}


@media screen and (min-width: 0) and (max-width: 1199px) {
  .acc_slider .content {
    width: 99%;
    height: 100%; /* or a fixed height if needed */
    min-height: 248px;

    padding-top: 20px;
    text-align: center;

    background-color: #eee;

  }

  .acc_slider .content .accessory {

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes image to bottom */

    width: 100%;
    height: 100%; /* or a fixed height if needed */

  }

  .acc_slider img {

    max-width: 100%;
    max-height: 70%;
    margin-top: auto; /* ensures it sticks to the bottom */
  }

  .acc_slider h3 {
    font-size: 14px;
  }

  .acc_slider .price {
    font-size: 12px;
  }

  .acc_slider .custom-arrow {
    width: 30px;
    height: 30px;

  }

}

