/* public/assets/kinowidget-modal.css
   Единый светлый воздушный стиль для модалки киножета
   Без изменения структуры и поведения
*/

/* блокируем прокрутку страницы, когда модалка открыта */
html.kw-modal-open,
html.kw-modal-open body{
  overflow: hidden;
}

/* модалка */
.kw-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.kw-modal.is-open{
  display: block;
}

.kw-modal__backdrop{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,.34), rgba(15,23,42,.48)),
    rgba(15,23,42,.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.kw-modal__dialog{
  position: absolute;
  inset: 5% 5%;
  background: rgba(255,255,255,.86);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(181,194,222,.24);
  box-shadow:
    0 18px 42px rgba(15,23,42,.16),
    inset 0 1px 0 rgba(255,255,255,.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.kw-modal__close{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(181,194,222,.22);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  background: rgba(255,255,255,.84);
  color: rgba(15,23,42,.88);
  box-shadow:
    0 8px 18px rgba(15,23,42,.10),
    inset 0 1px 0 rgba(255,255,255,.56);
  transition:
    transform .08s ease,
    box-shadow .14s ease,
    background .14s ease,
    border-color .14s ease,
    color .14s ease,
    filter .14s ease;
}

.kw-modal__close:hover{
  background: rgba(255,255,255,.94);
  border-color: rgba(167,188,221,.30);
  box-shadow:
    0 10px 22px rgba(15,23,42,.12),
    inset 0 1px 0 rgba(255,255,255,.60);
}

.kw-modal__close:active{
  transform: translateY(1px);
}

.kw-modal__frame{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* мобилка */
@media (max-width: 768px){
  .kw-modal__dialog{
    inset: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: rgba(255,255,255,.94);
  }

  .kw-modal__close{
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}
