/* =========================
   MAWI Booking Modals CSS
   (Updated: centered chooser, unified buttons, close top-right)
========================= */

/* Global: scroll lock for iOS/Android */
body.mawi-scroll-locked { overflow: hidden; }

/* Book button (optional) */
.mawi-book-btn{
  background:#2b7a78;
  color:#fff;
  padding:14px 22px;
  border:none;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* =========================
   Ocean Modal
========================= */
.mawi-modal{
  display:none;
  position:fixed;
  z-index:999999;
  left:0; top:0;
  width:100%; height:100%;
  background:rgba(0,0,0,.6);
}

.mawi-modal__content{
  background:#fff;
  margin:4% auto;
  padding:12px;
  width:92%;
  max-width:980px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  overflow:hidden;
  box-sizing:border-box;
}

.mawi-iframe{
  width:100%;
  height:75vh;
  border:0;
  border-radius:10px;
}

/* Header */
.mawi-modal-header{
  position:relative;
  display:flex;
  justify-content:center;   /* center content */
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid #eee;
  box-sizing:border-box;
}

/* =========================
   Mobile visual centering
========================= */
@media (max-width:600px){

  .mawi-modal-header{
    justify-content:flex-start;
    padding-right:52px; /* reserve space for close button */
  }

  .mawi-brand{
    margin:0 auto;
    transform:translateX(12px); 
    /* shifts slightly right so it appears centered visually */
  }

}

.mawi-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  font-size:17px;
  color:#2b7a78;
}

.mawi-brand img{ height:42px; width:auto; }

.mawi-brand small{
  display:block;
  font-weight:normal;
  font-size:12px;
  color:#777;
}

/* Make close buttons look like icons */
.mawi-modal__close,
.mawi-choice-close{
  background:transparent;
  border:0;
  color:inherit;
  cursor:pointer;
}

.mawi-modal__close{
  position:absolute;
  top:10px;
  right:1px;
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  border-radius:50%;
  transition:all .2s ease;
}

.mawi-modal__close:hover{
  background:#2b7a78;
  color:#fff;
}

@media (max-width:600px){
  .mawi-modal__content{ margin:10% auto; width:95%; }
  .mawi-iframe{ height:78vh; }
  .mawi-brand{ font-size:16px; }
  .mawi-brand img{ height:36px; }
}

/* =========================
   Keep secure form markup in DOM (but off-screen)
   IMPORTANT: do NOT use display:none
========================= */
.mawi-sr-only-wrap{
  position:absolute !important;
  left:-99999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* =========================
   First-time Chooser Modal (Centered - reliable with JS display:block)
========================= */
/* =========================
   First-time Chooser Modal (Centered - bulletproof)
========================= */
.mawi-choice-modal{
  position:fixed;
  z-index:1000000;
  inset:0; /* same as left:0; top:0; right:0; bottom:0 */
  background:rgba(0,0,0,.6);

  /* Center */
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;

  padding:16px;
  box-sizing:border-box;

  /* Hidden by default (do not use display:none) */
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
}

.mawi-choice-modal[aria-hidden="false"]{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.mawi-choice-content{
  position:relative;
  background:#fff;
  padding:22px;
  width:92%;
  max-width:520px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  box-sizing:border-box;

  /* Center text/content */
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;

  /* Extra safety */
  margin:0 auto;
}

/* =========================
   Improved Close Button
========================= */

.mawi-choice-close::before{
  content:"✕";
}

.mawi-choice-close{
  position:absolute;
  top:12px;
  right:12px;

  width:38px;
  height:38px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:22px;
  line-height:1;
  font-weight:600;

  color:#2b7a78;
  background:#f4f7f7;

  border:1px solid #e2ecec;
  border-radius:50%;

  cursor:pointer;

  transition:
    background .2s ease,
    color .2s ease,
    transform .08s ease,
    box-shadow .15s ease;
}

/* Hover */
.mawi-choice-close:hover{
  background:#2b7a78;
  color:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,.18);
}

/* Click feedback */
.mawi-choice-close:active{
  transform:scale(0.92);
  box-shadow:none;
}

/* Keyboard accessibility */
.mawi-choice-close:focus-visible{
  outline:2px solid #2b7a78;
  outline-offset:2px;
}
  
  /* Text */
  .mawi-choice-title{
	  font-size:1.25rem;
	  font-weight:700;
	  margin:0 0 8px;
	  text-transform: uppercase;
	  color: #407074;
  }

.mawi-choice-text{
  color:#555;
  margin:10px 0 10px;
  line-height:1.35;
  max-width:420px;
}

/* Buttons container */
.mawi-choice-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  width:100%;
  margin-top:12px;
}

/* Unified button style */
.mawi-choice-btn{
  padding:8px 8px;
  border-radius:10px;
  border:1px solid #2b7a78;
  background:#ffffff;
  color:#ad7b5c;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:
    background .2s ease,
    color .2s ease,
    transform .08s ease,
    box-shadow .15s ease;
  min-width:180px;
  text-align:center;
}

.mawi-choice-btn:hover{
  background:#2b7a78;
  color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.mawi-choice-btn:active{
  transform:scale(0.97);
  box-shadow:none;
}

.mawi-choice-btn:focus-visible{
  outline:2px solid #2b7a78;
  outline-offset:2px;
}

/* Small note */
.mawi-choice-content small{
  margin-top:14px;
  display:block;
  color:#777;
}

/* Mobile full-width buttons */
@media (max-width:420px){
  .mawi-choice-btn{ width:100%; }
}

/* Optional animation */
@keyframes mawiFadeIn{
  from{ opacity:0; transform:translateY(12px); }
  to{ opacity:1; transform:translateY(0); }
}