@media (max-width: 480px) {
  /* Основной стиль попапа */
  .t-popup {
    width: 90% !important;
    max-width: 320px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 8px 15px 8px 15px !important;
    box-sizing: border-box;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;

    /* Сильно сокращаем максимальную высоту */
    max-height: 50vh !important;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
  }

  /* Кнопка закрытия */
  .t-popup__close {
    display: block !important;
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    color: #fff !important;
    background: #d98e9c !important;
    border: none !important;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0 !important;
    margin: 0 !important;
  }

  .t-popup__close:before {
    content: '×';
    font-size: 14px;
    line-height: 20px;
    color: #fff;
    display: block;
    text-align: center;
  }

  .t-popup__close:hover {
    background: #c77a8a !important;
  }

  /* Контейнер и отступы */
  .t-popup__container {
    width: 100% !important;
    padding-bottom: 0 !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Убираем лишние закруглённые углы */
  .t-popup:before,
  .t-popup:after {
    display: none !important;
  }

  /* Текст внутри попапа */
  .t-popup__text {
    font-size: 14px !important;
    line-height: 1.3em !important;
    color: #333 !important;
    margin-bottom: 8px;
  }

  /* Адаптируем кнопку */
  .t-popup__btn {
    width: 100% !important;
    margin-top: 8px !important;
    background: #d98e9c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 8px !important;
    margin-bottom: 0 !important;
  }
}

/* Скрытие попапа при закрытии */
.t-popup--close {
  display: none !important;
}