/* assets/popup.css */

.popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-box{
  width: min(720px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  padding: 22px 20px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.popup-close{
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}

.popup-content{
  padding-right: 28px; /* chừa chỗ cho nút X */
}

.popup-content h1,
.popup-content h2,
.popup-content h3{
  margin: 0 0 10px;
}

.popup-content p{
  margin: 0 0 10px;
  line-height: 1.55;
}

.popup-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.popup-actions .btn{
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.popup-actions .btn-primary{
  border-color: rgba(0,0,0,.25);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 480px){
  .popup-box{
    padding: 18px 16px;
    border-radius: 14px;
  }
  .popup-actions{
    justify-content: stretch;
  }
  .popup-actions .btn{
    width: 100%;
  }
}
