.mts-checker-wrapper {
    /* Тот самый красивый градиент */
    background: linear-gradient(145deg, #ffffff 0%, #eef6ff 50%, #e0f0ff 100%);
    border: 1px solid #d0e4ff;
    border-radius: 16px;
    padding: 28px 28px 24px 28px; /* Чуть уменьшили нижний отступ */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(40, 124, 233, 0.08);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Подтягиваем всё содержимое к верху */
    position: relative;
    overflow: hidden;
}

/* Декоративный мягкий блик на фоне */
.mts-checker-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: rgba(40, 124, 233, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

/* Шапка с заголовком и логотипом прижата к верху */
.mts-checker-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 6px;
}

.mts-checker-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

/* Уменьшенный логотип 60px */
.mts-checker-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Регион и город */
.mts-location-info {
    margin-bottom: 25px; /* Чуть увеличили отступ, чтобы строка поиска встала в центр */
    font-size: 13px;
    color: #475569;
}

.mts-location-info .showgeo {
    margin-left: 6px;
    color: #e30611;
    text-decoration: underline;
    font-weight: 600;
}

/* Блок поиска адреса (теперь выше, ближе к центру) */
.mts-search-box {
    display: flex;
    gap: 10px;
    position: relative;
    margin-bottom: 12px;
}

.mts-input-container {
    flex: 1;
    position: relative;
}

#mts-address-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #b8d7ff;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #ffffff;
}

#mts-address-input:focus {
    border-color: #287ce9;
    box-shadow: 0 0 0 3px rgba(40, 124, 233, 0.15);
}

.mts-btn {
    height: 50px;
    padding: 0 24px;
    background: #e30611;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 500;
}

.mts-btn:hover {
    background: #c7030d;
}


/* Автокомплит */
.mts-suggestions-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

/* 2. Ширина полосы скролла */
.mts-suggestions-list::-webkit-scrollbar {
    width: 8px; /* Достаточная ширина, чтобы легко увидеть */
}

/* 3. Дорожка скроллбара (фон) */
.mts-suggestions-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 4. Бегунок (ползунок), за который «тянут» */
.mts-suggestions-list::-webkit-scrollbar-thumb {
    background: #287ce9; /* Яркий акцентный синий цвет */
    border-radius: 4px;
}

/* 5. Бегунок при наведении / нажатии */
.mts-suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #1c62be;
}

/* --- Для Firefox --- */
.mts-suggestions-list {
    scrollbar-width: thin;
    scrollbar-color: #287ce9 #f1f5f9;
}

.mts-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
    color: #1e293b;
}

.mts-suggestion-item:hover {
    background-color: #f0f7ff;
    color: #287ce9;
}

/* --- БЛОКИ РЕЗУЛЬТАТА --- */
.mts-result-card {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Блок успеха */
.mts-result-status.success {
    background: #ffffff;
    border: 1px solid #a3cfbb;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mts-icon {
    font-size: 20px;
    font-weight: bold;
    color: #198754;
    display: flex;
    align-items: center;
}

.mts-status-content {
    flex: 1;
}

.mts-status-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mts-status-title-row strong {
  font-size: 15px;
  color: #031643;
}

.mts-tech-badge {
    font-size: 13px;
    color: #475569;
}

.mts-tech-badge span {
    font-weight: 700;
    color: #e30611;
}

.mts-result-address {
  margin-top: 10px;
  font-size: 15px;
  color: #000;
  font-weight: 500;
  font-family: mts-m;
}

/* Ошибка */
.mts-result-card.danger {
    background: #ffffff;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 10px;
    color: #2b1919;
}

.mts-empty-address {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 600;
    color: #e30611;
}

/* Кнопки действий (17px, font-weight: 500) */
.mts-action-buttons {
    display: flex;
    gap: 10px;
}

.mts-btn-apply {
  flex: 1;
  background: #e30611;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mts-btn-apply:hover {
    background: #c7030d;
}

.mts-btn-tariffs {
    flex: 1;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #b8d7ff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.mts-btn-tariffs:hover {
    background: #f0f7ff;
    border-color: #287ce9;
}

/* Информационная плашка снизу (аккуратно закреплена с отступом) */
.mts-checker-footer-info {
    margin-top: 25px;
    padding-top: 14px;
    border-top: 1px dashed #c4dffe;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

/* --- БЛОК С ТЕЛЕФОНОМ И ПРЕИМУЩЕСТВАМИ (ПО УМОЛЧАНИЮ) --- */
.mts-default-info-card {
    margin-top: 15px;
    background: #ffffff;
    border: 1px solid #d4e5ff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(40, 124, 233, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mts-phone-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mts-phone-icon {
    width: 42px;
    height: 42px;
    background: #fff0f1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mts-phone-text {
    display: flex;
    flex-direction: column;
}

.mts-phone-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mts-phone-number {
    font-size: 19px;
    font-weight: 800;
    color: #e30611;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s;
}

.mts-phone-number:hover {
    color: #c7030d;
}

/* Список плюсов */
.mts-advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mts-advantages-list li {
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mts-advantages-list li span {
    color: #287ce9;
    font-weight: bold;
    font-size: 14px;
}

/* Адаптив */
/* --- АДАПТИВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ --- */
@media (max-width: 768px) {
    .mts-checker-wrapper {
        padding: 20px 16px;
        overflow: visible !important;
    }

    /* Скрываем блок с телефоном и плюсами на мобилках */
    .mts-default-info-card {
        display: none !important;
    }
    
    /* На мобильных фиксируем комфортную высоту списка */
    .mts-suggestions-list {
        max-height: 155px; /* Комфортная высота на экранах телефонов */
        z-index: 9999;
    }

.mts-checker-title {
  font-size: 18px;
}

    /* Форму и кнопки переводим в одну колонку */
    .mts-search-box,
    .mts-action-buttons {
        flex-direction: column;
    }

    .mts-btn {
        width: 100%;
    }
}