/* Плашка «сайт использует куки». Подключается в base.html, то есть на всех
   страницах, поэтому все правила привязаны к своим классам и чужое не задевают.
   Цвета как в футере главной, кнопка — синяя кнопка сайта. */

.cookieNotice {
   position: fixed;
   left: 1rem;
   right: 1rem;
   bottom: 1rem;
   /* Выше шапки и меню (у них z-index до 5), чтобы плашку ничто не закрыло. */
   z-index: 100;
   display: flex;
   align-items: center;
   gap: 1.25rem;
   max-width: 46rem;
   margin: 0 auto;
   padding: 1rem 1.25rem;
   /* Montserrat на главной, Roboto в каталоге: на каждой странице объявлен
      только один из них, второй браузер пропустит. */
   font-family: montserrat, roboto, Arial, Helvetica, sans-serif;
   font-size: 0.875rem;
   line-height: 1.5;
   color: #ffffff;
   background-color: #3B4242;
   border-radius: 20px;
   box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

/* Атрибут hidden браузер прячет через display: none, но display: flex выше
   его перебил бы. Это правило возвращает hidden силу. */
.cookieNotice[hidden] {
   display: none;
}

.cookieNotice__text {
   margin: 0;
}

.cookieNotice__link {
   color: #ffffff;
   text-decoration: underline;
}

.cookieNotice__button {
   flex-shrink: 0;
   min-width: 5.5rem;
   padding: 0.625rem 1.5rem;
   font: inherit;
   font-weight: 700;
   color: #ffffff;
   background-color: #0168cb;
   border: none;
   border-radius: 30px;
   cursor: pointer;
}

.cookieNotice__button:hover {
   background-color: #0156a8;
}

.cookieNotice__button:focus-visible {
   outline: 2px solid #ffffff;
   outline-offset: 2px;
}

/* Телефон: текст сверху, кнопка под ним на всю ширину — так в неё проще попасть. */
@media screen and (max-width: 480px) {
   .cookieNotice {
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
   }
}
