

/* Start:/local/components/custom/cart/templates/.default/style.css?176122030615653*/
/* Стили для корзины */

/* Спиннер загрузки */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Стили для поля телефона */
#recipient-phone {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

div.cart__right-inner{
  z-index: 1;
}

/* Верхняя панель корзины */
div.cart__top {
    display: flex;
    justify-content: flex-end;
}

/* Стили для отображения цен товаров */
.cart__item-price {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.cart__item-price-unit,
.cart__item-price-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.price-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.cart__item-price-total .price-value {
    font-size: 16px;
    color: #e74c3c;
}

@media (max-width: 768px) {
    
    .cart__item-price {
        gap: 15px;
        margin-top: 8px;
    }
    
    .price-label {
        font-size: 11px;
    }
    
    .price-value {
        font-size: 13px;
    }
    
    .cart__item-price-total .price-value {
        font-size: 15px;
    }
}

/* Стили для select элементов */
.form__item select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.form__item select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.form__item select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form__item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* Стили для поиска местоположений */
.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-suggestion {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.location-suggestion:hover {
  background-color: #f8f9fa;
}

.location-suggestion:last-child {
  border-bottom: none;
}

.location-name {
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.3;
}

.location-name strong {
  font-weight: 700;
  color: #007bff;
}

.location-type {
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
}

.form__search {
    position: relative;
}

.form__search input {
    width: 100%;
    padding-right: 50px;
}

.form__search .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Стили для скрытого поля адреса */
.address-field-hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.address-field-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Стили для блока иерархии местоположения */
.location-hierarchy-info {
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.hierarchy-text {
    display: block;
}

/* Стили для поля адреса */
#address-field {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#address-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}


div.cart__order-content .form__search .btn{
    top:24px;
    bottom:auto;
}

/* ===== СТИЛИ ДЛЯ БЛОКА ДОСТАВКИ ===== */

/* Контейнер способов доставки */
.cart__delivery-methods {
    margin-top: 20px;
}

/* Индикатор загрузки */
.cart__delivery-loading {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
}

.cart__delivery-spinner {
    font-size: 14px;
    color: #6c757d;
}

/* Ошибка загрузки */
.cart__delivery-error {
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.cart__delivery-error-text {
    font-size: 14px;
}

/* Информационный блок о доставке */
.cart__delivery-info {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    opacity: 0;
    transform: translateY(10px);
    animation: slideInUp 0.3s ease forwards;
}

.cart__delivery-info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart__delivery-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

.cart__delivery-info-title svg {
    flex-shrink: 0;
}

.cart__delivery-info-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
}

.cart__delivery-info-text div {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.cart__delivery-info-text div:last-child {
    border-bottom: none;
}

.cart__delivery-info-text strong {
    color: #495057;
    font-weight: 600;
}

/* Адаптивность для информационного блока */
@media (max-width: 768px) {
    .cart__delivery-info {
        margin-top: 20px;
        padding: 15px;
    }
    
    .cart__delivery-info-title {
        font-size: 15px;
    }
    
    .cart__delivery-info-text {
        font-size: 13px;
        gap: 10px;
    }
    
    .cart__delivery-info-text div {
        padding: 6px 0;
    }
}

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

/* Стили для выбранного способа доставки */
.cart__square-item input[type="radio"]:checked + label {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.cart__square-item input[type="radio"]:checked + label .cl,
.cart__square-item input[type="radio"]:checked + label .cl2,
.cart__square-item input[type="radio"]:checked + label .cl3 {
    fill: #007bff;
}

/* Hover эффекты для способов доставки */
.cart__square-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.cart__square-item {
    transition: all 0.2s ease;
    border-radius: 16px;
}

/* ===== СТИЛИ ДЛЯ СВОДКИ ЗАКАЗА ===== */

/* Строки сводки с ценами */
.cart__tbl-row.cart__total-subtotal {
    border-top: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.cart__tbl-row.cart__total-delivery {
    border-top: 1px solid #e9ecef;
    font-weight: 500;
    color: #6c757d;
}

.cart__tbl-row.cart__total-total {
    border-top: 2px solid #007bff;
    font-weight: 700;
    color: #007bff;
    font-size: 18px;
}

/* Цены в сводке */
.cart__total-price {
    font-weight: 600;
    color: #495057;
}

.cart__total-total .cart__total-price {
    color: #007bff;
    font-size: 20px;
}

/* Анимация изменения цен */
.cart__total-price {
    transition: all 0.3s ease;
}

.cart__total-price.updated {
    animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #28a745; }
    100% { transform: scale(1); }
}

/* ===== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА С КАРТОЙ ===== */

/* Модальное окно для выбора ПВЗ */
.pvz-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.pvz-modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 10px;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.pvz-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.pvz-modal-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sdek-logo {
  height: 30px;
  width: auto;
}

.pvz-modal-title h2 {
  margin: 0;
  color: #333;
  font-size: 20px;
}

.pvz-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pvz-close-btn:hover {
  background: #e9ecef;
  color: #333;
}

.pvz-modal-body {
  display: flex;
  height: 600px;
}

/* Левая панель со списком ПВЗ */
.pvz-list-panel {
  width: 40%;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
}

.pvz-delivery-info {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.pvz-cost-info {
  font-size: 16px;
  color: #495057;
}

.pvz-cost {
  font-weight: 600;
  color: #28a745;
}

.pvz-term {
  color: #6c757d;
}

.pvz-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.pvz-list {
  padding: 0;
}

.pvz-item {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.pvz-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.pvz-item.selected {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.pvz-item-name {
  font-weight: 600;
  color: #2196f3;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.pvz-item-address {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.pvz-item-time {
  color: #888;
  font-size: 13px;
  font-style: italic;
}

.pvz-item-phone {
  color: #4caf50;
  font-size: 13px;
  margin-top: 5px;
  font-weight: 500;
}

/* Правая панель с картой */
.pvz-map-panel {
  width: 60%;
  position: relative;
}

.pvz-map {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  /* Светло-серый фон вместо черного */
  position: relative;
}

.pvz-map::before {
  content: 'Загрузка карты...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-size: 16px;
  z-index: 1;
}

.pvz-map.ymaps-loaded::before {
  display: none;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

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

/* Стили для информации о ПВЗ */
.pvz-details {
  margin-top: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.pvz-name {
  font-weight: 600;
  color: #28a745;
  margin-bottom: 8px;
}

.pvz-address,
.pvz-phone {
  margin-bottom: 5px;
  color: #666;
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .pvz-modal-content {
    width: 98%;
    margin: 5% auto;
  }

  .pvz-modal-body {
    flex-direction: column;
    height: 500px;
  }

  .pvz-list-panel,
  .pvz-map-panel {
    width: 100%;
  }

  .pvz-list-panel {
    height: 200px;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }

  .pvz-map-panel {
    height: 300px;
  }
}

/* Стили для поля адреса доставки */
.address-field-hidden {
  display: none !important;
}

#address-field {
  transition: all 0.3s ease;
  margin-top: 15px;
}

#address-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

#address-field input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

#address-field input:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

#address-field input::placeholder {
  color: #999;
}

/* Стили для информационного блока об оплате */
.cart__payment-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #0066CC;
  margin-top: 20px;
}

.cart__payment-info-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 600;
  color: #0066CC;
  font-size: 16px;
}

.cart__payment-info-title svg {
  margin-right: 10px;
  flex-shrink: 0;
}

.cart__payment-info-text {
  color: #333;
}

.cart__payment-info-item {
  margin-bottom: 10px;
  line-height: 1.5;
}

.cart__payment-info-item:last-child {
  margin-bottom: 0;
}

.cart__payment-info-item strong {
  color: #0066CC;
}

/* Стили для динамического отображения способов оплаты */
#cash-payment-cell {
  transition: all 0.3s ease;
}

#cash-payment-cell[style*="display: block"] {
  animation: slideInRight 0.3s ease;
}

#cash-payment-cell[style*="display: none"] {
  animation: slideOutRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Стили для описания оплаты */
#payment-description {
  transition: all 0.3s ease;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
}

/* Стили для сводки оплаты */
#payment-summary {
  transition: all 0.3s ease;
}

#payment-summary.updated {
  animation: paymentUpdate 0.5s ease;
}

@keyframes paymentUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); color: #28a745; }
  100% { transform: scale(1); }
}

/* Стили для информационных блоков оплаты */
#payment-method-name,
#payment-method-description {
  transition: all 0.3s ease;
}

/* Адаптивность для способов оплаты */
@media (max-width: 768px) {
  .cart__square-cell {
    width: 100%;
    margin-bottom: 10px;
  }
  
  #cash-payment-cell {
    margin-top: 10px;
  }
}

/* Стили для поля комментарий к заказу */
#order-comment {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 80px;
}

#order-comment:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#order-comment::placeholder {
  color: #999;
  font-style: italic;
}

.form__item label[for="order-comment"] {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* Адаптивность для textarea */
@media (max-width: 768px) {
  #order-comment {
    font-size: 16px; /* Предотвращает зум на iOS */
    padding: 10px;
  }
}
/* End */
/* /local/components/custom/cart/templates/.default/style.css?176122030615653 */
