/* PC_SUB DEDICATED FILE */
/* Split from former 30_components.css for maintenance safety */

/* =========================================================
   Popup
   ========================================================= */

.popup-overlay{
  position: fixed;
  inset: 0;
  z-index: var(--z-popup);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
}

.popup-overlay.active{
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.popup-wrap{
  width: min(720px, calc(100vw - 96px), calc((100vh - 140px) * 2.142857));
  max-height: calc(100vh - 96px);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  padding: 0;
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform .35s cubic-bezier(.22,.61,.36,1),
    opacity .25s ease;
}

.popup-overlay.active .popup-wrap{
  transform: translateY(0);
  opacity: 1;
}

.popup-images{
  display: flex;
  width: 100%;
  overflow: hidden;
}

.popup-images > img,
.popup-images > a,
.popup-images > button{
  flex: 1 1 0;
  min-width: 0;
}

.popup-image-btn{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.popup-link{
  display:block;
  width:100%;
  padding:0;
  border:0;
  margin:0;
  background:transparent;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}

.popup-link img{
  display:block;
  width:100%;
}

.popup-image-btn img,
.popup-images img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.popup-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 18px;
  background: #3a3a3a;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.popup-check{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #fff;
}

.popup-check input{
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.popup-close{
  background: none;
  border: none;
  padding: 2px 8px;
  line-height: 1;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.popup-close:hover{
  opacity: .75;
}
