/* Floating cart button (FAB) */

.cart-button {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green, #27ae60);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 16px rgba(39, 174, 96, .35);
}

.cart-button.visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-button:hover {
  background: var(--green-hover, #219150);
  transform: scale(1.06);
}

.cart-item-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e63946;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Общие стили: синхронизировано с app/static/css/global.css (Django). */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

h1 {
  font-size: 1.25rem !important;
  font-weight: 600;
}

h2 {
  font-size: 1.15rem !important;
  font-weight: 600;
}

h3 {
  font-size: 18px !important;
  font-weight: 600;
}

.global-title {
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.global-description {
  margin-bottom: 10px;
  font-size: 14px;
}

.global-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Добавьте свойство justify-content: flex-end; */
}

.global-modal-container {
  position: relative;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
  max-width: 500px;
  width: 95%;
  background-color: white;
  margin-bottom: 0px;
  border-radius: 5px;
  overflow-y: scroll;
}

.global-modal-footer {
  display: flex;
  max-width: 500px;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: sticky;
  bottom: 0;
  background-color: white;
  padding-top: 10px;
}


.company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: inherit;
}

/* Логотип */
.company-logo {
  width: 15%;
  margin: 1rem; /* Используем rem вместо px */
  display: flex;
  align-items: center;
}

/* Логотип изображения */
.company-logo img {
  width: 100%;
  height: auto; /* Автоматическая высота сохраняет пропорции изображения */
}

/* Название компании */
.company-name {
  display: flex;
  align-items: center;
}


/* Базовые стили профиля; внешние отступы только в старых React-шапках (.company-header / .header).
   Иначе те же классы на Django-странице меню (<nav class="header-profile header-actions">)
   получают margin из shop-widget.css и «плывут» от края. */
.header-profile {
  position: relative;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.company-header .header-profile,
.header .header-profile {
  margin: 1rem;
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}


/* Дополнительные стили для модального окна меню */
.modal-login-container {
  position: absolute;
  top: 5rem; /* 65px -> 4.0625rem */
  right: 1rem; /* Прижимаем выпадающее меню к правому краю */
  background-color: #fff;
  border: 0.0625rem solid #ccc; /* 1px -> 0.0625rem */
  border-radius: 1rem; /* 8px -> 0.5rem */
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* 0 4px 8px -> 0 0.25rem 0.5rem */
  z-index: 1000;
}

.login-button {
  border: none;
  border-radius: 1rem;
  background-color: #38d71c;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  width: 100%;
}


.modal-login {
  width: auto; /* Автоматическая ширина */
  height: auto; /* Автоматическая высота */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-login-content {
  background-color: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal-login-content a {
  text-decoration: none;
  color: #333;
  display: block;
  font-size: 18px;
}


/* Медиазапрос для планшетов и компьютеров */
@media (min-width: 768px) {


  h1 {
    font-size: 2rem !important;
    font-weight: 600;
  }

  .company-header {
    padding-top: 1rem;

  }

  .company-logo {
    width: 100px; /* Изменяем ширину логотипа для больших экранов */
    margin: 1rem; /* Увеличиваем отступ для большего экрана */
  }

  .company-name {
    flex-grow: 1; /* Позволяем этому элементу занимать доступное пространство */
    text-align: center; /* Центрируем название на больших экранах */
  }

  .company-header .header-profile,
  .header .header-profile {
    margin: 1rem;
    padding: 0.5rem; /* Добавляем отступы */
  }

  .modal-login-container {
    top: 7rem; /* 65px -> 4.0625rem */
    right: 1rem; /* Прижимаем выпадающее меню к правому краю */
  }

}

/* Для больших экранов, таких как ноутбуки и настольные компьютеры */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px; /* Максимальная ширина контейнера */
    margin: 0 auto; /* Выравнивание по центру с полями по бокам */
    padding: 0 2rem; /* Внутренние отступы могут быть больше на больших экранах */
  }
}

/* Кнопки и футер */
.modal-buttons {
  display: flex; /* Flexbox для горизонтального размещения кнопок */
  justify-content: space-between; /* Размещаем кнопки по краям */
  width: 100%; /* Контейнер занимает всю ширину экрана */
  gap: 20px; /* Расстояние между кнопками */
}

.add-to-cart-button,
.close-button {
  border: none;
  padding: 0.5rem 1rem;
  width: 100%;
  font-size: 1.25rem;
  border-radius: 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
  color: #fff; 
}

.close-button {
  background-color: orange; 
}

.add-to-cart-button {
  background-color: #38d71c; 
}

.total-price {
  font-size: 30px;
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.order-confirmation-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  width: 95%;
  max-width: 500px;
  background-color: white;
  margin-bottom: 20px;
  border-radius: 5px;
  overflow-y: scroll;
}


.basket-icon {
  font-size: 30px;
  cursor: pointer;
}

.separator {
  width: 1px;
  height: 20px;
  background-color: #ccc;
  margin: 0 10px;
}

.order-confirmation-title {
  text-align: center;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.order-confirmation-name-field {
  width: 100%;
}

.order-confirmation-phone-field {
  margin-top: 10px;
}

.input-field-phone-invalid {
  border: 1px solid red;
  width: 100%;
  height: 40px; /* Пример высоты поля */
  box-sizing: border-box;
  padding: 10px;
  border-radius: 20px;
  font-size: 16px;  
}

.input-field-phone {
  width: 100%;
  height: 40px; /* Пример высоты поля */
  box-sizing: border-box;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid gray;
  font-size: 16px;
}

.input-field-name {
  width: 100%;
  height: 40px; /* Пример высоты поля */
  box-sizing: border-box;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid gray;
  font-size: 16px;
}

.order-confirmation-options {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  background-color: #f2f2f2;
  border-radius: 20px;
}

.order-confirmation-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;  
}

.order-option-button {
  border: none;
  padding: 7px 14px;
  font-size: 20px;
  background-color: #f2f2f2;
  border-radius: 16px;
  cursor: pointer;
  width: 50%;
}

.order-option-button.active {
  background-color: orange;
  color: white;
}

.order-option-button:not(.active) {
  background-color: #f2f2f2;
  color: #333;
}

.delivery-content {
  width: 100%;
}

.takeaway-content {
  width: 100%;
}

.address-frame {
  border: 1px solid gray;
  padding: 10px;
  height: 70px;
  margin-top: 10px;
  background-color: #fff;
  border-radius: 20px;
}

.no-address {
  border: 1px solid red;
}

.company-name {
  margin: 5px; /* Уменьшаем отступ снизу */
}

.company-address {
  margin: 5px; /* Уменьшаем отступ сверху */
}

.time-selection {
  display: flex;
  background-color: #f2f2f2;
  border-radius: 20px;
  margin-top: 10px;
}

.time-selector {
  flex: 1;
  border: none;
  padding: 7px;
  background-color: #f2f2f2;
  font-size: 20px;
  border-radius: 20px;
}

.time-selector.active {
  background-color: orange;
  color: white;
}

.order-payments {
  width: 100%;
  margin-top: 10px;
}

.payment-frame {
  border: 1px solid gray;
  padding: 10px;
  background-color: #fff;
  border-radius: 20px;
  height: 20px;
}

.placeholder {
  margin: 0px;
}

.order-comments {
  width: 100%;
  margin-top: 10px;
}

.order-comment-frame {
  height: 70px;
  border: 1px solid gray;
  padding: 10px;
  background-color: #fff;
  border-radius: 20px;
}

.order-comment-frame textarea {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  resize: none; /* Запрещаем изменение размеров поля */
}


.order-finish-summary {
  background-color: #f2f2f2;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column; /* Добавляем вертикальную ориентацию */
  align-items: center; /* Выравнивание по центру по горизонтали */
  padding-bottom: 10px; /* Добавляем небольшой отступ снизу */
}

.summary-text {
  padding: 10px;
}

.order-final-price {
  font-size: 24px;
}

.complete-order-button-wrapper {
  width: 100%;
}


.complete-order-button {
  background-color: #38d71c;
  width: 100%; /* Изменяем ширину на 90% */
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;  
  color: #fff;
}


.complete-order-button-disabled {
  background-color: darkgrey;
}

.time-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.time-picker-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
  text-align: center;
  width: 50%;
  opacity: 1;
}

.time-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.time-picker-title {
  font-size: 18px;
  font-weight: bold;
}

.time-picker-close {
  cursor: pointer;
  font-size: 20px;
  color: #999;
}

.time-picker-close:hover {
  color: #333;
}

.time-picker-body {
  display: flex;
  justify-content: space-between;
}

.time-picker-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-picker-column-title {
  font-size: 16px;
  margin-bottom: 5px;
}

.time-picker-options {
  height: 120px; /* Высота видимой области колонки */
  overflow-y: auto;
}

.time-picker-option {
  padding: 5px 10px;
  margin-bottom: 5px;
  cursor: pointer;
}

.time-picker-option.active {
  background-color: orange;
  color: #fff;
}

.time-picker-save {
  margin-top: 10px;
}

.time-picker-save button {
  padding: 7px 14px;
  width: 100%;
  font-size: 20px;
  background-color: #38d71c;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.time-picker-save button:hover {
  background-color: #0056b3;
}

.time-picker-save button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.timepicker-close-button-container {
  position: fixed;
  top: 20px;
  left: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 999;
}

.timepicker-close-button {
  background-color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 0px 0px;
}

.timepicker-close-button svg {
  width: 50px;
  height: 50px;
  color: #000;
}

/* Добавьте стили в файл TimePickerModal.css или вместе со стилями вашего приложения */
.active {
  background-color: green; /* Измените стиль активной кнопки по вашему желанию */
  /* Дополнительные стили для активной кнопки */
}

.inactive {
  background-color: grey; /* Измените стиль неактивной кнопки по вашему желанию */
  /* Дополнительные стили для неактивной кнопки */
}

.thank-you-image {
  max-width: 250px;
  margin: 0 auto 1rem auto;
  display: block;
}
.address-modal-header {
  background-color: #f5f5f5;
  width: 100%;
  padding-left: 10px;
  box-sizing: border-box;
  margin: -5px;
}

.separator {
  width: 1px;
  height: 20px;
  background-color: #ccc;
  margin: 0 10px;
}

.address-modal-title {
  text-align: center;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.address-modal-title-name {
  font-size: 24px;
  font-weight: bold;
}

#map {
  width: 100%;
  height: 400px;
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;  
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 15px;
}

.delivery-result_container {
  width: 90%;
}

.buttons-address-location-container {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 90%;
}


.geolocate-button {

  background-color: royalblue;
  width: 100%; /* Изменяем ширину на 90% */
  border: none;
  border-radius: 20px;
  cursor: pointer;
  padding: 7px 14px;
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;

}

.delivery-cost {
  font-size: 16px;
  padding: 10px;
  font-weight: 600;
}

.red-error-message {
  color: red;
}


.pac-container {
    z-index: 9999 !important;
}

.address-comment-frame {
  width: 100%;
  height: 70px;
  border: 1px solid gray;
  margin-bottom: 10px;
  background-color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center; /* Добавляем этот стиль */
  justify-content: center; /* Добавляем этот стиль */
}

.address-comment-inner {
  width: 100%;
  padding: 10px;
}

.address-comments {
  height: 100%;
  width: 100%;
  border-style: none;
  box-sizing: border-box;
}


.save-address-button {
  border: none;
  padding: 0.5rem 1rem;
  width: 100%;
  font-size: 1.25rem;
  border-radius: 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
  color: #fff; 
  background-color: #38d71c;
}


.save-address-button-active {
  background-color: #38d71c;
}

.save-address-button-disabled {
  background-color: darkgrey;
}


.close-app-button {
  background-color: #38d71c;
  width: 100%; /* Изменяем ширину на 90% */
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;  
  color: #fff;
}
/* Cart modal styles */

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--green, #27ae60);
  color: #fff;
  padding: 12px 16px;
}

.cart-summary-total {
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-summary-quantity {
  font-size: 0.9375rem;
  opacity: 0.85;
}

.cart-item {
  position: relative;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.25rem;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  transition: color 0.18s ease;
}

.cart-close-button:hover {
  color: #e63946;
}

.cart-item-content {
  display: flex;
  align-items: center;
  padding-right: 28px;
}

.cart-item-image {
  flex-shrink: 0;
  width: 30%;
  max-width: 80px;
  margin-right: 12px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
}

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

.cart-item-text {
  flex: 1;
  min-width: 0;
}

.product-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1a1a2e;
  line-height: 1.3;
}

.product-modification {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-modification span {
  font-size: 0.75rem;
  color: #6b7280;
}

.divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 8px 0;
}

.item-details-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-price {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}

.quantity-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.decrease-button,
.increase-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.decrease-button:hover,
.increase-button:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.quantity {
  font-size: 0.9375rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* cart-button-shopping / cart-button-finish живут в global.css */


.modal-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}


.modifications-modal-content p {
  margin-top: 10px;
  text-align: center;
}

.modification-price {
  font-size: 16px;
}



.modal-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}


.modifications-modal-content p {
  margin-top: 10px;
  text-align: center;
}


.modificator1-buttons-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Замените margin-top и margin-bottom на justify-content: space-between */
  background-color: #f2f2f2;
  border-radius: 20px;
  margin-bottom: 10px;
}


.modificator1-button.selected {
  background-color: orange;
  color: #fff;
  font-weight: 500;
}

.modificator1-button {
  border: none;
  border-radius: 20px;
  background-color: #f2f2f2;
  padding: 7px 14px;
  color: #333;
  cursor: pointer;
  flex: 1; /* Добавьте свойство flex с значением 1 */
}


.modificator2-buttons-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}


.modificator2-button {
  width: 100%;
  border-radius: 20px;
  background-color: white;
  border-width: 1px;
  border-color: #f2f2f2;
}

.modificator2-button img {
  max-width: 80%;
  height: auto;
}

.modificator2-button.selected {
  border: 2px solid #00cc00;
  font-weight: 500;
  /* Другие стили для выделенной кнопки модификатора типа 2 */
}


.modification-price {
  font-size: 16px;
}



.bmgm-info {
  width: 100%
}

.bmgm-info h3 {
  color: #333;
}

.bonus-products {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.bonus-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Элементы будут распределены по краям */
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #fff;
  transition: background-color 0.3s;
}

.checkbox-container {
  display: flex;
  align-items: center; /* Выравниваем чекбокс и название по центру */
}

.bonus-product-name {
  font-weight: bold;
  margin-left: 10px; /* Отступ слева от чекбокса */
  color: #555;
}

.bonus-product-price {
  font-weight: normal;
  color: #888;
  margin-left: 10px; /* Отступ слева от названия продукта */
}

.bonus-product-item input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.login-modal {
  background-color: white;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-content {
  padding: 20px; /* Отступ внутри окна */
  width: 90%; /* Ширина контента внутри окна */
  background-color: white;
}

.login-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.close-icon {
  cursor: pointer;
  font-size: 40px;
  position: absolute;
  top: 20px;
  right: 20px;  
}

.login-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.facebook-button {
  background-color: #5890ff;
}

.login-telegram-button .telegram-button {
  /* Стили для кнопки Telegram */
  background-color: #0088cc;
  /* Добавьте другие стили, какие вам нужны */
}

.google-button {
  background-color: white;
  color: #333;
  border-color: #333; /* Цвет обводки */
}

