::selection {
    /* укажи цвет выделения текста */
    background: #F9F3C5;
}


/* Контейнер для карты */
.map-container {
    width: 100%;
    height: 100%; /* Высота может быть изменена по необходимости */
    overflow: hidden;
    border-radius: 25px;
    position: relative;
}

/* Стили для iframe карты */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 43px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Основной контейнер виджета */
.custom-countdown-timer {
  position: fixed;
  bottom: 180px;
  right: 30px;
  background-color: #F9F3C5;
  border-radius: 15px;
  padding: 20px;
  z-index: 99999;
  max-width: 350px;
  box-sizing: border-box;
  font-family: 'Roboto Flex', Tilda Sans, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Заголовок над таймером */
.custom-timer-header {
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.4;
}

/* Сетка таймера */
.timer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  text-align: center;
  align-items: center;
}

/* Единица времени */
.timer-unit {
  padding: 0;
}

/* Значение таймера */
.timer-value {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background-color: #E85102;
  border-radius: 8px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1.2;
}

/* Подпись */
.timer-label {
  font-size: 12px;
  color: #000000;
  margin-top: 3px;
  line-height: 1.2;
}

/* Сообщение об окончании */
.timer-expired {
  grid-column: 1 / -1;
  padding: 10px;
  font-weight: bold;
  color: #d32f2f;
  text-align: center;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .custom-countdown-timer {
    bottom: 160px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 10px;
    border-radius: 12px;
  }
  
  .timer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .timer-value {
    font-size: 14px;
    min-height: 30px;
  }
  
  .timer-label {
    font-size: 10px;
  }
  
  .custom-timer-header {
    font-size: 13px;
    margin-bottom: 6px;
  }
}

/* Для очень маленьких экранов - делаем горизонтальный скролл */
@media (max-width: 480px) {
  .custom-countdown-timer {
    padding: 8px;
  }
  
  .timer-grid {
    display: flex;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding-bottom: 2px;
    /* Скрываем полосу прокрутки для Webkit браузеров */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
    justify-content: center;
  }
  
  .timer-grid::-webkit-scrollbar {
    height: 4px;
  }
  
  .timer-grid::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .timer-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
  }
  
  .timer-unit {
    flex: 0 0 auto;
    width: 70px;
    min-width: 70px;
  }
  
  .timer-value {
    font-size: 12px;
    min-height: 28px;
    padding: 0 3px;
  }
  
  .timer-label {
    font-size: 9px;
  }
  
  .custom-timer-header {
    font-size: 12px;
    margin-bottom: 5px;
  }
}