/* Updated 16.12.2022 - start */
#modal-map {
  position: fixed;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  max-height: 720px;
}

#modal-map .md-content {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: auto;
  color: #000;
  background: #fff;
  position: relative;
  border-radius: 12px;
  margin: 0 auto;
  padding: 0 32px;
}


#modal-map .md-content .close {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  cursor: pointer;
  width: 32px;
  margin: 12px 0;
  text-align: right;
}



#modal-map .md-content .top_map_section {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-column-gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px 0;
}

.top_map_section #address_name {
  position: relative;
  display: block;
  width: 100%;
  margin: auto;
  background: #000;
  border-radius: 12px;
  padding: 12px 0;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

.top_map_section .okay {
  cursor: pointer;
  background: red;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  color: #fff;
}

.ymaps-2-1-79-map {}

.map_notify {
  margin: 8px 0;
  padding: 0 12px;
  line-height: 1.15;
  font-size: 14px;
  font-weight: 700;
  color: #ff0000;
}

#modal-map .md-content .map_section {
  position: relative;
}

.map_section input#address-map {
  position: absolute;
  z-index: 9999999;
  top: 10px;
  left: 10px;
  display: n;
  width: 400px;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 12px;
}

.map_section #cart-map {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 520px;
  margin: auto;
  border-radius: 12px;
}



#modal-map .md-content .text_error {
  position: absolute;
  z-index: 999;
  bottom: 0;
  left: 0;
  display: ;
  box-sizing: border-box;
  width: 100%;
  background: red;
  box-shadow: 0 0 7px 0 rgba(0, 0, 0, .15);
  border-radius: 0;
  padding: 12px 32px;
  text-align: center;
  color: #fff;
}



.pac-container {}


@media screen and (max-width: 1480px) {

  #modal-map {
    max-height: 600px;
  }

  #modal-map .md-content {}


  .map_section #cart-map {
    height: 420px;
  }

}


@media screen and (max-width: 800px) {

  #modal-map {
    margin-left: -0px;
    min-height: 100%;
  }

  #modal-map .md-content {
    position: relative;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    border-radius: 0px !important;
    padding: 0;
  }


  #modal-map .md-content .close {
    position: relative;
    top: 0;
    left: 12px;
    display: block;
    width: 100%;
    cursor: pointer;
    width: 32px;
    margin: 12px 0;
    text-align: right;
  }

  #modal-map .md-content .top_map_section {
    display: block;
    margin: 0 0 12px 0;
  }

  .top_map_section #address_name {
    display: flex;
    box-sizing: border-box;
    width: 94%;
    height: 44px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    line-height: 1.15;
    font-size: .85em;
  }

  .top_map_section .okay {
    position: absolute;
    z-index: 9;
    bottom: 24px;
    left: 30%;
    display: block;
    width: 40%;
    text-align: center;
  }




  #modal-map .md-content .map_section {
    position: relative;
    height: 100%;
  }

  .map_section input#address-map {
    top: 0px;
    left: 10px;
    display: block;
    box-sizing: border-box;
    max-width: 320px;
    margin: auto !important;
    margin-top: 12px !important;
  }

  .map_section #cart-map {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: calc(100% - 320px);
    margin: auto;
    border-radius: 0;
    background: red;
  }
}

/* Updated 16.12.2022 - end */















.cart .block .delivery_info {
  display: block;
  margin-top: 8px;
  margin-left: 16px;
  margin-bottom: 32px;
  font-size: .85em;
}

.cart .block .delivery_info>div {
  display: flex;
  align-items: center;
  margin: 4px 0;
}

.cart .block .delivery_info>div i {
  top: -0px;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: #000 !important;
}

.cart .block .delivery_info>div p {
  margin: 0;
  margin-right: 4px;
  font-size: 1em;
  font-weight: 400;
}























/* maqk 16.08.2025 */
.address_fields_win {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 16px;
  align-items: center;
  justify-content: center;
}

.address_fields_win>div:nth-child(1) {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  grid-column-gap: 1em;
  align-items: center;
  justify-content: center;
}

.address_fields_win>div:nth-child(2) {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 1em;
  align-items: start;
  justify-content: center;
}

.address_fields_win .field {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-right: 1em;
  padding: 0 !important;
}

.address_fields_win .field label {
  position: absolute;
  top: 8px;
  left: 16px;
  cursor: default !important;
  font-size: 14px;
  font-weight: 600;
}

.address_fields_win .field input,
.address_fields_win .field textarea {
  box-sizing: border-box;
  -webkit-appearance: none;
  width: 100%;
  height: 56px;
  border-radius: 0 0 0 0px;
  background: #f7f7f7;
  border: 0px solid #777;
  border-radius: 12px !important;
  padding-left: 16px;
  padding-top: 16px;
  font-size: 1em;
  color: #000;
}

.address_fields_win .field textarea {
  -webkit-appearance: none;
  width: 100%;
  height: 80px;
  border-radius: 0 0 0 0px;
  background: #f7f7f7;
  border: 0px solid #777;
  border-radius: 12px !important;
  padding-left: 16px;
  padding-top: 32px;
  font-size: 1em;
  color: #000;
}



  .address_fields_win #address_error {
    position: relative;
    width: 100%;
    background: ;
    border-radius: 12px;
    padding: 6px 12px 0 12px;
    font-size: 13px;
    font-weight: 900;
    color: #ff0000;
  }


.address_fields_win .okay,
.pickup-sidebar .okay {
  /* maqk - 16.08.2025 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: #df4426;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

.pickup-sidebar .okay {
  position: relative;
  bottom: 0px;
  border-radius: 0;
  padding: 12px 0;
  font-size: 1.15em;
}



@media screen and (max-width: 600px) {

  .address_fields_win {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
  }

  .address_fields_win>div:nth-child(1) {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    grid-column-gap: 1em;
    align-items: center;
    justify-content: center;
  }

  .address_fields_win>div:nth-child(2) {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 1em;
    align-items: center;
    justify-content: center;
  }



  .address_fields_win .field {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-right: 1em;
    padding: 0 !important;
  }

  .address_fields_win .field label {
    position: absolute;
    top: 8px;
    left: 12px;
    cursor: default !important;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
  }

  .address_fields_win .field ::-webkit-input-placeholder {
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
  }

  .address_fields_win .field input {
    box-sizing: border-box;
    -webkit-appearance: none;
    width: 100%;
    height: 48px !important;
    border-radius: 0 0 0 0px;
    background: #f7f7f7;
    border: 0px solid #777;
    border-radius: 12px;
    padding-left: 12px;
    padding-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
  }

  .address_fields_win .field textarea {
    height: 64px !important;
    padding-left: 12px !important;
    padding-top: 26px !important;
    font-size: 13px;
    font-weight: 600;
  }


  .address_fields_win .okay {
    cursor: pointer;
    background: red;
    border-radius: 12px;
    padding: 4px;
    text-align: center;
    font-weight: 700;
    color: #fff;
  }

}
















.ymaps-2-1-79-map-copyrights-promo {
  display: none;
}

.ymaps-2-1-79-controls__bottom {
  top: ;
  margin-top: -64px !important;
}


.ymaps-2-1-79-controls__control.ymaps-2-1-79-user-selection-none {
  bottom: 3.5em !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 12px;
}

.ymaps-2-1-79-float-button.ymaps-2-1-79-_hidden-text {
  background: transparent;
  box-shadow: none;
}

.ymaps-2-1-79-float-button-icon.ymaps-2-1-79-float-button-icon_icon_geolocation {
  background-size: 40px;
  background-position: center center;
}


.ymaps-2-1-79-controls__control {
  bottom: -2em !important;
}

.ymaps-2-1-79-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 8px;
}

.ymaps-2-1-79-zoom__plus.ymaps-2-1-79-zoom__button.ymaps-2-1-79-float-button.ymaps-2-1-79-user-selection-none,
.ymaps-2-1-79-zoom__minus.ymaps-2-1-79-zoom__button.ymaps-2-1-79-float-button.ymaps-2-1-79-user-selection-none {
  border-radius: 99px;
  box-shadow: none;
}

.ymaps-2-1-79-zoom__icon.ymaps-2-1-79-float-button-icon {
  background-size: 24px;
  background-position: center center;
}

@media screen and (max-width: 1024px) {

  .ymaps-2-1-79-controls__control.ymaps-2-1-79-user-selection-none {
    bottom: 5em !important;
  }

  .ymaps-2-1-79-controls__control {
    bottom: 0em !important;
  }

}




#geo {
  cursor: pointer;
  position: absolute;
  z-index: 999;
  top: 1em;
  left: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 400px;
  height: 48px;
  background: #ff0000;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .5);
  text-transform: uppercase;
  font-size: 1em;
  font-weight: 700;
  color: #fff;
}

#geo i {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

@media screen and (max-width: 1024px) {

  #geo {
    top: 1em;
    left: 010%;
    width: 80%;
    max-width: 100%;
    height: 48px;
    border-radius: 12px;
    font-size: 12px;
  }

}

/* maqk 16.08.2025 */
#modal-map .cart .block {
  margin: 0;
  padding: 0;
}

/* end */














.address_block {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  height: 48px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
}

.address_block i {
  top: -1px;
  width: 24px;
  height: 24px;
  margin-right: ;
}

.address_block span {
  line-height: 1;
  font-size: .85em;
}

.address_block_modal span {
  display: block;
  margin: 12px 0;
  background: #333;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  font-size: .75em;
  font-weight: 500;
  color: #fff;
}

@media screen and (max-width: 800px) {

  .address_block {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-column-gap: 12px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 92%;
    max-width: inherit;
    height: 48px;
    background: transparent;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 0 12px;
    cursor: pointer;
  }

  .address_block i {
    top: -1px;
    width: 24px;
    height: 24px;
    margin-right: ;
  }

  .address_block span {
    line-height: 1;
    font-size: .85em;
  }

}











/* Кнопка для открытия модального окна */
.open-modal-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.open-modal-btn:hover {
  background-color: #0056b3;
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-title {
  margin: 12px 0;
  text-align: center;
  font-weight: 600;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 20px;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 9;
}

.back-btn {
  top: 12px;
  left: 20px;
  right: unset;
}

.close-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}


/* Контейнер с опциями */
.delivery-options {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Опция доставки */
.delivery-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0px;
  border: 2px solid #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.0s ease;
  background: #f5f5f5;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  justify-content: center;
}

.delivery-option:hover {
  border-color: #df4426;
  background-color: #df4426;
  /*transform: translateY(-2px);*/
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  color: #fff;
}

.delivery-option:hover i {
  background: #fff;
}

.delivery-option:hover span {
  color: #fff;
}


.delivery-option:active {
  transform: translateY(0);
}

.delivery-option i {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  background: #000;
}

.delivery-option span {
  font-size: 1.15em;
  font-weight: 500;
  color: #000;
}

/* Иконки */
.delivery-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  fill: none;
  stroke: #666;
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}

.delivery-option:hover .delivery-icon {
  stroke: #007bff;
}


/* Адаптивность */
/* Стили для модального окна точек самовывоза */
.pickup-modal {
  max-width: 1200px;
  width: 95%;
  height: 600px;
  padding: 0;
  overflow: hidden;
}


.pickup-content {
  display: flex;
  height: calc(100% - 80px);
}

/* Боковая панель с точками */
.pickup-sidebar {
  width: 500px;
  background-color: #fff;
  color: white;
  overflow-y: auto;
  flex-shrink: 0;
  color: #000;
}

.pickup-point {
  padding: 30px 20px 16px 20px;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pickup-point:hover {
  background-color: #ccc;
}

.pickup-point.active {
  background-color: #df4426;
}

.pickup-point .point-status {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  /* border-bottom: 1px solid #fff; */
}

.pickup-point .point-status i {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  background: #000;
}

.pickup-point.active .point-status i {
  background: #fff;
}

.pickup-point .point-status span {
  font-weight: 500;
}

.pickup-point.active .point-status span {
  color: #fff;
}













/* Контейнер карты */
.map-container {
  flex: 1;
  position: relative;
  background-color: #f5f5f5;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f4fd 0%, #d4e6f1 100%);
  position: relative;
  overflow: hidden;
}

/* Точка на карте */
.map-point {
  position: absolute;
  z-index: 2;
}

.point-marker {
  width: 24px;
  height: 24px;
  background-color: #dc3545;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

.point-marker::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #dc3545;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Элементы управления картой */
.map-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-control {
  width: 40px;
  height: 40px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #666;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-control:hover {
  background-color: #f5f5f5;
  color: #333;
}

.map-control:active {
  background-color: #e0e0e0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .pickup-modal {
    max-height: 520px;
    width: 98%;
    overflow: auto;
  }

  .pickup-content {
    flex-direction: column;
  }

  .pickup-content .pickup-sidebar {
    width: 100%;
    max-height: 500px;
  }

  .pickup-content .map-container {
    /*margin: 12px 0;*/
    margin-top: 12px;
  }

  .pickup-content .map-placeholder {
    height: 320px;
    margin-bottom: 20px;
  }

  .pickup-point {
    padding: 16px 20px 0px 20px;
  }

  .pickup-point .point-status i {
    width: 20px;
    height: 20px;
  }

}

@media (max-width: 600px) {
  .modal-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .delivery-options {
    flex-direction: column;
    gap: 15px;
  }

  .delivery-option {
    min-height: 120px;
    padding: 20px 15px;
  }

  .delivery-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }


  .delivery-text {
    font-size: 15px;
  }
}

#cart-map-self {
  width: 100%;
  height: 100%;
}

/* end maqk 16.08.2025 */