.photo-upload-grid,.site-photo-grid,.feedback-local-photos,.material-local-photos,.rect-local-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.photo-upload-item{position:relative;min-width:0;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--pale,#eef2e9)}
.photo-upload-item img{display:block;width:100%;height:100%;object-fit:cover}
.photo-upload-item>button:not(.photo-upload-preview),.photo-upload-document>button{position:absolute;right:0;top:0;width:44px;height:44px;border:0;border-radius:0 0 0 12px;display:grid;place-items:center;padding:13px;background:#19384ed9;color:#fff;cursor:pointer}
.photo-upload-item>button:not(.photo-upload-preview) .icon,.photo-upload-document>button .icon{width:18px;height:18px}
.photo-upload-item>.photo-upload-preview{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in}
.photo-upload-add{position:relative;display:flex;min-width:0;aspect-ratio:1;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:6px;border:1px dashed #8b9f8c;border-radius:10px;background:var(--pale,#f7faf5);color:var(--brand,#315d47);cursor:pointer;text-align:center}
.photo-upload-add .icon{width:25px;height:25px;stroke-width:1.6}
.photo-upload-add strong{font-size:13px;font-weight:600;line-height:1.4}
.photo-upload-add span{font-size:11px;line-height:1.5;color:#536750}
.photo-upload-add:focus-visible,.photo-upload-secondary:focus-visible,.photo-upload-item button:focus-visible,.photo-upload-document button:focus-visible{outline:2px solid var(--brand,#315d47);outline-offset:-3px}
.photo-upload-secondary{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px 10px;border:0;background:transparent;color:var(--brand,#315d47);font:inherit;font-size:13px;cursor:pointer}
.site-upload-actions,.feedback-upload-actions,.material-upload-actions,.rect-upload-actions{display:flex;align-items:center;justify-content:flex-start;gap:5px;margin:7px 0 0}
.site-page .site-upload-actions label.photo-upload-secondary,.site-upload-actions label.photo-upload-secondary,.feedback-upload-actions label.photo-upload-secondary,.material-upload-actions label.photo-upload-secondary,.rect-upload-actions label.photo-upload-secondary{min-height:44px;padding:8px 10px 8px 0;border:0;border-radius:0;background:transparent;display:inline-flex;flex-direction:row;gap:5px;box-shadow:none;color:var(--brand,#315d47);font-size:13px}
.site-upload-actions .photo-upload-secondary .icon,.feedback-upload-actions .photo-upload-secondary .icon,.material-upload-actions .photo-upload-secondary .icon,.rect-upload-actions .photo-upload-secondary .icon{width:17px;height:17px;margin:0}
.photo-upload-field{margin:22px 0}
.photo-upload-field .photo-upload-grid{margin:10px 0}
.photo-upload-field .photo-upload-input{position:absolute;width:1px!important;height:1px!important;padding:0!important;clip-path:inset(50%);overflow:hidden}
.photo-upload-field:has(.photo-upload-input:focus-visible) .photo-upload-add{outline:2px solid var(--brand,#315d47);outline-offset:2px}
.photo-upload-field .photo-upload-error{color:#9e3f35;font-size:13px;line-height:1.6;margin:6px 0 0}
.photo-upload-error:empty{display:none}
.photo-upload-field .photo-upload-count{margin:6px 0;font-size:12px;color:#536750}
.photo-upload-count:empty{display:none}
.photo-upload-document{grid-column:1/-1;position:relative;display:flex;align-items:center;gap:9px;min-height:54px;padding:10px 48px 10px 12px;border:1px solid #dce2da;border-radius:10px;background:#fff;font-size:13px;overflow-wrap:anywhere}
.photo-upload-document>.icon{flex:none}
.photo-upload-lightbox{max-width:min(94vw,900px);max-height:90dvh;padding:44px 12px 12px;border:0;border-radius:12px;background:#17251f;color:#fff}
.photo-upload-lightbox::backdrop{background:#101c18d9}
.photo-upload-lightbox>img{display:block;max-width:100%;max-height:calc(90dvh - 60px);object-fit:contain;margin:auto}
.photo-upload-lightbox>button{position:absolute;right:0;top:0;display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:inherit;cursor:pointer}
.service-house-picker{min-width:0;margin:22px 0 0;padding:0;border:0}
.service-house-picker legend{margin-bottom:12px;font-size:15px;font-weight:600}
.service-house-picker legend>small{margin-left:8px;font-size:12px;font-weight:400;color:#825741}
.service-house-options{display:grid;gap:10px}
.service-house-option{position:relative;display:block;cursor:pointer}
.service-house-option>input{position:absolute;width:1px;height:1px;opacity:0}
.service-house-option>span{display:flex;align-items:center;gap:12px;padding:15px 13px;min-height:74px;border:1px solid #d7dfd2;border-radius:12px;background:#fff}
.service-house-option>span>.icon{flex:none;color:var(--brand,#315d47);width:22px;height:22px}
.service-house-option>span>span{flex:1;min-width:0}
.service-house-option strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.service-house-option small{display:block;margin-top:5px;font-size:12px;line-height:1.6;color:#5b6656;overflow-wrap:anywhere}
.service-house-option i{display:grid;place-items:center;flex:none;width:22px;height:22px;border:1px solid #a1ac9b;border-radius:50%;color:transparent}
.service-house-option i .icon{width:16px;height:16px}
.service-house-option input:checked+span{border-color:var(--brand,#315d47);background:#f0f5ed}
.service-house-option input:checked+span i{border-color:var(--brand,#315d47);background:var(--brand,#315d47);color:#fff}
.service-house-option input:focus-visible+span{outline:2px solid var(--brand,#315d47);outline-offset:3px}
.owner-profile-avatar-edit .photo-upload-add{width:104px}
.owner-profile-avatar-edit .photo-upload-add span{display:none}
body.business .photo-upload-add{border-color:#91a8b8;background:#f2f6f8;color:#24495e}
body.business .photo-upload-add span{color:#536b7b}
@media(max-width:360px){.photo-upload-add strong{font-size:12px}.photo-upload-add span{font-size:10px}}
