/* AffittoFacile 1.3.0 — additive pre-check-in and tourist-tax UI. */
.afPreCheckinCard{margin-top:14px;padding:15px;border:1px solid #dceaff;border-radius:20px;background:#f8fbff}
.afPreCheckinHead,.afPreCheckinProgress,.afGuestCheckinRow{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.afPreCheckinHead>div,.afGuestCheckinRow>div{min-width:0;flex:1}
.afPreCheckinHead strong,.afPreCheckinHead span,.afGuestCheckinRow strong,.afGuestCheckinRow span{display:block;overflow-wrap:anywhere}
.afPreCheckinHead span,.afPreCheckinProgress,.afPreCheckinHint{margin-top:4px;color:#66778e;font-size:13px;line-height:1.45}
.afPreCheckinBadge{flex:0 0 auto;display:inline-flex!important;align-items:center;min-height:27px;padding:5px 9px;border-radius:999px;background:#eef5ff;color:#0a63e8;font-size:12px!important;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.afPreCheckinBadge.warning{background:#fff3dd;color:#9a5c00}.afPreCheckinBadge.good{background:#e9fbf2;color:#08734a}.afPreCheckinBadge.neutral{background:#eef2f6;color:#52657c}
.afPreCheckinActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.afPreCheckinActions .btn{width:100%;min-width:0}
.afPreCheckinActions .afWhatsAppBtn{border:1px solid #128c7e!important;background:#25d366!important;color:#fff!important;box-shadow:0 8px 18px rgba(37,211,102,.2)!important}
.afPreCheckinActions .afWhatsAppBtn:active{background:#128c7e!important}
.afPreCheckinActions svg{width:18px;height:18px;fill:currentColor;vertical-align:-3px;margin-right:6px}
.afPreCheckinTax{margin-top:12px;padding-top:12px;border-top:1px solid #dceaff}
.afPreCheckinTax strong,.afPreCheckinTax span{display:block}.afPreCheckinTax span{margin-top:3px;color:#66778e;font-size:13px}
.afGuestCheckinList{display:grid;gap:9px;margin-top:12px}
.afGuestCheckinRow{width:100%;padding:13px;border:1px solid #e0eaf6;border-radius:17px;background:#fff;color:#0b2342;text-align:left}
.afGuestCheckinRow span{margin-top:3px;color:#69798d;font-size:13px;line-height:1.4}
.afPreCheckinEmpty{padding:20px;text-align:center;border:1px dashed #cfdef0;border-radius:18px;color:#60748c;background:#f8fbff}
.afPreCheckinModalHead{padding-right:46px}.afPreCheckinModalHead h2{margin:0}.afPreCheckinModalHead p{margin:5px 0 0;color:#66778e;line-height:1.45}
.afPreCheckinGuestEditor{margin-top:14px;padding:14px;border:1px solid #dfebf8;border-radius:20px;background:#f8fbff}
.afPreCheckinGuestEditor h3{margin:0 0 12px!important}
.afPreCheckinGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
.afPreCheckinEditorActions{position:sticky;bottom:-20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px -4px -4px;padding:10px 4px calc(4px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(255,255,255,0),#fff 20%)}
.afPreCheckinNotice{margin-top:12px;padding:11px 12px;border-radius:15px;background:#fff8e8;color:#885a08;font-size:12px;line-height:1.45}
.afConfigToggle{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #dceaff;border-radius:17px;background:#f8fbff;margin-top:10px}
.afConfigToggle input{flex:0 0 20px;margin-top:1px}.afConfigToggle div{min-width:0}.afConfigToggle strong,.afConfigToggle span{display:block}.afConfigToggle span{margin-top:3px;color:#69798d;font-size:12px;line-height:1.4}
.afTouristTaxFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.afTouristTaxActivity{display:block!important;padding:11px 0!important}
.afTouristTaxActivity .afTouristTaxOpen{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 24px;gap:10px;align-items:center;padding:0;border:0;background:transparent;color:inherit;text-align:left}
.afTouristTaxCollect{width:calc(100% - 52px);min-height:40px;margin:8px 0 0 52px;padding:8px 12px;border:1px solid #bfe8d6;border-radius:13px;background:#ecfdf3;color:#08734a;font-weight:700}
@media(max-width:420px){
  .afPreCheckinActions,.afPreCheckinEditorActions{grid-template-columns:1fr}
  .afPreCheckinGrid,.afTouristTaxFields{grid-template-columns:1fr}
  .afPreCheckinHead{flex-direction:column;gap:7px}.afPreCheckinBadge{align-self:flex-start}
  .afTouristTaxActivity .afTouristTaxOpen{grid-template-columns:39px minmax(0,1fr) 19px;gap:8px}.afTouristTaxCollect{width:calc(100% - 47px);margin-left:47px}
}
