

/* Start:/local/components/custom/cdek.city.selector/templates/.default/style.css?17907051037930*/
/* ============================================
   Триггер
   ============================================ */
.cdek-city-trigger {
  display: inline-block;
  margin: 0;
}

.cdek-city-icon {
  font-size: 18px;
  line-height: 1;
}

.cdek-city-label {
  font-weight: 500;
}

.cdek-city-arrow {
  font-size: 12px;
  color: #8c8c8c;
  transition: transform 0.2s ease;
}

/* ============================================
   Модальное окно
   ============================================ */
.cdek-city-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: cdekFadeIn 0.3s ease;
}

.cdek-city-modal.active {
  display: block;
}

.cdek-city-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.cdek-city-content {
  position: relative;
  max-width: 700px;
  padding: 20px 0;
  width: 95%;
  max-height: 90vh;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cdekSlideIn 0.3s ease;
}

.cdek-city-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #8c8c8c;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: absolute;
  right: 5px;
  top: 5px;
  line-height: 18px;
}

.cdek-city-close:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

/* ============================================
   Поиск
   ============================================ */
.cdek-city-search {
  padding: 16px 24px;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}

.cdek-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cdek-search-input {
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.cdek-search-input:focus {
  box-shadow: 0 0 4px 0px var(--dop-black-color);
}

.cdek-search-input::placeholder {
  color: #9aa0a8;
}

.cdek-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #8c8c8c;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.cdek-search-clear:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

/* ============================================
   Тело
   ============================================ */
.cdek-city-body {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  min-height: 200px;
  max-height: 60vh;
}

.cdek-city-body::-webkit-scrollbar {
  width: 6px;
}

.cdek-city-body::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.cdek-city-body::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.cdek-city-body::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* ============================================
   Секции
   ============================================ */
.cdek-city-section {
  margin-bottom: 20px;
}

.cdek-city-section:last-child {
  margin-bottom: 0;
}

.cdek-section-title {
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cdek-section-icon {
  font-size: 16px;
  line-height: 1;
}

.cdek-section-count {
  background: #f0f0f0;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #5f6368;
  margin-left: auto;
}

/* ============================================
   Сетка городов
   ============================================ */
.cdek-city-grid {
  display: grid;
  gap: 8px;
}

/* ============================================
   Элементы городов
   ============================================ */
.cdek-city-item {
  padding: 10px 14px;
  border: 2px solid #2525251a;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
  transition: all 0.2s ease;
  text-align: left;
  display: block;
  width: 100%;
  line-height: 20px;
}

.cdek-city-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 12px #25252587;
}

.cdek-city-item:active {
  transform: translateY(0);
}

.cdek-city-item.selected {
  background: var(--dop-black-color);
  color: var(--white-color);
}

.cdek-city-item .cdek-city-name {
  font-weight: 500;
  font-size: 16px;
}

.cdek-city-item .cdek-city-region {
  font-size: 14px;
  font-weight: 400;
  color: #5f6368;
  display: block;
}

/* ============================================
   Состояния
   ============================================ */
.cdek-city-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #5f6368;
}

.cdek-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid var(--dop-black-color);
  border-radius: 50%;
  animation: cdekSpinner 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes cdekSpinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cdek-city-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.cdek-empty-text {
  font-size: 18px;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.cdek-empty-hint {
  font-size: 14px;
  color: #5f6368;
  margin: 0;
}

/* ============================================
   Футер
   ============================================ */
.cdek-city-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8ecf0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: #f8f9fa;
  gap: 16px;
}

.cdek-selected-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.cdek-selected-icon {
  font-size: 18px;
  color: #34a853;
  line-height: 1;
}

.cdek-selected-label {
  font-size: 14px;
  color: #5f6368;
}

.cdek-selected-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.cdek-selected-code {
  font-size: 12px;
  color: #5f6368;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.cdek-confirm-btn {
  padding: 10px 24px;
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.cdek-confirm-btn:hover {
  background: #3367d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.cdek-confirm-btn:active {
  transform: translateY(0);
}

/* ============================================
   Анимации
   ============================================ */
@keyframes cdekFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cdekSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 768px) {
  .cdek-city-content {
    margin: 10px auto;
    width: 98%;
    max-height: 95vh;
    border-radius: 16px;
  }

  .cdek-city-search {
    padding: 12px 16px;
  }

  .cdek-city-body {
    padding: 10px;
    max-height: 50vh;
  }

  .cdek-city-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .cdek-city-footer {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .cdek-confirm-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cdek-city-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px;
  }

  .cdek-city-item {
    padding: 8px 10px;
    min-height: 40px;
    font-size: 13px;
  }

  .cdek-city-item .cdek-city-name {
    font-size: 13px;
  }

  .cdek-city-close {
    font-size: 24px;
  }
}

/* End */
/* /local/components/custom/cdek.city.selector/templates/.default/style.css?17907051037930 */
