#tfusa-rental-dialog:not([open]) { display:none; }
#tfusa-rental-launch {
    position:fixed; bottom:18px; right:18px; z-index:100005; padding:12px 18px;
    background:#103658; color:#fff; font:700 15px/1.3 system-ui,sans-serif;
    border:1px solid #fff; border-radius:8px; box-shadow:0 2px 8px #0003; text-decoration:none;
}
.tfusa-rental-ready #livesite_engage_button,
.tfusa-rental-ready #livesite_active_engage { display:none !important; }
#tfusa-rental-dialog[open] {
    position:fixed; inset:0; box-sizing:border-box; margin:auto; padding:0;
    width:min(640px,calc(100% - 24px)); height:min(780px,calc(100% - 24px)); height:min(780px,calc(100dvh - 24px));
    max-width:100%; max-height:100%; border:1px solid #9aa6b0; border-radius:12px;
    display:flex; flex-direction:column; overflow:hidden; color:#172b3b; background:#fff;
    font:16px/1.4 system-ui,sans-serif;
}
#tfusa-rental-dialog::backdrop { background:rgba(12,27,40,.64); }
#tfusa-rental-dialog .tfusa-rental-head, #tfusa-rental-dialog .tfusa-rental-help {
    flex:none; padding:10px 16px; display:flex; align-items:center; gap:8px 16px;
}
#tfusa-rental-dialog .tfusa-rental-head { justify-content:space-between; background:#103658; color:white; }
#tfusa-rental-dialog .tfusa-rental-head strong { font:700 19px/1.25 system-ui,sans-serif; color:white; }
#tfusa-rental-dialog .tfusa-rental-head form { margin:0; }
#tfusa-rental-dialog .tfusa-rental-head button { padding:6px 12px; background:white; color:#103658; border-radius:4px; border:0; cursor:pointer; font-weight:700; }
#tfusa-rental-dialog .tfusa-rental-help { flex-wrap:wrap; border-bottom:1px solid #cdd6de; }
#tfusa-rental-dialog .tfusa-rental-help a { color:#103658; text-decoration:underline; font:600 14px/1.4 system-ui,sans-serif; }
#tfusa-rental-dialog .tfusa-rental-fields { flex:1; min-height:0; }
#tfusa-rental-dialog iframe { display:block; width:100%; height:100%; padding:0; margin:0; border:0; }
@media (max-width:767px) {
    #tfusa-rental-launch { bottom:calc(10px + env(safe-area-inset-bottom)); right:10px; }
    body:has(#tfusa-mobile-contact):not(.page-id-883) #tfusa-rental-launch { display:none; }
}

.tfusa-rental-ready #tfusa-contact-strip ~ #tfusa-contact-strip,
.tfusa-rental-ready #tfusa-mobile-contact ~ #tfusa-mobile-contact { display:none !important; }

/* The custom homepage hides every body child outside its own layout. */
body.tfusa-approved-homepage > #tfusa-rental-dialog[open] { display:flex !important; }
body.tfusa-approved-homepage > #tfusa-rental-launch { display:inline-flex !important; }
@media (max-width:767px) {
    body.tfusa-approved-homepage:has(#tfusa-mobile-contact) > #tfusa-rental-launch { display:none !important; }
}
