.review-container {
  height: 100%;
  background-color: #ffffff;
  border-left: 6px solid #1d6bf3;
}

#reviewSidebar {
  width: min(460px, 100%);
  background-color: #ffffff;
}

#reviewSidebar .cart-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#reviewSidebar .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid #e5e7eb;
}

#reviewSidebar .header .title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.review-body {
  padding: 28px 32px 40px;
  height: 100%;
  overflow-y: auto;
  background-color: #ffffff;
}

.review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.review-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.review-stars {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.review-star {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.review-star input {
  display: none;
}

.review-star span {
  font-size: 22px;
  color: #f5222d;
}

.review-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.review-field {
  margin: 0;
}

.review-field input,
.review-field textarea {
  width: 100%;
  border: 1px solid #d4dbe8;
  border-radius: 4px;
  padding: 18px 18px;
  font-size: 16px;
  outline: none;
  background-color: #ffffff;
}

.review-field input::placeholder,
.review-field textarea::placeholder {
  color: #7f8795;
}

.review-field textarea {
  min-height: 150px;
  resize: vertical;
}

.review-field input:focus,
.review-field textarea:focus {
  border-color: #111827;
}

.review-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 4px;
  border: none;
  background-color: #000000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.review-submit-btn:hover {
  background-color: #111827;
}

.review-error {
  margin-bottom: 12px;
}

/* ==========================================================================
   CART.CSS - Страница корзины (минималистичный стиль)
   ========================================================================== */

/* Обеспечиваем нормальный скролл страницы корзины на мобильных (iOS Chrome/Safari) */
.cart-page {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========== MAIN CONTAINER ========== */
.fn_ajax_content {
  padding: 40px 0 80px;
}

/* ========== PAGE TITLE ========== */
.fn_ajax_content .container:first-child {
  margin-bottom: 40px;
}

.fn_ajax_content .heading {
  font-size: 28px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.3px;
  margin: 0;
}

/* ========== CHECKOUT SECTION ========== */
.tf-page-checkout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tf-page-checkout .wrap {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.3s ease;
}

.tf-page-checkout .wrap:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ========== CHECKOUT STEPS ========== */
.checkout-step {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.checkout-step__count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.checkout-step__text {
  font-size: 18px;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.3px;
}

/* ========== FORM INPUTS ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-step_input,
.form_input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.checkout-step_input:focus,
.form_input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.checkout-step_input::placeholder,
.form_input::placeholder {
  color: #999;
}

/* Ошибки валидации формы корзины */
.field-error__input {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.12);
}

.field-error__message {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #e74c3c;
}

/* ========== DELIVERY BOX ========== */
.payment-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-item {
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-item:hover {
  border-color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.payment-item.active {
  border-color: #000;
  border-width: 2px;
  background: #fafafa;
}

.payment-header {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  width: 100%;
}

.payment-header input[type='radio'] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: #000;
}

.payment-header .text-title {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  flex: 1;
}

.payment-image {
  width: 60px;
  height: 40px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.payment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery_in_cart {
  margin-top: 20px;
}

.del_info {
  margin-top: 16px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.del_info p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.form_group {
  margin-bottom: 16px;
}

.form_group:last-child {
  margin-bottom: 0;
}

.form_group select {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form_group select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ========== PAYMENT METHODS ========== */
.payment_desc {
  margin-top: 12px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ========== SIDEBAR CHECKOUT (Right Column) ========== */
.flat-sidebar-checkout {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.sidebar-checkout-content {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

/* ========== CART ITEMS LIST ========== */
.title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.list-product {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-product {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.item-product:last-child {
  border-bottom: none;
}

.item-product:hover {
  background: #fafafa;
  margin: 0 -24px;
  padding: 16px 24px;
  border-radius: 8px;
}

/* Product Image */
.item-product .img-product {
  grid-column: 1;
  width: 80px;
  height: 107px;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px;
  flex-shrink: 0;
}

.item-product .img-product img,
.item-product .img-product video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Box */
.content-box {
  grid-column: 2;
  display: flex;
  gap: 8px;
  min-width: 0;
  justify-content: space-between;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name-product {
  font-size: 15px;
  font-weight: 400;
  color: #000;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.name-product:hover {
  color: #666;
  text-decoration: underline;
}

.nam_cen {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.total-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.total-price .old_price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.total-price .price {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

/* Remove Button */
.remove_from_cart {
  grid-column: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 24px;
}

.delete_from_cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: #bbb;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.delete_from_cart:hover {
  color: #000;
  background: #f5f5f5;
}

.delete_from_cart svg {
  width: 16px;
  height: 16px;
}

/* Promo Text */
.promo-text {
  grid-column: 1 / -1;
  padding: 12px 16px;
  background: #fef3cd;
  border-radius: 8px;
  font-size: 13px;
  color: #000;
  margin-bottom: 8px;
}

.discount-offer {
  padding: 16px 20px;
  background: #fef3cd;
  border-radius: 12px;
  margin-bottom: 24px;
}

.discount-offer p {
  margin: 0;
  font-size: 14px;
  color: #000;
  line-height: 1.6;
}

/* ========== TOTAL PRICE SECTION ========== */
.sec-total-price {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.sec-total-price .bottom {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  color: #000;
}

.total-price-checkout {
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

/* ========== SUBMIT BUTTON ========== */
.sub_btn {
  margin-top: 24px;
}

.btn_cart {
  width: 100%;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn_cart:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn_cart:active {
  transform: translateY(0);
}

/* ========== EMPTY CART ========== */
.page-title {
  padding: 80px 0;
  text-align: center;
  background: #fafafa;
  margin-bottom: 40px;
}

.page-title .heading {
  font-size: 32px;
  font-weight: 400;
  color: #000;
  margin-bottom: 16px;
}

.breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs .link {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs .link:hover {
  color: #000;
}

/* ========== LINE SEPARATION ========== */
.line-separation {
  width: 1px;
  background: #f0f0f0;
  height: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   STICKY HEADER & FOOTER OVERRIDES
   ========================================================================== */

/* Прилипающий футер для кнопки "Оформить заказ" на мобильных */
.sticky-checkout-footer {
  display: none;
  /* Скрыт по умолчанию */
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199px) {
  .line-separation {
    display: none;
  }

  .col-xl-6,
  .col-xl-5 {
    margin-bottom: 40px;
  }

  .flat-sidebar-checkout {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767px) {

  /* На странице корзины скрываем нижний мобильный тулбар,
     чтобы он не конкурировал с прилипающим блоком оформления */
  .cart-page .tf-toolbar-bottom {
    display: none !important;
  }

  .fn_ajax_content {
    padding: 20px 0 120px;
    /* Увеличиваем нижний паддинг для прилипающего футера */
  }



  /* Показываем и стилизуем прилипающий футер */
  .sticky-checkout-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 16px 20px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1100;
    /* Выше scroll-top и других элементов */
    border-top: 1px solid #f0f0f0;
  }

  .sticky-checkout-footer__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #000;
  }

  .sticky-checkout-footer__total .price {
    font-size: 18px;
    font-weight: 700;
  }

  /* Небольшой запас сверху при авто-скролле к инпутам на мобильных,
     чтобы поле ввода не оказывалось под верхней частью экрана */
  .cart-page .checkout-step_input,
  .cart-page .form_input {
    scroll-margin-top: 80px;
  }

  .fn_ajax_content .heading {
    font-size: 24px;
  }

  .tf-page-checkout .wrap {
    padding: 24px 20px;
  }

  .checkout-step__count {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .checkout-step__text {
    font-size: 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checkout-step_input,
  .form_input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .payment-item {
    padding: 16px;
  }

  .sidebar-checkout-content {
    padding: 5px;
  }

  .item-product {
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
  }

  .item-product .img-product {
    width: 70px;
    height: 93px;
  }

  .name-product {
    font-size: 14px;
  }

  .total-price {
    font-size: 15px;
  }

  .btn_cart {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* Мягкий белый блик, «скользящий» по кнопке */
.btn_cart::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 40%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.15) 60%,
      transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.btn_cart:hover::before {
  opacity: 1;
  animation: cartButtonSheen 1.4s ease-out forwards;
}

/* На тач-устройствах будет периодический мягкий блик */
@media (hover: none) {
  .btn_cart::before {
    opacity: 0.7;
    animation: cartButtonSheen 2s ease-in-out infinite;
  }
}

@keyframes cartButtonSheen {
  0% {
    transform: translateX(-140%);
  }

  50% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(140%);
  }
}

/* ========== SELECT2 STYLING (для городов) ========== */
.fn_ajax_content .select2-container,
#deliv_1 .select2-container {
  width: 100% !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Основной контейнер селекта */
.fn_ajax_content .select2-container--default .select2-selection--single,
#deliv_1 .select2-container--default .select2-selection--single {
  height: 48px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 18px !important;
  transition: all 0.2s ease !important;
  background: #fff !important;
}

.fn_ajax_content .select2-container--default .select2-selection--single:hover,
#deliv_1 .select2-container--default .select2-selection--single:hover {
  border-color: #c0c0c0 !important;
}

.fn_ajax_content .select2-container--default.select2-container--open .select2-selection--single,
.fn_ajax_content .select2-container--default .select2-selection--single:focus,
#deliv_1 .select2-container--default.select2-container--open .select2-selection--single,
#deliv_1 .select2-container--default .select2-selection--single:focus {
  border-color: #000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
  outline: none !important;
}

/* Текст в селекте */
.fn_ajax_content .select2-container--default .select2-selection--single .select2-selection__rendered,
#deliv_1 .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
  padding: 0 !important;
  font-size: 15px !important;
  color: #000 !important;
  padding-right: 30px !important;
}

.fn_ajax_content .select2-container--default .select2-selection--single .select2-selection__placeholder,
#deliv_1 .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #999 !important;
}

/* Стрелка */
.fn_ajax_content .select2-container--default .select2-selection--single .select2-selection__arrow,
#deliv_1 .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 18px !important;
  width: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fn_ajax_content .select2-container--default .select2-selection--single .select2-selection__arrow b,
#deliv_1 .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #666 transparent transparent transparent !important;
  border-style: solid !important;
  border-width: 6px 5px 0 5px !important;
  height: 0 !important;
  left: 50% !important;
  margin-left: -5px !important;
  margin-top: -3px !important;
  position: absolute !important;
  top: 50% !important;
  width: 0 !important;
  transition: transform 0.2s ease !important;
}

.fn_ajax_content .select2-container--open .select2-selection--single .select2-selection__arrow b,
#deliv_1 .select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: #000 transparent transparent transparent !important;
  transform: rotate(180deg) !important;
}

/* Выпадающий список */
.fn_ajax_content .select2-dropdown,
#deliv_1 .select2-dropdown,
body .select2-dropdown {
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  background: #fff !important;
}

/* Поле поиска */
.fn_ajax_content .select2-search--dropdown,
#deliv_1 .select2-search--dropdown,
body .select2-search--dropdown {
  padding: 12px !important;
  background: #f9f9f9 !important;
  border-bottom: 1px solid #e0e0e0 !important;
  position: relative !important;
}

.fn_ajax_content .select2-search--dropdown .select2-search__field,
#deliv_1 .select2-search--dropdown .select2-search__field,
body .select2-search--dropdown .select2-search__field {
  width: 100% !important;
  padding: 10px 45px 10px 16px !important;
  font-size: 15px !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.fn_ajax_content .select2-search--dropdown .select2-search__field:focus,
#deliv_1 .select2-search--dropdown .select2-search__field:focus,
body .select2-search--dropdown .select2-search__field:focus {
  outline: none !important;
  border-color: #000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}

.fn_ajax_content .select2-search--dropdown .select2-search__field::placeholder,
#deliv_1 .select2-search--dropdown .select2-search__field::placeholder,
body .select2-search--dropdown .select2-search__field::placeholder {
  color: #999 !important;
}

/* Иконка закрытия (X) в поле поиска - Select2 создает её автоматически */
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="%23999" d="M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9S13.97 0 9 0zm3.53 11.53L9 7.06l-3.53 4.47-1.06-1.06L7.94 6 4.47 1.53 5.53.47 9 3.94 12.47.47l1.06 1.06L10.06 6l3.53 4.47-1.06 1.06z"/></svg>') no-repeat center;
  background-size: 18px 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  margin-right: 4px;
}

.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button:hover {
  opacity: 1;
}

.fn_ajax_content .select2-results::-webkit-scrollbar,
#deliv_1 .select2-results::-webkit-scrollbar,
body .select2-results::-webkit-scrollbar {
  width: 6px !important;
}

.fn_ajax_content .select2-results::-webkit-scrollbar-track,
#deliv_1 .select2-results::-webkit-scrollbar-track,
body .select2-results::-webkit-scrollbar-track {
  background: #f5f5f5 !important;
}

.fn_ajax_content .select2-results::-webkit-scrollbar-thumb,
#deliv_1 .select2-results::-webkit-scrollbar-thumb,
body .select2-results::-webkit-scrollbar-thumb {
  background: #ccc !important;
  border-radius: 3px !important;
}

.fn_ajax_content .select2-results::-webkit-scrollbar-thumb:hover,
#deliv_1 .select2-results::-webkit-scrollbar-thumb:hover,
body .select2-results::-webkit-scrollbar-thumb:hover {
  background: #999 !important;
}

/* Опции в списке */
.fn_ajax_content .select2-results__option,
#deliv_1 .select2-results__option,
body .select2-results__option {
  padding: 12px 18px !important;
  font-size: 15px !important;
  color: #333 !important;
  line-height: 1.5 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.fn_ajax_content .select2-results__option:first-child,
#deliv_1 .select2-results__option:first-child,
body .select2-results__option:first-child {
  padding-top: 12px !important;
}

.fn_ajax_content .select2-results__option:last-child,
#deliv_1 .select2-results__option:last-child,
body .select2-results__option:last-child {
  padding-bottom: 12px !important;
}

/* Выделенная опция (hover) */
.fn_ajax_content .select2-results__option--highlighted,
#deliv_1 .select2-results__option--highlighted,
body .select2-results__option--highlighted {
  background: #f5f5f5 !important;
  color: #000 !important;
}

/* Выбранная опция */
.fn_ajax_content .select2-results__option[aria-selected='true'],
#deliv_1 .select2-results__option[aria-selected='true'],
body .select2-results__option[aria-selected='true'] {
  background: #f0f0f0 !important;
  color: #000 !important;
  font-weight: 500 !important;
}

.fn_ajax_content .select2-results__option[aria-selected='true'].select2-results__option--highlighted,
#deliv_1 .select2-results__option[aria-selected='true'].select2-results__option--highlighted,
body .select2-results__option[aria-selected='true'].select2-results__option--highlighted {
  background: #e8e8e8 !important;
}

/* Сообщение "ничего не найдено" */
.fn_ajax_content .select2-results__message,
#deliv_1 .select2-results__message,
body .select2-results__message {
  padding: 16px 18px !important;
  font-size: 14px !important;
  color: #999 !important;
  text-align: center !important;
}

/* Загрузка */
.fn_ajax_content .select2-results__option--loading,
#deliv_1 .select2-results__option--loading,
body .select2-results__option--loading {
  padding: 16px 18px !important;
  text-align: center !important;
  color: #999 !important;
  font-size: 14px !important;
}

/* Анимация появления */
.fn_ajax_content .select2-dropdown,
#deliv_1 .select2-dropdown,
body .select2-dropdown {
  animation: select2FadeIn 0.2s ease !important;
}

@keyframes select2FadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Заголовок в Select2 dropdown (используем существующий menu__header) */
.fn_ajax_content .menu__header,
#deliv_1 .menu__header,
body .menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 44px;
  box-sizing: border-box;
}

.fn_ajax_content .menu__header .select2-header-title,
#deliv_1 .menu__header .select2-header-title,
body .menu__header .select2-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
  flex: 1;
  padding-right: 12px;
}

.fn_ajax_content .menu__header .select__close__my,
#deliv_1 .menu__header .select__close__my,
body .menu__header .select__close__my {
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fn_ajax_content .menu__header .select__close__my:hover,
#deliv_1 .menu__header .select__close__my:hover,
body .menu__header .select__close__my:hover {
  background: #f5f5f5;
  border-color: #c0c0c0;
}

.fn_ajax_content .menu__header .select__close__my:active,
#deliv_1 .menu__header .select__close__my:active,
body .menu__header .select__close__my:active {
  background: #e8e8e8;
}

.fn_ajax_content .menu__header .select__close__my .icon,
#deliv_1 .menu__header .select__close__my .icon,
body .menu__header .select__close__my .icon {
  color: #666;
  transition: color 0.2s ease;
}

.fn_ajax_content .menu__header .select__close__my:hover .icon,
#deliv_1 .menu__header .select__close__my:hover .icon,
body .menu__header .select__close__my:hover .icon {
  color: #000;
}

/* Смещаем поле поиска вниз, чтобы оно было после заголовка */
.fn_ajax_content .select2-search,
#deliv_1 .select2-search,
body .select2-search {
  border-bottom: 1px solid #e0e0e0;
}

/* Мобильная версия */
@media (max-width: 767px) {
  .select2-container--default .select2-selection--single {
    height: 44px;
    padding: 0 16px;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    font-size: 16px !important;
    /* Фикс для iOS: предотвращает зум */
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 16px;
  }

  .select2-results__option {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Фикс для iOS: поле поиска в Select2 должно быть минимум 16px */
  .select2-search--dropdown .select2-search__field {
    font-size: 16px !important;
  }

  /* Все инпуты в корзине должны быть минимум 16px для iOS */
  .checkout-step_input,
  .form_input {
    font-size: 16px !important;
  }

  /* Заголовок Select2 на мобильных */
  .fn_ajax_content .menu__header,
  #deliv_1 .menu__header,
  body .menu__header {
    padding: 12px 16px;
    min-height: 48px;
  }

  .fn_ajax_content .menu__header .select2-header-title,
  #deliv_1 .menu__header .select2-header-title,
  body .menu__header .select2-header-title {
    font-size: 15px;
  }

  .fn_ajax_content .menu__header .select__close__my,
  #deliv_1 .menu__header .select__close__my,
  body .menu__header .select__close__my {
    width: 36px;
    height: 36px;
  }
}

/* Подсветка ошибок на шаге оформления заказа */
.field-error {
  border-color: #dc3545 !important;
}

#delivery-box.field-error,
#payment-box.field-error {
  border: 1px solid #dc3545;
  border-radius: 8px;
  padding: 10px;
}