
  .policy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .policy-popup--visible {
    visibility: visible;
    opacity: 1;
  }
  
  .policy-popup__content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: popup-show 0.3s ease-out;
  }
  
  @keyframes popup-show {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  .policy-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .policy-popup__logo {
    max-width: 50px;
  }
  
  .policy-popup__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
  }
  
  .policy-popup__body {
    margin-bottom: 20px;
  }
  
  .policy-popup__body h2 {
    margin: 0;
    font-size: 1.5rem;
  }
  
  .policy-popup__body p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .policy-popup__link {
    color: #007bff;
    text-decoration: underline;
  }
  
  .policy-popup__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  
  .policy-popup__button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
  }
  
  .policy-popup__button:hover {
    transform: scale(1.05);
  }
  
  .policy-popup__button:active {
    transform: scale(0.95);
  }
  
  .policy-popup__button--accept {
    background-color: #28a745;
    color: #fff;
  }
  
  .policy-popup__button--accept:hover {
    background-color: #218838;
  }
  
  .policy-popup__button--decline {
    background-color: #dc3545;
    color: #fff;
  }
  
  .policy-popup__button--decline:hover {
    background-color: #c82333;
  }




  #message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 40px 80px; 
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5; /* Сделал межстрочный интервал оптимальным */
    max-width: 100%; /* Ограничил ширину, чтобы текст не растягивался */
    word-wrap: break-word; /* Перенос слов, если они слишком длинные */
    text-align: center; /* Текст по центру */
    z-index: 1000;
    opacity: 0;
    animation: fadeInOut 3s ease forwards;
   /* Добавил тень для выделения */
  }
  
  /* Анимация появления и исчезновения */
  @keyframes fadeInOut {
    0% {
      opacity: 0;
      transform: translate(-50%, -60%);
    }
    10%, 90% {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -40%);
    }
  }