/**
 * Общие стили для модальных попапов (call, chat и др.)
 * Переиспользуемые классы: .ms-popup-overlay, .ms-popup-box, .ms-popup-close, .ms-popup-links
 */

.ms-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ms-popup-overlay[aria-hidden="false"] {
  display: flex;
}

.ms-popup-box {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ms-popup-close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 28px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

.ms-popup-close:hover {
  color: #000;
}

.ms-popup-close:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Блок телефона / заголовок внутри попапа */
.ms-popup-box .ms-phone-wrap {
  margin-bottom: 0;
}

.ms-popup-box .ms-phone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
}

.ms-popup-box .ms-phone-number img {
  width: 24px;
  height: 24px;
}

.ms-popup-box .ms-hot-line {
  margin-top: 0;
  font-size: 14px;
  color: #888;
}

/* Список ссылок (мессенджеры и т.д.) */
.ms-popup-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.ms-popup-links .ms-phone-number img {
  width: 24px;
  height: 24px;
}

.ms-popup-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  background: #fafafa;
  text-decoration: none;
  color: #222;
  transition: background 0.2s, box-shadow 0.2s;
}

.ms-popup-links a:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ms-popup-links a:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ms-popup-links img,
.ms-popup-links svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ms-popup-links .ms-hot-line {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}
