/* Integration only. MVP selectors are scoped to .publisher-module by the build tool. */
.publisher-module .county-map .county-label { font-weight: 400; }
.publisher-module .office-category-picker { min-width: 0; border: 0; padding: 0; margin: 0; }
.publisher-module .office-category-picker legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.publisher-module .office-category-picker .category-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.publisher-module #listing-editor .office-category-picker .category-list label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.publisher-module #listing-editor .office-category-picker .category-list input { width: auto; margin: 0; flex: none; }
.publisher-module .office-category-unavailable { color: var(--danger, #bb3030); outline: 1px solid currentColor; padding: 4px; border-radius: 6px; }
.publisher-module .editor-photo-upload progress { display: block; width: 100%; margin: 12px 0; }
.publisher-module .editor-photo-upload progress[hidden] { display: none; }
.publisher-module .office-card>.category-list { margin-bottom: 12px; }
.publisher-module .preview-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; padding-top: 20px; }
.publisher-module .preview-final-actions .btn { margin: 0; white-space: normal; }
.publisher-module .vehicle-card-copy h3, .publisher-module .vehicle-card-copy p { text-shadow: 0 1px 3px #000, 0 1px 8px #0009; }
.publisher-module .workspace-sidebar .publisher-learning-return { margin-top: 24px; white-space: normal; text-align: left; justify-content: flex-start; gap: 10px; line-height: 1.5; }
.publisher-module .workspace-sidebar .publisher-learning-return span { min-width: 0; }
.publisher-module {
    isolation: isolate;
    /* Keep fixed MVP actions above the following DUO footer's painted layers. */
    position: relative;
    z-index: 2;
    color-scheme: light;
    color: var(--ink);
    background: var(--canvas);
    font: 15px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    border-radius: 28px;
    padding-bottom: 32px;
    margin-bottom: 28px;
}
.publisher-module [data-catalog-results] + .publisher-cta { margin-top: 24px; }
.publisher-module :is(h1,h2,h3,h4,h5,h6) { color: var(--ink); font-family: var(--font); }
.publisher-module :is(input,select,textarea,button) { font: inherit; }
.publisher-module .btn { text-transform: none; letter-spacing: normal; }
/* DUO uses these classes for absolute overlays. Both MVP card sections belong
   to normal flow, including services, details and comparison actions. */
.publisher-module :is(.card-top,.card-bottom) { position: static; inset: auto; z-index: auto; }
@media (min-width: 992px) {
    /* Outrank DUO's generic desktop *-title scaling without changing mobile. */
    #page .publisher-module .profile-header-v4 .profile-hero-identity h1.profile-hero-title { font-size: clamp(25px,3.8vw,48px); }
}
.publisher-module .card-title { margin-bottom: 0; }
.publisher-module .toast:not([hidden]) { display: block !important; width: auto; border: 0; }
.publisher-module .county-link:focus-visible .county-shape { stroke: #16365d; stroke-width: 3; fill: #70a8df; }
.publisher-module .county-shape.is-unavailable { cursor: default; opacity: .55; }
.publisher-module .container { max-width: 1200px; }
.publisher-module:focus { outline: none; }
.publisher-module .workspace-sidebar a[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.publisher-module [aria-invalid="true"] { border-color: #bd3547; }
.publisher-module .stack-form :is(input,select,textarea)[aria-invalid="true"] { border-color: #bd3547; }
.publisher-module .auth-card :is(input,select,textarea) { scroll-margin-top: 120px; }
.publisher-module [data-field-error] { color: #a72839; font-size: 13px; }
.publisher-module .editor-operation-feedback { margin-top: 16px; }
.publisher-module .editor-operation-feedback ul:empty { display: none; }
.publisher-module .editor-operation-feedback .text-button { color: inherit; text-align: left; }
.publisher-module :is([data-repeater],[data-benefits-rows],[data-gallery-editor])[aria-invalid="true"] { outline: 2px solid #bd3547; outline-offset: 4px; }
.publisher-module .auth-card input[type="checkbox"] { display: inline-block; width: auto; min-height: 0; vertical-align: middle; }
.publisher-module [hidden] { display: none !important; }
.publisher-module .checkout-addresses { min-width: 0; padding: 0; border: 0; margin: 0 0 18px; }
.publisher-module .checkout-addresses legend { float: none; font-size: 14px; margin-bottom: 10px; }
.publisher-module .checkout-address-option { display: flex; flex-direction: row; align-items: center; gap: 12px; position: relative; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.publisher-module .checkout-address-option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.publisher-module .checkout-address-option:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.publisher-module .checkout-address-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.publisher-module .checkout-address-option>span:last-child { min-width: 0; overflow-wrap: anywhere; }
.publisher-module .checkout-address-option strong, .publisher-module .checkout-address-option small { display: block; }
.publisher-module .checkout-address-option small { color: var(--muted); margin-top: 4px; }
.publisher-module .checkout-address-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px; background: var(--soft); }
.publisher-module .checkout-field-error { display: block; margin-top: 5px; color: #b3263b; font-size: 13px; }
.publisher-module .checkout-validation-summary { border-color: #b3263b; }
.publisher-module .publisher-payment-terms {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 6px 10px;
    margin: 16px 0;
    color: var(--ink);
    cursor: pointer;
}
.publisher-module .publisher-payment-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    accent-color: var(--blue);
    appearance: auto;
}
.publisher-module .publisher-payment-terms a { text-decoration: underline; }
.publisher-module .publisher-payment-terms .checkout-field-error { grid-column: 2; margin: 0; }
.publisher-module [data-native-intent] .period-option .publisher-native-period-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
}
.publisher-module [data-native-intent] [data-payment-offer-price] { white-space: nowrap; }
#publisher-main [data-checkout-form] :is(input,select,button)[aria-invalid="true"] { border-color: #b3263b; }
#publisher-main [data-checkout-form] :is(input,select,button)[aria-invalid="true"]:focus { border-color: #b3263b; box-shadow: 0 0 0 3px #b3263b20; }
.publisher-module .publisher-order-result { margin: 20px 0; }
#publisher-main .publisher-order-result h1 { font-size: 23px; line-height: 1.12; margin: 0; }
#publisher-main .publisher-order-result p { margin: 4px 0 0; }
body.theme-dark .publisher-module .checkout-field-error { color: #ffabb6; }
body.theme-dark #publisher-main [data-checkout-form] :is(input,select,button)[aria-invalid="true"] { border-color: #ffabb6; }
body.theme-dark #publisher-main [data-checkout-form] :is(input,select,button)[aria-invalid="true"]:focus { border-color: #ffabb6; box-shadow: 0 0 0 3px #ffabb620; }
.publisher-module .required { display: inline; }
.publisher-module .publisher-selected-preview { margin: 12px 0; max-width: 280px; height: 180px; background: #eef4fc; border: 1px solid #bdcfe5; border-radius: 10px; overflow: hidden; }
.publisher-module .publisher-selected-preview :is(img,canvas) { width: 100%; height: 100%; object-fit: contain; }
.publisher-module [data-upload-gate] { flex-wrap: wrap; }
.publisher-module .gallery-editor-actions .icon-button { min-width: 38px; min-height: 38px; }
.publisher-module .gallery-editor-actions .publisher-media-remove { margin-left: auto; color: #943b49; }
.publisher-module .publisher-location-select { display:block; position:relative; min-width:0; }
.publisher-module .publisher-location-trigger { display:block; width:100%; min-height:46px; padding:10px 14px; text-align:left; background:#fff; border:1px solid var(--line,#c6d3e0); border-radius:10px; color:var(--ink); }
.publisher-module .publisher-location-panel { display:block; position:absolute; top:100%; left:0; right:0; z-index:40; padding:8px; background:#fff; border:1px solid #bccddd; border-radius:10px; box-shadow:0 12px 28px #16365d26; }
/* Searchable location lists pass vertical scrolling to their page or dialog. */
.publisher-module .publisher-location-options { display:block; max-height:220px; overflow:auto; overscroll-behavior:contain auto; }
.publisher-module .publisher-location-options [role=option] { display:block; padding:9px 10px; cursor:pointer; border-radius:6px; }
.publisher-module .publisher-location-options :is(.is-active,[aria-selected=true]) { background:#e6f0ff; color:#16365d; }
/* Billing: native controls and searchable location buttons share one text scale.
   Keep values at 16px on mobile too, avoiding focus zoom on iOS. */
#publisher-main [data-checkout-new-billing] { min-width: 0; }
#publisher-main [data-checkout-new-billing] > legend { margin-bottom: 16px; font-size: 20px; line-height: 1.3; font-weight: 700; }
#publisher-main [data-checkout-new-billing] > label { margin-bottom: 16px; gap: 6px; font-size: 14px; line-height: 1.5; font-weight: 600; }
/* DUO forces native inputs/selects to 12px !important: override only this fieldset. */
#publisher-main [data-checkout-new-billing] :is(input,select,.publisher-location-trigger,.publisher-location-panel input) { min-height: 48px; padding: 11px 14px; font-family: var(--font); font-size: 16px !important; line-height: 1.5; font-weight: 400; letter-spacing: normal; }
#publisher-main [data-checkout-new-billing] input::placeholder { font-size: 16px !important; }
#publisher-main [data-checkout-new-billing] .publisher-location-options [role=option] { font-size: 16px; line-height: 1.5; font-weight: 400; }
.publisher-module .publisher-payment-dialog { width: min(560px,calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--canvas); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.publisher-module .publisher-payment-dialog::backdrop { background: #0b162a99; }
/* Only true dialog windows lock the background; inline dropdowns do not. */
.publisher-module dialog { overscroll-behavior: contain; }
body:has(.publisher-module dialog[open]) { overflow: hidden; }
.publisher-module .publisher-payment-dialog .sr-premium-plan-content { width: 100%; margin: 0 !important; }
.publisher-module .publisher-payment-dialog .sr-comment-modal-close { z-index: 4; }
.publisher-module .publisher-payment-dialog .sr-premium-plan-modal-body { padding: 18px; }
.publisher-module .publisher-payment-dialog .sr-premium-plan-modal-footer { margin: 0 !important; padding: 14px 18px; }
.publisher-module .publisher-payment-dialog h3 { font-size: 20px; line-height: 1.3; }
.publisher-module .publisher-payment-dialog h4 { font-size: 14px; margin: 0 0 6px; }
.publisher-module .publisher-payment-dialog [data-payment-summary-billing] { white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 16px; font-size: 14px; }
.publisher-module .publisher-payment-dialog :is(.sr-premium-plan-back,.sr-premium-plan-confirm) { font-size: 13px !important; }
.publisher-module .publisher-gateway { display: grid; place-items: center; min-height: 45vh; padding: 40px 20px; }
.publisher-module .publisher-gateway .panel { width: 100%; max-width: 600px; margin: 0; text-align: center; }
.publisher-module .publisher-gateway h1 { font-size: 26px; line-height: 1.3; }
.publisher-module .publisher-gateway p { margin: 16px 0 22px; }
.publisher-module .publisher-order-content { display: flex; flex-direction: column; gap: 20px; }
.publisher-module .publisher-order-content > :is(.back-link,.publisher-order-result,.panel,p) { margin: 0; }
.publisher-module .publisher-order-content > .panel { min-width: 0; }
.publisher-module .publisher-native-actions { display: flex; justify-content: center; margin-top: 20px; }
.publisher-module .publisher-native-actions > .btn { max-width: 100%; white-space: normal; text-align: center; justify-content: center; }
#publisher-main [data-native-reference] { min-height: 48px; padding: 11px 14px; font-size: 16px !important; line-height: 1.5; }
.publisher-module .publisher-native-confirmation .sr-premium-plan-modal-selected { display: block; }
.publisher-module .publisher-native-confirmation .sr-premium-plan-modal-selected > .publisher-native-period-price {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
    margin-top: 5px; padding-top: 0; text-align: left; white-space: normal;
}
.publisher-module .publisher-native-confirmation .publisher-native-period-price small { margin-top: 0; }
.publisher-module .publisher-native-confirmation .publisher-native-period-price strong { white-space: nowrap; }
.publisher-module .publisher-native-confirmation .sr-premium-plan-modal-totals > div:has([data-payment-summary-total][hidden]) { display: block; }
.publisher-module .publisher-native-confirmation .sr-premium-plan-modal-totals span { font-size: 14px; line-height: 1.5; }
@media (max-width: 420px) {
    .publisher-module .publisher-native-confirmation .sr-premium-plan-modal-footer > .col-5 { width: 32%; }
    .publisher-module .publisher-native-confirmation .sr-premium-plan-modal-footer > .col-7 { width: 68%; }
    .publisher-module .publisher-native-confirmation .sr-premium-plan-confirm { gap: 6px; padding-inline: 10px; white-space: normal; }
}
.publisher-module .publisher-native-order-link { margin-top: 16px; }
.publisher-module .publisher-invoices-content { display: flex; flex-direction: column; gap: 20px; }
.publisher-module .publisher-invoices-content > :is(.panel,.page-heading) { margin: 0; }
.publisher-module .publisher-invoice-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.publisher-module .publisher-invoice-heading h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.publisher-module .publisher-invoice-heading time { color: var(--muted); font-size: 13px; }
.publisher-module .publisher-invoice-card { min-width: 0; overflow-wrap: anywhere; }
.publisher-module .publisher-invoice-card .btn { margin-top: 12px; }
.publisher-module .workspace-sidebar nav .fa-file-invoice { width: 18px; font-size: 18px; text-align: center; flex-shrink: 0; }
@media (max-width: 640px) {
    .publisher-module .workspace-sidebar nav.publisher-nav-invoices { grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .publisher-module .workspace-sidebar .publisher-nav-invoices a { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 56px; gap: 8px; padding: 10px; text-align: left; }
    .publisher-module .workspace-sidebar .publisher-nav-invoices .account-nav-label { min-height: 0; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .publisher-module, .publisher-module * { scroll-behavior: auto !important; }
}
