* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-style: normal;
}

.checkout-page {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header Styles */
.checkout-header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 90px;
  margin: 10px 0;
}

.region-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-right: auto;
}

.region-button:hover {
  background: #f5f5f5;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-info:hover .tooltip {
  display: block;
}

.tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
  min-width: 200px;
}

.tooltip p {
  margin-bottom: 8px;
  font-size: 14px;
}

.tooltip a {
  color: #d60000;
  text-decoration: none;
  font-weight: 500;
}

.main-phone {
  color: #d60000;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.auth-section {
  position: relative;
}

.auth-dropdown {
  position: relative;
}

.auth-button {
  background: 238,239,241;
  color: black;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.auth-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  min-width: 280px;
  z-index: 1000;
}

.auth-dropdown:hover .auth-dropdown-content {
  display: block;
}

.auth-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.auth-primary-button {
  background: #d60000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
}

.user-dropdown {
  position: relative;
}

.user-button {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e0e0e0;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-button:hover {
  background: #e9ecef;
}

.user-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  min-width: 200px;
  z-index: 1000;
}

.user-dropdown:hover .user-dropdown-content {
  display: block;
}

.user-greeting {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.user-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.user-menu-item:hover {
  color: #d60000;
}

.user-menu-item i {
  width: 16px;
  text-align: center;
}

.logout-button {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: 4px;
}

/* Main Content */
.checkout-main {
  padding: 24px 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-content {
  padding: 24px;
}

/* Auth Card */
.auth-card .auth-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.auth-text h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.auth-text p {
  color: #666;
  font-size: 14px;
}

.primary-button {
  background: #d60000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.primary-button.large {
  padding: 16px 32px;
  font-size: 16px;
}

.primary-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Cart Card */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-header h1 {
  font-size: 24px;
  font-weight: 700;
}

.cart-number {
  color: #666;
  font-size: 14px;
}

/* Cart Controls */
.cart-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox input:checked + .checkmark {
  background: #d60000;
  border-color: #d60000;
}

.checkbox input:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
}

.icon-button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-button.small {
  padding: 4px;
}

/* Cart Items */
.cart-items {
  border-top: 1px solid #f0f0f0;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.item-main {
  display: flex;
  gap: 16px;
}

.item-select {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-code {
  font-size: 12px;
  color: #666;
}

.item-name {
  font-weight: 500;
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

.item-name:hover {
  color: #d60000;
}

.available-badge {
  color: #00a046;
  font-size: 14px;
}

.out-of-stock {
  color: #e65656 !important;
}

.stock-warning {
  color: #ff9800 !important;
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.price-total {
  font-weight: 700;
  font-size: 18px;
  color: #333;
}

.price-unit {
  font-size: 14px;
  color: #666;
}

/* Counter */
.counter {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.counter-btn {
  background: #f8f8f8;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
}

.counter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.counter-input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  padding: 8px;
  font-size: 14px;
  background: white;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-cart h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.empty-cart p {
  margin-bottom: 20px;
}

/* Delivery Methods */
.delivery-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
  margin-bottom: 32px;
}

.delivery-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.delivery-location {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-button {
  background: none;
  border: none;
  color: #d60000;
  cursor: pointer;
  font-size: 14px;
}

.delivery-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.delivery-method {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delivery-method:hover {
  border-color: #e0e0e0;
}

.delivery-method.active {
  border-color: #d60000;
  background: #fff5f5;
}

.delivery-method.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.delivery-method.disabled:hover {
  border-color: #f0f0f0;
  background: white;
}

.method-icon {
  width: 48px;
  height: 48px;
  background: #f8f8f8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #666;
}

.method-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.method-info p {
  color: #666;
  font-size: 14px;
}

.method-disabled-text {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0 0;
  font-style: italic;
}

/* Pickup Point */
.selected-pickup-point {
  display: grid;
  grid-template-columns: auto 60%;
  gap: 10px;
  margin-top: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

@media (max-width: 640px) {
  .selected-pickup-point {
    grid-template-columns: 100%;
  }
}

.selected-point-header {
  margin-bottom: 16px;
}

.selected-point-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.selected-point-info {
  margin-bottom: 16px;
}

.selected-point-address {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.selected-point-delivery {
  font-size: 14px;
  color: #00a046;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.selected-point-hours {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.selected-point-actions {
  margin-bottom: 16px;
}

.change-point-button {
  background: #fff;
  color: #d60000;
  border: 1px solid #d60000;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.change-point-button:hover {
  background: #fff5f5;
}

/* Map */
.pickup-map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  min-width: 300px;
  width: 100%;
}

.pickup-map {
  width: 100%;
  height: 300px;
  min-height: 300px;
}

.map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: #f5f5f5;
  border-radius: 8px;
}

.map-loading p {
  margin-top: 10px;
  color: #666;
}

.modal-map-container {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.modal-map {
  width: 100%;
  height: 400px;
  min-height: 400px;
}

#pickup-map,
#modal-pickup-map {
  display: block !important;
  visibility: visible !important;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.payment-method {
  flex: 1;
  padding: 16px;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method:hover {
  border-color: #e0e0e0;
}

.payment-method.active {
  border-color: #d60000;
  background: #fff5f5;
}

.payment-method.recommended {
  border-color: #3caa3c;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.payment-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.payment-title h3 {
  font-size: 16px;
  font-weight: 600;
}

.recommended-badge {
  background: #3caa3c;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.payment-icon img {
  height: 24px;
}

.payment-description {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

/* Order Summary */
.order-summary {
  position: sticky;
  top: 24px;
}

.summary-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  font-weight: 500;
}

.edit-button {
  background: none;
  border: none;
  color: #d60000;
  cursor: pointer;
  font-size: 12px;
}

.section-value {
  font-size: 14px;
  color: #333;
}

.section-subvalue {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* Promo Section */
.promo-section {
  margin-bottom: 20px;
}

.promo-input-wrapper {
  position: relative;
}

.promo-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
}

.promo-input:focus {
  outline: none;
  border-color: #d60000;
}

.promo-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
}

.promo-clear:hover {
  color: #666;
}

.promo-hint {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0 0;
}

/* Order Details */
.order-details {
  margin-bottom: 24px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
}

.detail-row.total {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  margin-top: 8px;
}

.detail-row.total .detail-label {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.detail-row.total .detail-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Checkout Button */
.checkout-button {
  width: 100%;
  background: #d60000;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkout-button:hover:not(:disabled) {
  background: #b30000;
}

.checkout-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Стили для формы данных покупателя */
.customer-form,
.legal-entity-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.required .form-label::after {
  content: " *";
  color: #d60000;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.form-input {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: #d60000;
}

.form-input::placeholder {
  color: #999;
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-checkmark {
  border-color: #d60000;
  background: #d60000;
}

.radio-label input[type="radio"]:checked + .radio-checkmark::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.radio-text {
  color: #333;
}

/* Поля для юридического лица */
.legal-entity-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для предупреждений */
.cart-warnings {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
}

.warning-message {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #856404;
  font-size: 14px;
}

.min-order-warning {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #856404;
}

/* Стили для товаров с предупреждениями */
.cart-item.has-warning {
  border-left: 3px solid #f39c12;
  background: #fffaf0;
}

.stock-warning-icon {
  color: #e74c3c;
  font-weight: bold;
  margin-left: 8px;
}

.max-quantity-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Стили для районов доставки */
.courier-districts {
  margin-top: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.districts-header {
  margin-bottom: 16px;
}

.districts-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.districts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.district-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.district-item:hover {
  border-color: #d60000;
  background: #fff5f5;
}

.district-item.active {
  border-color: #d60000;
  background: #fff5f5;
}

.district-radio {
  flex-shrink: 0;
}

.custom-radio {
  position: relative;
}

.custom-radio input[type="radio"] {
  display: none;
}

.district-info {
  flex: 1;
}

.district-name {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  margin: 0;
}

/* Стили для транспортной компании */
.transport-company {
  margin-top: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.transport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.transport-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.transport-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.transport-close:hover {
  background: #f5f5f5;
  color: #666;
}

.transport-address {
  margin-bottom: 24px;
}

.address-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.selected-city-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #e8f5e8;
  border: 1px solid #c8e6c9;
  border-radius: 6px;
}

.city-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #2e7d32;
}

.change-city-button {
  background: none;
  border: 1px solid #4caf50;
  color: #4caf50;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.change-city-button:hover {
  background: #4caf50;
  color: white;
}

.address-input-group {
  margin-bottom: 16px;
}

.input-hint {
  font-size: 12px;
  color: #666;
  margin: 4px 0 0 0;
  font-style: italic;
}

.calculate-delivery {
  margin-top: 20px;
}

.calculate-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #d60000;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.calculate-button:hover:not(:disabled) {
  background: #b30000;
}

.calculate-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.transport-methods {
  margin-top: 24px;
}

.methods-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.methods-table {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.table-col {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.method-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-col, .time-col {
  text-align: center;
}

.method-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.method-row:hover {
  background: #f8f9fa;
}

.method-row.active {
  background: #fff5f5;
  border-color: #d60000;
}

.method-row:last-child {
  border-bottom: none;
}

.method-radio {
  display: flex;
  align-items: center;
}

.method-name {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  margin: 0;
}

.method-description {
  font-size: 12px;
  color: #666;
  margin: 4px 0 0 0;
  line-height: 1.3;
}

.price {
  font-weight: 600;
  color: #d60000;
}

.delivery-time {
  color: #666;
}

.transport-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 4px;
  color: #1565c0;
}

.transport-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.no-methods-message {
  text-align: center;
  padding: 40px 20px;
}

.loading-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #666;
}

.loading-message p {
  margin: 0;
  font-size: 14px;
}

/* Стили для модального окна регионов */
.region-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.region-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.region-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.region-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.region-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 4px;
  border-radius: 4px;
}

.region-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.region-modal-body {
  padding: 24px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.region-search-container {
  margin-bottom: 20px;
}

.region-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.region-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.region-search-input:focus {
  outline: none;
  border-color: #d60000;
}

.region-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.region-note-icon {
  color: #d60000;
  font-size: 16px;
  margin-top: 2px;
}

.region-note-text {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.regions-list-container {
  max-height: 400px;
  overflow-y: auto;
}

.regions-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d60000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-spinner.small {
  width: 24px;
  height: 24px;
  border-width: 2px;
  margin: 0 auto 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.regions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.region-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.region-item:hover {
  border-color: #d60000;
  background: #fff5f5;
}

.region-item.active {
  border-color: #d60000;
  background: #fff5f5;
}

.region-item-icon {
  color: #d60000;
  font-size: 16px;
}

.region-item-name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Стили для модального окна выбора пункта самовывоза */
.pickup-modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pickup-modal-subcontent {
  display: grid;
  grid-template-columns: 30% auto;
  gap: 15px;
}

.pickup-location-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pickup-city {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.pickup-stores-count {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.pickup-points-list {
  max-height: 400px;
  overflow-y: auto;
}

.pickup-point-item {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pickup-point-item:hover {
  border-color: #d60000;
  background: #fff5f5;
}

.pickup-point-item.active {
  border-color: #d60000;
  background: #fff5f5;
}

.point-address {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px 0;
  color: #333;
}

.point-delivery {
  font-size: 14px;
  color: #00a046;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.point-working-hours {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
}

.point-actions {
  display: flex;
  justify-content: flex-end;
}

.point-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00a046;
  font-weight: 500;
  font-size: 14px;
}

.select-point-button {
  background: #d60000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.select-point-button:hover {
  background: #b30000;
}

.no-stores-message {
  padding: 20px;
  text-align: center;
  color: #666;
}

/* Стили для модального окна авторизации */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.auth-modal-content {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.auth-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.auth-modal-body {
  padding: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.forgot-password-link {
  background: none;
  border: none;
  color: #d60000;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

.forgot-password-link:hover {
  color: #b30000;
}

.forgot-password-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  color: #856404;
  font-size: 14px;
}

.auth-modal-footer {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
}

.auth-cancel-button {
  flex: 1;
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-cancel-button:hover:not(:disabled) {
  background: #e9ecef;
}

.auth-login-button {
  flex: 1;
  background: #d60000;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-login-button:hover:not(:disabled) {
  background: #b30000;
}

.auth-login-button:disabled,
.auth-cancel-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-registration-section {
  padding: 0 24px 24px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.auth-registration-text {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 14px;
}

.auth-registration-button {
  width: 100%;
  background: #fff;
  color: #d60000;
  border: 1px solid #d60000;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-registration-button:hover:not(:disabled) {
  background: #fff5f5;
}

.auth-registration-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Стили для модального окна выбора ПВЗ */
.pvz-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pvz-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pvz-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pvz-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.pvz-modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.pvz-modal-left {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid #e0e0e0;
}

.pvz-modal-right {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.pvz-search-container {
  margin-bottom: 20px;
}

.pvz-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.pvz-points-list {
  flex: 1;
  overflow-y: auto;
}

.pvz-point-item {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.pvz-point-item:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

.pvz-point-item.active {
  border-color: #d60000;
  background: #fff5f5;
}

.point-address {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.point-schedule {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}

.point-phone {
  color: #666;
  font-size: 14px;
}

.pvz-map-container {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

#pvz-map-modal {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.pvz-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pvz-cancel-button {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.pvz-confirm-button {
  padding: 10px 20px;
  background: #d60000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.pvz-confirm-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.pvz-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.no-pvz-found {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Стили для секции ПВЗ в блоке транспортной компании */
.transport-pvz-section {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
}

.selected-pvz-info .pvz-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.selected-pvz-info .pvz-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.selected-pvz-info .change-pvz-button {
  background: none;
  border: 1px solid #d60000;
  color: #d60000;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.selected-pvz-info .change-pvz-button:hover {
  background: #fff5f5;
}

.selected-pvz-info .pvz-info-content {
  background: white;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e9e9e9;
}

.selected-pvz-info .pvz-address {
  color: #333;
  font-size: 14px;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.selected-pvz-info .pvz-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 12px;
  margin: 0;
}

.select-pvz-prompt .pvz-prompt-header {
  margin-bottom: 16px;
}

.select-pvz-prompt .pvz-prompt-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.select-pvz-prompt .pvz-prompt-description {
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.select-pvz-prompt .select-pvz-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  background: #d60000;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.select-pvz-prompt .select-pvz-button:hover {
  background: #b30000;
}

/* Радио кнопки для методов доставки */
.method-radio input[type="radio"] {
  display: none;
}

.method-radio .radio-checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

.method-radio input[type="radio"]:checked + .radio-checkmark,
.district-radio input[type="radio"]:checked + .radio-checkmark {
  border-color: #d60000;
  background-color: #d60000;
}

.method-radio input[type="radio"]:checked + .radio-checkmark::after,
.district-radio input[type="radio"]:checked + .radio-checkmark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 100%;
    gap: 16px;
  }
  
  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .auth-promo {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .cart-controls {
    gap: 8px;
  }
  
  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .item-actions {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: stretch;
  }
  
  .pickup-modal-subcontent {
    grid-template-columns: 1fr;
  }
  
  .selected-pickup-point {
    padding: 16px;
  }
  
  .selected-point-title {
    font-size: 16px;
  }
  
  .selected-point-address {
    font-size: 14px;
  }
  
  .region-modal-content {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }
  
  .region-modal-body {
    padding: 16px;
  }
  
  .regions-list {
    grid-template-columns: 1fr;
  }
  
  .address-form {
    grid-template-columns: 1fr;
  }
  
  .methods-table {
    font-size: 12px;
  }
  

  
  .table-col {
    padding: 8px 12px;
  }
  
  .price-col, .time-col {
    text-align: left;
  }
  
  .selected-city-info {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .change-city-button {
    align-self: flex-end;
  }
  
  .calculate-button {
    width: 100%;
    justify-content: center;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-input {
    padding: 10px 12px;
  }
  
  .customer-form {
    gap: 16px;
  }
  
  .transport-pvz-section {
    padding: 12px;
  }
  
  .selected-pvz-info .pvz-info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .selected-pvz-info .change-pvz-button {
    align-self: flex-end;
  }

  .pvz-modal-body {
    display: grid;
  }

  .table-header,
  .method-description {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .card-content {
    padding: 16px;
  }
  
  .auth-modal-overlay {
    padding: 10px;
  }
  
  .auth-modal-content {
    max-width: 100%;
  }
  
  .auth-modal-header,
  .auth-modal-body,
  .auth-modal-footer {
    padding: 16px;
  }
  
  .auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .table-header,
  .method-row {
    grid-template-columns: auto auto;
    gap: 8px;

    align-items: center;
  }

  .pickup-map-container {
    min-width: 100%;
  }
}

/* Иконки (сохранены) */
.icon-flag::before { content: "📍"; }
.icon-help::before { content: "❓"; }
.icon-search::before { content: "🔍"; }
.icon-delete::before { content: "🗑️"; }
.icon-heart::before { content: "♡"; }
.icon-heart-filled::before { content: "♥"; }
.icon-location::before { content: "📍"; }
.icon-truck::before { content: "🚚"; }
.icon-package::before { content: "📦"; }
.icon-close::before { content: "✕"; }
.icon-info::before { content: "ℹ"; }
.icon-warning::before { content: "⚠️"; }
.icon-check::before { content: "✓"; }
.icon-user::before { content: "👤"; }
.icon-orders::before { content: "📦"; }
.icon-logout::before { content: "🚪"; }
.icon-calculator::before { content: "🧮"; }
.icon-map-pin::before { content: "📍"; }
.icon-envelope::before { content: "✉️"; }