.range-value {
  color: var(--color-secondary-2-new);
}

.order-card-container {
  display: grid;
  grid-template-columns: minmax(450px, 535px) minmax(590px, 715px);
  grid-template-rows: minmax(120px, auto) 1fr;
  gap: 15px;
  grid-template-areas:
    "info payment"
    "desc payment"
    "desc payment";
  align-items: start;

  @media (width <=1280px) {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(120px, auto) 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
      "info"
      "payment"
      "desc";
  }

  @media (width <= 480px) {
    grid-template-rows: minmax(90px, auto) 1fr;
  }
}

.grid-info {
  grid-area: info;
  display: flex;
  align-items: center;
  column-gap: 20px;
}

.grid-desc {
  grid-area: desc;
  padding-block: 20px 40px;
  padding-inline: 25px;
  background-color: #fff;
  border-radius: 24px;
  margin-block-start: 15px;

  @media (width <=1280px) {
    background-color: transparent;
  }

  @media (width <= 768px) {
    padding-inline: 0;
    padding-block-start: 5px
  }

  @media (width <= 640px) {
    padding-block: 0px;
    margin-block-start: 0px;
  }
}

.grid-payment {
  grid-area: payment;
}

.header-card-container {
  display: flex;
  flex-direction: column;
  row-gap: 10px;

  @media (width <=1280px) {
    row-gap: 17px;
  }
}

/* Левая часть */
/* Картинка, текст, теги */
.title-order-card {
  font-size: 20px;

  @media (width <=1280px) {
    font-size: 26px;
  }

  @media (width <= 480px) {
    font-size: 18px;
  }
}

.boost-img-container {
  min-width: 200px;
  height: 131px;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (width <= 480px) {
    min-width: 135px;
    height: 88px;
  }
}

/* Левая часть */
/* Описание */
.desc-title,
.what-you-get-title,
.requirements-title {
  font-family: Wix Madefor Text Medium, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #000;
  margin: 0;

  @media (width <= 768px) {
    font-size: 16px;
  }
}

.desc-text,
.what-you-get-text,
.boost-info-text,
.requirements-text {
  font-family: Wix Madefor Text Medium, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 130%;
  color: #000;
  padding-block-start: 10px;

  & strong {
    color: #0CA7FF;
  }

  @media (width <= 768px) {
    font-size: 12px;
  }
}

.what-you-get-container {
  max-width: 530px;
  margin-top: 2rem;

  @media (width <= 640px) {
    margin-top: 0;
  }
}

.what-you-get-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 1.25rem;
}

.what-you-get-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.what-you-get-icon {
  position: relative;
  min-width: 35px;
  min-height: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  line-height: 0;
}

.requirements-container {
  padding-left: 12px;
  margin-top: 1.25rem;
}



/* Правая часть */
/* Контейнер для опций и методов оплаты */
.option-payment-container {
  display: flex;
  justify-content: space-between;
  border-radius: 24px;
  background-color: #FAFCFF;
  border: 1px solid #E7E7E7;
  box-shadow: 0px 13px 67px rgba(83, 108, 131, 0.12);

  @media (width <=1280px) {
    justify-content: space-around;
  }

  @media (width <= 768px) {
    justify-content: space-between;
    padding-inline: 35px 20px;
    column-gap: 10px;
  }

  @media (width <= 640px) {
    flex-direction: column;
    padding-block-end: 20px;
    display: none;
  }
}

.option-container {
  max-width: 263px;
  display: flex;
  flex-direction: column;
  margin-inline: 20px;

  @media (width <=1280px) {
    max-width: 280px;
    margin-inline: 0;
    margin-block-start: 40px;
  }

  @media (width <= 768px) {
    max-width: 263px;
  }

  @media (width <= 640px) {
    margin-block-start: 0;
    max-width: 100%;
  }
}

.payment-container {
  width: 350px;
  padding-top: 22px;
  padding-right: 23px;

  @media (width <=1280px) {
    padding: 0;
    margin-block-start: 35px;
  }

  @media (width <= 640px) {
    width: 100%;
  }
}

.selected-options {
  padding-inline: 18px;
  padding-block-end: 20px;
}

/* Мобильный блок Summary */
.mobile-summary-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0px 4px 42.4px rgba(0, 0, 0, 0.25);
  border-radius: 12px 12px 0px 0px;
  padding-block: 8px;
  padding-inline: 16px;
  z-index: 100;
}



.mobile-summary-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-summary-info {
  display: flex;
  flex-direction: column;
}

.mobile-summary-label {
  font-family: 'Wix Madefor Text Medium', sans-serif;
  font-size: 13px;
  color: #6B7280;
  text-transform: uppercase;
}

.mobile-summary-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-summary-price .value {
  font-family: 'Secondary ExtraBold', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #000;
}

.mobile-summary-price .oldvalue {
  font-family: 'Secondary SemiBold', sans-serif;
  font-size: 18px;
  text-decoration: line-through;
  color: rgba(0, 0, 0, 0.6);
}

.mobile-customize-btn {
  background-color: #DDFF00;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-family: 'Secondary Bold', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  cursor: pointer;
}

/* Модальное окно с опциями */
.options-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  display: none;
}

.options-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 27;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.options-modal-content {
  position: absolute;
  top: 92%;
  left: 50%;
  height: 70vh;
  background-color: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 28;
  transform: translateX(-50%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
  max-width: 480px;
  width: 90%;
  padding-inline: 20px;
  touch-action: pan-y;
  padding-block-end: 30px;
  
  /* Стилизация полосы прокрутки - Webkit (Chrome, Safari, Edge, Opera) */
  &::-webkit-scrollbar {
    width: 4px;
  }
  
  &::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 2px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    transition: background 0.2s ease;
  }
  
  &::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
  }
  
  /* Стилизация полосы прокрутки - Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.03);
}

.options-modal.show .options-modal-content::after {
  transform: translateY(0);
}

.options-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  position: relative;
}

/* Индикатор свайпа */
.swipe-indicator {
  width: 40px;
  height: 5px;
  background-color: #E0E0E0;
  border-radius: 2.5px;
  margin-bottom: 10px;
}

.options-modal-close {
  position: absolute;
  right: -10px;
  top: 10px;
}

.options-modal-header h3 {
  font-family: 'Secondary Bold', sans-serif;
  font-size: 18px;
  color: #000;
  margin: 0;
}

.options-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.options-modal.show {
  display: block;
}

.options-modal.show .options-modal-overlay {
  opacity: 1;
}

.options-modal.show .options-modal-content {
  transform: translate(-50%, -100%);
}

/* Показываем мобильный блок и скрываем десктопный при маленьком разрешении */
@media (width <= 640px) {
  .mobile-summary-bar {
    display: block;
  }

  .pcs-bar {
    display: block !important;
  }
  
  /* На мобильных устройствах блок с опциями скрыт по умолчанию */
  .option-payment-container {
    display: none;
  }
}

.modal-options-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}