.top-products-basket,
.zt-accordion {
  width: 100%;
  min-width: 0;
}

.zt-accordion__item {
  margin-bottom: 20px;
}

.zt-accordion__btn {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 40px 5px 30px;
  color: #0c0b0b;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.zt-accordion__btn[aria-expanded="true"] {
  border-color: #e84c09;
}

.zt-accordion__btn[aria-expanded="true"] .zt-accordion__icon path,
.zt-accordion__btn:hover .zt-accordion__icon path {
  stroke: #e84c09;
}

.zt-accordion__btn:hover {
  color: #e84c09;
}

.zt-accordion__label {
  min-width: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  overflow-wrap: anywhere;
}

.zt-accordion__icon {
  width: 24px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.zt-accordion__icon path {
  transition: stroke 0.2s ease;
}

.zt-accordion__icon--open {
  transform: rotate(180deg);
}

.zt-accordion__body {
  width: 100%;
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  color: #555;
  font-size: 15px;
  box-sizing: border-box;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

.zt-accordion__body--open {
  padding: 30px 0 0;
}

.top-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.top-products-grid__item {
  display: flex;
  min-width: 0;
}

.top-products-grid__item .pk-card {
  width: 100%;
}

.top-products-grid .pk-card__title {
  overflow-wrap: anywhere;
}

.top-products-basket .pk-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 20px;
  box-sizing: border-box;
}

.top-products-basket .pk-card__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 20px;
}

.top-products-basket .pk-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-products-basket .pk-card__price {
  margin: 16px 0 12px;
  color: #222;
  font-family: "Source Sans 3", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}

.top-products-basket .pk-card__title {
  display: -webkit-box;
  margin: 12px 0 20px;
  overflow: hidden;
  color: #000;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.top-products-basket .pk-card .btn.btn-sm {
  --button-height: 47px;
}

.tabs .nav-tabs > li > a[href="#custom_example"],
.tabs .nav-tabs > li.active > a[href="#custom_example"],
.tabs .nav-tabs > li.active > a[href="#custom_example"]:focus,
.tabs .nav-tabs > li.active > a[href="#custom_example"]:hover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin: 9px 0 10px;
  padding: 0 20px;
  color: #fff;
  background-color: var(--theme-base-color);
  border: 1px solid var(--theme-base-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.tabs .nav-tabs > li > a[href="#custom_example"]:hover,
.tabs .nav-tabs > li.active > a[href="#custom_example"]:hover {
  color: #fff;
  background-color: #cf4308;
  border-color: #cf4308;
}

.tabs .nav-tabs > li:has(> a[href="#custom_example"])::after {
  display: none;
}

.top-products-basket-total {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 993;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: calc(100vw - 32px);
  min-height: 48px;
  padding: 12px 22px;
  color: #fff;
  background: var(--theme-base-color, #e84c09);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-sizing: border-box;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.top-products-basket-total[hidden] {
  display: none;
}

.top-products-basket-total.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.top-products-basket-total__label,
.top-products-basket-total__value {
  color: inherit;
}

.top-products-basket-total__value {
  white-space: nowrap;
}

body.top-products-basket-total-visible .body {
  padding-bottom: 80px;
}

@media (max-width: 1023px) {
  .top-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .top-products-basket-total {
    bottom: calc(var(--bottom-panel_height, 61px) + 57px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.top-products-basket-total-visible .body {
    padding-bottom: 162px !important;
  }
}

@media (max-width: 767px) {
  .zt-accordion__item {
    margin-bottom: 16px;
  }

  .zt-accordion__btn {
    min-height: 74px;
    padding: 5px 25px 5px 20px;
  }

  .zt-accordion__label {
    font-size: 20px;
    line-height: 28px;
  }

  .zt-accordion__body--open {
    padding-top: 20px;
  }

  .top-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 479px) {
  .top-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .top-products-basket .pk-card {
    padding: 12px;
  }

  .top-products-basket .pk-card__price {
    font-size: 18px;
  }

  .top-products-basket .pk-card__title {
    font-size: 14px;
  }

  .top-products-basket-total {
    width: calc(100vw - 24px);
    max-width: none;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 22px;
  }
}
