/* ==========================================================
   Camvio Support Modal (centered popup) — Hybrid
   ========================================================== */

body.camvio-modal-open { overflow: hidden; }

.camvio-hidden { display: none !important; }

/* Overlay */
.camvio-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
}

/* Modal */
.camvio-modal{
  position: relative;
  width: min(900px, 96vw);
  max-height: 88vh;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
}

.camvio-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.camvio-modal-title{
  font-size: 16px;
  font-weight: 600;
}

.camvio-modal-body{
  padding: 16px;
  overflow: auto;
}

.camvio-modal-actions{
  display: flex;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Close */
.camvio-modal-close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.92);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Optional iframe area */
.camvio-modal-iframewrap{
  border-top: 1px solid rgba(0,0,0,0.08);
  height: 52vh;
}
.camvio-modal-iframewrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

/* Small helper text */
.camvio-modal-note{
  font-size: 13px;
  opacity: 0.75;
}
.camvio-modal-link a{
  text-decoration: underline;
}

/* Optional ghost button if your theme doesn't have it */
.camvuio-btn-ghost, .camvio-btn-ghost{
  background: transparent;
  border: 1px solid rgba(0,0,0,0.2);
}

/* Mobile tweak */
@media (max-width: 768px){
  .camvio-modal{
    width: 96vw;
  }
  .camvio-modal-iframewrap{
    height: 46vh;
  }
}
