.select-search{position:relative;min-width:0;margin:.2rem 0}.select-search>input{width:100%;min-height:36px!important;padding:.45rem .65rem!important;font-size:.9rem!important}.select-search-results{position:absolute;z-index:50;top:42px;left:0;right:0;max-height:240px;overflow:auto;background:#fff;border:1px solid #c8d3e7;border-radius:10px;box-shadow:0 10px 30px #19355922}.select-search-results button{display:block;width:100%;border:0;background:#fff;color:#172a43;text-align:left;padding:.7rem;white-space:normal}.select-search-results button:hover,.select-search-results button:focus{background:#eaf1ff}.select-search-results p{padding:.5rem}.required-star{color:#bd1531;font-weight:800}.contribution-dialog{max-width:500px;width:calc(100% - 28px);border:0;border-radius:18px;padding:1.4rem}.contribution-dialog label{display:grid;gap:.5rem;margin:1rem 0}.contribution-dialog .checkbox{display:flex;align-items:flex-start;line-height:1.5}.contribution-dialog::backdrop{background:#12234188}.table-pagination{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin:1rem 0}.table-pagination [aria-current=page],.market-pages [aria-current=page]{background:#365de0;color:white}.form-wizard .wizard-actions [hidden]{display:none!important}.header-create{position:relative}.header-create>summary{list-style:none;cursor:pointer;border-radius:10px;background:#e9eeff;color:#344fbd;padding:.5rem .65rem;font-weight:700}.header-create>div{position:absolute;right:0;top:100%;background:#fff;border:1px solid #ddd;border-radius:12px;min-width:190px;z-index:60;box-shadow:0 10px 25px #12234122;padding:.5rem}.header-create a{display:block;padding:.6rem}.profile-back{display:inline-flex;margin-bottom:.6rem;font-size:.9rem}.upload-preview-order{display:flex;gap:.3rem;justify-content:center;flex-wrap:wrap}.upload-preview-order button{padding:.25rem .5rem;border:1px solid #d3d9e6;background:white;border-radius:6px}.upload-preview-number{position:absolute;top:.35rem;left:.35rem;background:#3159cb;color:white;border-radius:99px;padding:.2rem .5rem}.upload-preview-grid figure{position:relative}@media(max-width:600px){.market-table-wrap{max-width:100%;overflow-x:auto}.market-table-wrap table{min-width:520px}.header-create>summary{font-size:.8rem;padding:.4rem}.header-actions{gap:.35rem!important}.market-pages{flex-wrap:wrap}}

.barcode-camera{display:block;max-width:100%;max-height:300px;margin:1rem auto}.listing-search{display:flex;align-items:end;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.listing-search label{flex:1;min-width:160px}.listing-gallery>label,.candidate-image-editor>label{display:grid;gap:.35rem}.service-shield-icon{width:1.6em;height:1.6em;object-fit:contain;vertical-align:middle}

.checkout-layout{gap:14px}.checkout-review,.checkout-form{padding:16px!important}.checkout-order-line,.checkout-delivery-line{padding:8px 0}.checkout-form{gap:.65rem!important}.checkout-form textarea{min-height:56px!important;height:56px}.checkout-form .payment-methods{margin:.5rem 0;gap:.4rem}.checkout-form .payment-methods label{padding:.6rem}.checkout-form .market-form-grid{gap:.55rem}.checkout-form .button.full{position:sticky;bottom:75px;z-index:4}.agent-preview .listing-gallery img{max-width:160px;max-height:120px;object-fit:cover}.agent-draft-form fieldset[hidden]{display:none!important}.agent-preview .listing-specs dd{overflow-wrap:anywhere}@media(max-width:600px){.checkout-form .market-form-grid{grid-template-columns:1fr 1fr}.checkout-review h2{font-size:1.2rem;margin:.2rem 0}.checkout-layout{gap:10px}.checkout-notes{font-size:.9rem}}

.agent-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.agent-directory-grid h2,.agent-directory-grid p{overflow-wrap:anywhere}

.commission-snapshot{white-space:pre-wrap;max-width:600px;overflow-wrap:anywhere}

.checkout-items-details>summary{cursor:pointer;font-weight:700;padding:.5rem 0}.checkout-review{align-self:start}.checkout-items-details[open]{max-height:48vh;overflow:auto}.checkout-form>h2{margin:.2rem 0 .6rem}.checkout-form .payment-methods small{font-size:.75rem}.checkout-form .select-search{margin:0}.checkout-form .select-search>input{min-height:30px!important}.checkout-form .payment-methods{display:flex;flex-wrap:wrap}.checkout-form .payment-methods>label{flex:1 1 130px;min-width:0}@media(min-width:900px){.checkout-layout{grid-template-columns:minmax(240px,.8fr) minmax(360px,1.2fr)}}@media(max-width:600px){.checkout-layout{grid-template-columns:1fr}.checkout-review{padding:10px 14px!important}.checkout-review .eyebrow{display:none}.checkout-review .cart-total{margin:.3rem 0;padding:.35rem 0}.checkout-form .payment-methods>label{flex:1 1 110px}.checkout-form>.button.full{position:sticky;bottom:72px;box-shadow:0 4px 18px #13244935}.checkout-form>label{margin:0}}

/* Keep checkout submission after all fields so it cannot cover delivery inputs. */
.checkout-form > .button.full { position: static; bottom: auto; }

@media(max-width:760px){
  body>.mobile-floating-create{position:fixed;left:12px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:95;max-width:calc(100vw - 24px)}
  body>.mobile-floating-create>summary{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 17px;border:1px solid #ffffff88;border-radius:999px;background:linear-gradient(135deg,#445cda,#8d36b4);color:#fff;font-size:14px;line-height:1.2;box-shadow:0 6px 22px #40368840;white-space:nowrap}
  body>.mobile-floating-create>summary::-webkit-details-marker{display:none}
  body>.mobile-floating-create>div{left:0;right:auto;top:auto;bottom:calc(100% + 8px);min-width:210px;max-width:calc(100vw - 24px);max-height: min(55dvh,340px);overflow-y:auto}
  body>.mobile-floating-create a{min-height:44px;display:flex;align-items:center;white-space:normal}
  body.site-nav-open>.mobile-floating-create,body:has(dialog[open])>.mobile-floating-create,body:has(.pwa-install:not([hidden]))>.mobile-floating-create,body:has(input:focus,textarea:focus,select:focus)>.mobile-floating-create{visibility:hidden;pointer-events:none}
}

.search-kind-tabs [data-search-kind-button="service"]{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}.search-kind-tabs .service-shield-icon{width:18px;height:18px;flex:0 0 18px}

/* Directory fields must shrink inside their grid tracks instead of sizing the page. */
.location-filter.directory-search{width:100%;max-width:100%;min-width:0;box-sizing:border-box;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));align-items:start}
.directory-search>*,.directory-search label,.directory-search .search-location-picker,.directory-search .map-autocomplete,.directory-search .select-search,.directory-search .directory-extra-fields{min-width:0;max-width:100%;box-sizing:border-box}
.directory-search input,.directory-search select,.directory-search textarea,.directory-search gmp-place-autocomplete{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.directory-search .search-location-picker{grid-template-columns:minmax(0,1fr);width:100%}
.directory-search .location-actions{flex-wrap:wrap;min-width:0}
.directory-search .location-actions .button{max-width:100%;white-space:normal}
.directory-search .location-map{min-width:0;max-width:100%;box-sizing:border-box}
.directory-search .directory-extra-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px}
.directory-search .live-search-results{grid-column:1/-1;min-width:0}
.directory-search .directory-submit{justify-self:start;max-width:100%;white-space:normal}
.profile-back{max-width:100%;white-space:normal}
@media(max-width:600px){.location-filter.directory-search{grid-template-columns:minmax(0,1fr);padding:12px}.directory-search .directory-extra-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 body>.mobile-floating-create{left:auto;right:12px;bottom:calc(146px + env(safe-area-inset-bottom))}
 body>.mobile-floating-create>div{left:auto;right:0}
 body:has(.pwa-install:not([hidden]))>.mobile-floating-create{visibility:visible;pointer-events:auto}
 body.site-nav-open>.mobile-floating-create,body:has(dialog[open])>.mobile-floating-create,body:has(input:focus,textarea:focus,select:focus)>.mobile-floating-create{visibility:hidden;pointer-events:none}
}

.select-loading{display:flex;align-items:center;gap:8px;margin:6px 0;color:#5143a4;font-size:.85rem}.select-loading[hidden]{display:none}.select-loading:before{content:"";width:16px;height:16px;flex:0 0 16px;border:2px solid #ddd6f4;border-top-color:#5944bd;border-radius:50%;animation:select-loading-spin .7s linear infinite}.select-is-loading{pointer-events:none;opacity:.65}.select-search[aria-busy="true"] .select-search-results{pointer-events:none}@keyframes select-loading-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.select-loading:before{animation:none;border-top-color:#5944bd}}

/* Compact Create control at the right-hand midpoint; desktop header stays unchanged. */
@media(max-width:760px){body>.mobile-floating-create{position:fixed!important;left:auto;right:max(8px,env(safe-area-inset-right));top:50%;bottom:auto!important;transform:translateY(-50%);max-width:44px}body>.mobile-floating-create>summary{width:44px;height:44px;min-height:44px;padding:0;font-size:27px;border-radius:50%;box-sizing:border-box}body>.mobile-floating-create .create-label{display:none}body>.mobile-floating-create>div{right:52px;left:auto;top:50%;bottom:auto;transform:translateY(-50%);min-width:min(220px,calc(100vw - 76px));max-width:calc(100vw - 76px);max-height:70dvh}body.modal-open>.mobile-floating-create{visibility:hidden;pointer-events:none}}
.service-shield-icon{display:inline-block;position:relative;overflow:hidden;width:2em;height:2em;flex-shrink:0;vertical-align:middle}.service-shield-icon>img{position:absolute;width:150%!important;height:150%!important;max-width:none!important;left:-25%;top:-25%;object-fit:contain;filter:contrast(1.25)}.search-kind-tabs .service-shield-icon{width:25px;height:25px;flex:0 0 25px}.service-card .service-shield-icon{width:44px;height:44px}
