.delivery_popup {
  /* display: none; */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Free-delivery success popup — Figma 1016:19519.
   465px wide white box, 48/32/24 padding. Two stacked sections — title +
   description (16px gap inside, 32px gap to the buttons block below) and
   button + "продовжити покупки" link (16px gap inside). Close X
   absolutely positioned 12px from top-right corner. */
.delivery_popup-content {
  position: relative;
  background-color: #FFFFFF;
  margin: 0;
  padding: 48px 32px 24px;
  border: none;
  border-radius: 0;
  width: 100%;
  max-width: 465px;
  box-sizing: border-box;
}

.delivery_popup-content > p {
  margin: 0 0 32px;
  font-family: 'Fixel Text', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  color: #757575;
}

.delivery_close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: #5E5E5E;
  background: transparent;
  border: 0;
  cursor: pointer;
  float: none;
}

.delivery_close-button:hover,
.delivery_close-button:focus {
  color: #141414;
  text-decoration: none;
}
.delivery-title--block {
  display: flex;
  align-items: center;
  gap: 6px;
}
.delivery-title {
  margin: 0;
  font-family: 'Fixel Display', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 120%;
  color: #757575;
  text-align: start;
}

.delivery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.delivery-title.delivery-title--achieved {
  color: #0f0f0e;
}
.delivery-title span {
  font-weight: 800;
  color: #222;
}

.devilery-block {
  /* display: none; */
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
}

progress.progres_delivery {
  width: 100%;
  height: 5px;
  background-color: #E3E3E3;
  overflow: hidden;
  /* Required for custom CSS to override the OS-native progress bar styling
     (otherwise iOS / older Safari render it blue using system colors). */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
}

progress.progres_delivery::-webkit-progress-bar {
  background-color: #E3E3E3;
}

progress.progres_delivery::-webkit-progress-value {
  background-color: #141414;
}

progress.progres_delivery::-moz-progress-bar {
  background-color: #141414;
}

.progres_delivery-img {
  position: absolute;
  transform: translateX(-50%);
}
.cosmetic-slider {
  display: flex;
  overflow: hidden;
}
.cosmetic-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 150%;
  text-transform: uppercase;
  text-align: center;
  color: #222;
}
.cosmetic-wrapper {
  padding: 0 40px;
  position: relative;
}

.cosmetic-list-card {
  width: 180px;
  margin-right: 20px;
  overflow: hidden;

  display: flex !important;
  flex-direction: column;
  gap: 10px;
}
.cosmetic-list-card img {
  max-width: 180px;
  display: block;
}

.cosmetic-card-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 142%;
  text-transform: uppercase;
  color: #0f0f0e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cosmetic-card-price {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 180%;
  text-transform: uppercase;
  color: rgba(15, 15, 14, 0.5);
}
.delivery-free {
  border: 1px solid black;
  text-align: center;
  color: black;
  padding: 15px;
  font-size: 14px;
  line-height: normal;
  margin-bottom: 20px;
  margin-top: 20px;
}
.delivery-free-popup {
  margin: 0 0 16px;
  font-family: 'Fixel Text', sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: #141414;
}

.delivery_popup-content .button_block-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.delivery_popup-content .modal_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: #000000;
  color: #FFFFFF;
  border: 0;
  font-family: 'Fixel Text', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.delivery_popup-content .modal_button.modal_subbutton {
  height: auto;
  padding: 0;
  background: transparent;
  color: #141414;
  font-weight: 400;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.delivery_popup-content a {
  display: block;
  text-decoration: none;
}
/* slider */
.cosmetic-prev.slick-arrow {
  left: 1%;
  width: 35px;
  height: 35px;
  z-index: 9;
}
.cosmetic-next.slick-arrow {
  z-index: 9;
  width: 35px;
  height: 35px;
  left: 95%;
}

.cosmetic-prev.slick-arrow {
  top: 50%;
  transform: translateY(-50%);
}
.cosmetic-next.slick-arrow {
  top: 50%;
  transform: translateY(-50%);
}
/* slider */

@media (max-width: 768px) {
  /* .delivery {
    margin-top: 20px;
  } */
  progress.progres_delivery {
    height: 5px;
  }
  .progres_delivery-img {
    max-width: 28px;
    max-height: 28px;
  }
  .devilery-block {
    flex-direction: column-reverse;
  }
  .cosmetic-wrapper {
    padding: 0 20px;
  }
  .cosmetic-prev.slick-arrow {
    left: -3%;
  }
  li.cosmetic-list-card.slick-slide {
    height: auto;
  }

  /* Free-delivery popup — mobile per Figma 1018:25008.
     358px wide, 32/20/20 padding. Title 16px, description 12px. Outer
     gap between description and buttons block is 20px (not 32px). Close
     X moves to 8px from top/right corner. */
  .delivery_popup-content {
    padding: 32px 20px 20px;
    max-width: 358px;
  }

  .delivery-free-popup {
    font-size: 16px;
  }

  .delivery_popup-content > p {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .delivery_close-button {
    top: 8px;
    right: 8px;
  }
}
