/* Keep the live image and player controls in the same slot while a feed connects. */
.camera-stage {position:relative;isolation:isolate;overflow:hidden;}
.camera-stage video {position:absolute;inset:0;min-width:0;min-height:0;max-width:100%;max-height:100%;}
.camera-stage [hidden] {display:none;}
.camera-stage button {position:relative;z-index:1;}
.warehouse-layout {align-items:center;}

#branches .branch-card {display:grid;gap:18px;padding:clamp(20px,2.4vw,34px);align-content:start;}
#branches .branch-card>div {display:grid;align-content:start;justify-items:start;gap:6px;min-width:0;}
#branches .branch-card h3,#branches .branch-card p {margin:0;}
#branches .branch-location>span {color:var(--muted);font-size:.83rem;}
#branches .branch-card .branch-phone {font-size:1.1rem;font-weight:700;color:var(--ink);min-height:32px;padding:0;}
#branches .branch-card .branch-actions {display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;}
.branch-card .branch-actions a,.branch-card .branch-actions button {min-height:44px;font-size:.94rem;font-weight:600;}
#branches .branch-actions button {padding:9px 14px;border:1px solid var(--line);border-radius:var(--r-small);background:var(--surface);}
.department-grid>a {min-width:0;padding:clamp(16px,1.8vw,26px);gap:8px;justify-content:center;}
.department-grid b {font-size:1.02rem;}
.department-grid small,.department-grid span {overflow-wrap:anywhere;}
.department-grid span {font-size:.74rem;line-height:1.45;}
@media(min-width:850px){
  #branches .branch-card:only-child {grid-template-columns:1.15fr 1fr auto;align-items:center;gap:clamp(18px,3vw,46px);}
  #branches .branch-card:only-child .branch-actions {justify-content:flex-end;}
}
@media(max-width:420px){.department-grid {grid-template-columns:1fr;}}
body[data-page="services"] .section-directory {grid-template-columns:repeat(4,minmax(0,1fr));}
body[data-page="services"] .section-directory a,.related-services .section-directory a {padding:clamp(18px,2vw,30px);align-content:center;}
.related-services {margin:clamp(28px,4vw,52px) 0;}
.related-services h2 {font-size:clamp(1.4rem,2.3vw,2.1rem);margin:0 0 20px;}
.service-brief {max-width:none;display:grid;grid-template-columns:minmax(170px,1fr) minmax(0,2.5fr);align-items:start;gap:24px;}
.service-brief h2,.service-brief p {margin:0;}
.service-brief p {max-width:72ch;}
@media(max-width:970px){body[data-page="services"] .section-directory {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){
  .service-brief {grid-template-columns:1fr;gap:12px;}
  body[data-page="services"] .section-directory {grid-template-columns:1fr;}
}

#dialog:has(.compact-inquiry) {box-sizing:border-box;width:min(100% - 32px,32rem);height:fit-content;min-height:0;max-height:calc(100dvh - 32px);margin:auto;padding:0;}
#dialog:has(.compact-inquiry) .dialog-top {position:relative;justify-content:center;padding:22px 53px 4px;border-bottom:0;}
#dialog:has(.compact-inquiry) .dialog-top h2 {text-align:center;font-size:clamp(1.4rem,2.2vw,1.95rem);line-height:1.16;}
#dialog:has(.compact-inquiry) .dialog-top button {position:absolute;top:8px;right:6px;height:44px;width:44px;padding:0;border:0;background:transparent;}
#dialog:has(.compact-inquiry) #dialog-body {padding:12px clamp(18px,3vw,32px) 26px;}
#dialog .compact-inquiry {width:100%;max-width:none;margin:0;display:grid;gap:15px;}
#dialog .compact-inquiry>p {margin:0;}
#dialog .compact-inquiry>p:first-child {text-align:center;color:var(--muted);font-size:1rem;line-height:1.45;}
#dialog .compact-inquiry>label:not(.consent-row) {display:grid;gap:6px;font-size:.94rem;}
#dialog .compact-inquiry .checkout-details {margin:0;}
#dialog .compact-inquiry .consent-row {align-items:center;line-height:1.45;font-size:.91rem;margin:0;gap:10px;}
#dialog .compact-inquiry .consent-row input {height:20px;}
#dialog .compact-inquiry>button {width:100%;min-height:48px;margin:0;}
#dialog .compact-inquiry>.error:empty {display:none;}
@media(max-width:420px){#dialog:has(.compact-inquiry) {width:calc(100% - 24px);}}

