/* Slider styling */

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

.pd_slider a {
  text-align: left;
}

.pd_slider h2 {
  text-align: center;
}

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

  background-color: #eee;

}
.pd_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;

}
.pd_slider h3 {
  font-size: 26px;
  font-weight: 700;
  text-align: left;
}

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

.pd_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;
}

.pd_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 */
.pd_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 */
}

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

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

.pd_slider .pd-slider-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.pd_slider .pd-slider-button-wrapper .btn-primary {
  color: #fff;
}


@media screen and (min-width: 0) and (max-width: 1199px) {
  .pd_slider .content {
    width: 99%;
    height: 100%; /* or a fixed height if needed */
    min-height: 143px;
    padding-top: 20px;
    text-align: center;

    background-color: #eee;

  }

  .pd_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 */

  }

  .pd_slider h2 {
    font-size: 20px;
  }

  .pd_slider h3 {
    font-size: 18px;
  }

  .pd_slider a {
    font-size: 14px;
  }

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

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

  }

}

/* Proximity Filter Controls */
.pd-slider-filters {
  padding: 15px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.pd-slider-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.pd-slider-filters__city {
  flex: 1;
  min-width: 200px;
}

.pd-slider-filters__select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.pd-slider-filters__select:focus {
  border-color: var(--wp--preset--color--primary, #009bb4);
  outline: none;
}

.pd-slider-filters__radius {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pd-slider-filters__radius label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.pd-slider-filters__input {
  width: 80px;
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.pd-slider-filters__input:focus {
  border-color: var(--wp--preset--color--primary, #009bb4);
  outline: none;
}

.pd-slider-filters__unit {
  font-size: 14px;
  color: #666;
}

.pd-slider-filters__btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--wp--preset--color--primary, #009bb4);
  white-space: nowrap;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid var(--wp--preset--color--primary, #009bb4);
  border-radius: 4px;
  transition: all .2s ease;
}

.pd-slider-filters__btn:hover {
  color: #fff;
  background-color: var(--wp--preset--color--primary, #009bb4);
}

.pd-slider-filters__btn:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.pd-slider-filters__btn.loading {
  position: relative;
}

.pd-slider-filters__btn.loading::after {
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  content: "";
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.pd-slider-filters__btn--reset {
  color: #666;
  background-color: transparent;
  border-color: #999;
}

.pd-slider-filters__btn--reset:hover {
  color: #fff;
  background-color: #999;
}

.pd-slider-filters__status {
  display: none;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  background-color: #e8f4f8;
  border-radius: 4px;
}

/* Dealer distance badge */
.pd_slider .dealer-distance {
  min-height: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wp--preset--color--primary, #009bb4);
  text-align: left;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile responsive styles for filters */
@media screen and (max-width: 767px) {
  .pd-slider-filters__row {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-slider-filters__city {
    min-width: 100%;
  }

  /* Unified input group style for radius */
  .pd-slider-filters__radius {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .pd-slider-filters__radius:focus-within {
    border-color: var(--wp--preset--color--primary, #009bb4);
  }

  .pd-slider-filters__radius label {
    flex-shrink: 0;
  }

  .pd-slider-filters__input {
    flex: 1;
    min-width: 60px;
    max-width: 100px;
    text-align: center;
    background: transparent;
    border: none;
  }

  .pd-slider-filters__input:focus {
    border: none;
    outline: none;
    box-shadow: none;
  }

  .pd-slider-filters__unit {
    flex-shrink: 0;
  }

  .pd-slider-filters__location,
  .pd-slider-filters__reset {
    width: 100%;
  }

  .pd-slider-filters__btn {
    justify-content: center;
    width: 100%;
  }
}

/* Complianz consent placeholder styling */
.pd_slider .cmplz-blocked-content-container {
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 4px;
}

