/* ============================================================
   Bid2Stay Release 12.8.3.9
   Confirmed Stay and Check-in Pass UI/UX Cleanup
   ============================================================ */

body[data-confirmed-stay-release="12.8.3.9"] .main{
  overflow-x:hidden;
}

.b2s-stay-page{
  width:100%;
  max-width:100%;
}

.b2s-stay-head{
  margin-bottom:22px;
  align-items:flex-start;
  gap:24px;
}

.b2s-stay-head > div{
  min-width:0;
}

.b2s-stay-head h1{
  margin:4px 0 8px;
  overflow-wrap:anywhere;
}

.b2s-stay-head p{
  max-width:760px;
}

.b2s-stay-head-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  flex:0 0 auto;
}

.b2s-stay-head-actions a{
  min-height:44px;
  padding:10px 16px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d6dde7;
  background:#fff;
  color:#253044;
  font-size:12px;
  font-weight:850;
  text-decoration:none;
}

.b2s-stay-status-row{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
}

.b2s-stay-badge{
  max-width:100%;
  padding:7px 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#effbf4;
  color:#166534;
  font-size:11px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:normal;
}

.b2s-stay-badge::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#22a06b;
  flex:0 0 auto;
}

.b2s-stay-reference{
  color:#667085;
  font-size:12px;
  font-weight:750;
  overflow-wrap:anywhere;
}

/* Main two-column layout */

.b2s-stay-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  gap:20px;
  align-items:start;
}

.b2s-stay-card{
  min-width:0;
  border:1px solid #dce3eb;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 34px rgba(14,30,52,.06);
}

.b2s-stay-card-head{
  padding:22px 24px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.b2s-stay-card-head > div{
  min-width:0;
}

.b2s-stay-card-head h2{
  margin:0;
  color:#151b26;
  font-size:22px;
  line-height:1.2;
}

.b2s-stay-card-head p{
  margin:7px 0 0;
  color:#758193;
  font-size:13px;
  line-height:1.5;
}

/* Property and stay details */

.b2s-location-panel{
  margin:18px 24px 0;
  min-height:150px;
  padding:22px;
  border:1px solid #d7e0ea;
  border-radius:13px;
  display:flex;
  align-items:center;
  gap:18px;
  background:
    radial-gradient(circle at 85% 10%,rgba(245,173,22,.16),transparent 32%),
    linear-gradient(135deg,#eef3f8,#dfe7f0);
}

.b2s-location-icon{
  width:58px;
  height:58px;
  border-radius:16px;
  display:grid;
  place-items:center;
  flex:0 0 58px;
  background:#071421;
  color:#f5ad16;
  font-size:25px;
  font-weight:950;
}

.b2s-location-copy{
  min-width:0;
}

.b2s-location-copy span{
  display:block;
  color:#6f7a89;
  font-size:10px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.b2s-location-copy strong{
  display:block;
  margin-top:7px;
  color:#162033;
  font-size:20px;
  line-height:1.25;
  overflow-wrap:anywhere;
}

.b2s-location-copy p{
  margin:7px 0 0;
  color:#667085;
  font-size:13px;
  line-height:1.5;
}

.b2s-stay-details{
  padding:20px 24px 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.b2s-stay-detail{
  min-width:0;
  padding:13px 14px;
  border:1px solid #e2e7ee;
  border-radius:10px;
  background:#fafbfc;
}

.b2s-stay-detail span{
  display:block;
  color:#7b8797;
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.b2s-stay-detail strong{
  display:block;
  margin-top:5px;
  color:#1f2937;
  font-size:13px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.b2s-stay-financials{
  padding:20px 24px 24px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.b2s-stay-stat{
  min-width:0;
  min-height:104px;
  padding:15px;
  border:1px solid #dce3eb;
  border-radius:11px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff;
}

.b2s-stay-stat span{
  display:block;
  color:#7b8797;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.35;
  text-transform:uppercase;
}

.b2s-stay-stat strong{
  display:block;
  margin-top:8px;
  color:#151b26;
  font-size:clamp(19px,2.1vw,27px);
  line-height:1.05;
  overflow-wrap:anywhere;
}

.b2s-stay-stat.status strong{
  font-size:15px;
  line-height:1.25;
  color:#166534;
}

/* Check-in pass card */

.b2s-pass-card{
  overflow:hidden;
}

.b2s-pass-card .b2s-stay-card-head{
  padding-bottom:18px;
  border-bottom:1px solid #e4e9ef;
}

.b2s-pass-security{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  background:#fff7df;
  color:#7a5100;
  font-size:9px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

#b2sCheckinPassContent{
  min-height:480px;
  padding:22px 24px 24px;
}

.b2s-pass-loading{
  min-height:350px;
  border:1px dashed #cbd5e1;
  border-radius:13px;
  display:grid;
  place-items:center;
  padding:28px;
  background:#fbfcfe;
  text-align:center;
}

.b2s-pass-loader-icon{
  width:52px;
  height:52px;
  margin:0 auto 15px;
  border:3px solid #e5e7eb;
  border-top-color:#f5ad16;
  border-radius:50%;
  animation:b2sStaySpin .9s linear infinite;
}

@keyframes b2sStaySpin{
  to{transform:rotate(360deg)}
}

.b2s-pass-loading h3{
  margin:0;
  color:#151b26;
  font-size:20px;
}

.b2s-pass-loading p{
  max-width:340px;
  margin:8px auto 0;
  color:#7b8797;
  font-size:13px;
  line-height:1.55;
}

.b2s-pass-ready{
  display:grid;
  gap:18px;
}

.b2s-pass-qr-frame{
  width:min(260px,100%);
  min-height:250px;
  margin:0 auto;
  padding:13px;
  border:1px solid #dce3eb;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#fff;
  box-shadow:0 12px 28px rgba(14,30,52,.07);
}

.b2s-pass-qr-frame svg{
  width:100%!important;
  height:auto!important;
  max-width:226px;
  background:#fff;
}

.b2s-pass-pin-box{
  padding:16px;
  border:1px solid rgba(245,173,22,.42);
  border-radius:12px;
  background:#fff9e9;
  text-align:center;
}

.b2s-pass-pin-box span{
  display:block;
  color:#7a5a10;
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.b2s-pass-pin{
  margin-top:7px;
  color:#111827;
  font-size:clamp(28px,4vw,38px);
  font-weight:950;
  line-height:1;
  letter-spacing:.18em;
  overflow-wrap:anywhere;
}

.b2s-pass-copy{
  min-height:40px;
  margin-top:12px;
  padding:8px 14px;
  border:1px solid #d9b35e;
  border-radius:8px;
  background:#fff;
  color:#6d4a00;
  font-size:11px;
  font-weight:900;
}

.b2s-pass-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.b2s-pass-meta-item{
  min-width:0;
  padding:12px 13px;
  border:1px solid #e1e7ee;
  border-radius:9px;
  background:#f8fafc;
}

.b2s-pass-meta-item span{
  display:block;
  color:#7b8797;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.b2s-pass-meta-item strong{
  display:block;
  margin-top:5px;
  color:#253044;
  font-size:12px;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.b2s-pass-warning{
  margin:0;
  padding:12px 13px;
  border-radius:9px;
  background:#f2f4f7;
  color:#5d6979;
  font-size:11px;
  line-height:1.55;
}

.b2s-pass-empty{
  min-height:350px;
  padding:28px;
  border:1px dashed #cbd5e1;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fbfcfe;
  text-align:center;
}

.b2s-pass-empty-icon{
  width:50px;
  height:50px;
  margin:0 auto 14px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#eef2f6;
  color:#667085;
  font-size:23px;
  font-weight:950;
}

.b2s-pass-empty h3{
  margin:0;
  color:#151b26;
  font-size:20px;
}

.b2s-pass-empty p{
  max-width:360px;
  margin:8px auto 0;
  color:#778395;
  font-size:13px;
  line-height:1.6;
}

/* Check-in guidance */

.b2s-checkin-guide{
  margin-top:20px;
  padding:22px 24px;
  border:1px solid #dce3eb;
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 28px rgba(14,30,52,.04);
}

.b2s-checkin-guide h2{
  margin:0;
  color:#151b26;
  font-size:21px;
}

.b2s-checkin-steps{
  margin-top:17px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
}

.b2s-checkin-step{
  min-width:0;
  padding:15px;
  border-radius:10px;
  background:#f8fafc;
}

.b2s-checkin-step b{
  width:28px;
  height:28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#071421;
  color:#f5ad16;
  font-size:11px;
}

.b2s-checkin-step strong{
  display:block;
  margin-top:10px;
  color:#253044;
  font-size:13px;
}

.b2s-checkin-step p{
  margin:5px 0 0;
  color:#758193;
  font-size:11px;
  line-height:1.5;
}

/* Copy feedback */

.b2s-copy-success{
  border-color:#78c69a!important;
  background:#effbf4!important;
  color:#166534!important;
}

/* Responsive */

@media(max-width:1080px){
  .b2s-stay-grid{
    grid-template-columns:1fr;
  }

  #b2sCheckinPassContent{
    min-height:0;
  }

  .b2s-pass-loading,
  .b2s-pass-empty{
    min-height:280px;
  }
}

@media(max-width:720px){
  .b2s-stay-head{
    align-items:stretch;
    flex-direction:column;
  }

  .b2s-stay-head-actions a{
    width:100%;
  }

  .b2s-stay-card-head{
    padding:19px 17px 0;
    align-items:flex-start;
    flex-direction:column;
  }

  .b2s-pass-card .b2s-stay-card-head{
    padding-bottom:16px;
  }

  .b2s-location-panel{
    margin:16px 17px 0;
    padding:17px;
    align-items:flex-start;
  }

  .b2s-location-icon{
    width:45px;
    height:45px;
    flex-basis:45px;
    font-size:20px;
  }

  .b2s-location-copy strong{
    font-size:17px;
  }

  .b2s-stay-details{
    padding:17px 17px 0;
    grid-template-columns:1fr;
  }

  .b2s-stay-financials{
    padding:17px;
    grid-template-columns:1fr;
  }

  .b2s-stay-stat{
    min-height:82px;
  }

  #b2sCheckinPassContent{
    padding:18px 17px 19px;
  }

  .b2s-pass-meta{
    grid-template-columns:1fr;
  }

  .b2s-checkin-guide{
    padding:20px 17px;
  }

  .b2s-checkin-steps{
    grid-template-columns:1fr;
  }
}
