/* Стили только [data-module="brokerage-submit"]. */

[data-module="brokerage-submit"] .publication-lock-fields{border:0;padding:0;margin:0;min-width:0}[data-module="brokerage-submit"] .publication-state{padding:22px;border:1px solid #c8b787;border-radius:18px;margin:24px 0;background:#ede9dd}[data-module="brokerage-submit"] .publication-state h2{font-size:24px}[data-module="brokerage-submit"] .publication-consent{display:flex;gap:12px;align-items:flex-start;margin:20px 0}[data-module="brokerage-submit"] .publication-consent input{flex:0 0 20px;width:20px;height:20px;margin-top:4px}/* Single-column listing form. Scoped to the submit/edit module only. */
[data-module="brokerage-submit"] .listing-form{width:100%;max-width:900px;gap:28px}
[data-module="brokerage-submit"] .listing-form fieldset{grid-template-columns:minmax(0,1fr);gap:22px;border-radius:20px}
[data-module="brokerage-submit"] .listing-form .publication-lock-fields{gap:28px}
[data-module="brokerage-submit"] .listing-contact-grid,
[data-module="brokerage-submit"] .location-fields,
[data-module="brokerage-submit"] .equipment-selected-item{grid-template-columns:minmax(0,1fr)}
[data-module="brokerage-submit"] .listing-form fieldset>label,
[data-module="brokerage-submit"] .listing-form fieldset>.listing-field,
[data-module="brokerage-submit"] .listing-form fieldset>.listing-price-field{grid-column:1/-1}
[data-module="brokerage-submit"] .listing-currency-field{width:160px;max-width:100%}
[data-module="brokerage-submit"] .listing-description-field textarea{min-height:280px}
[data-module="brokerage-submit"] .equipment-add-row{align-items:stretch;flex-direction:column}
[data-module="brokerage-submit"] .equipment-add-row>label{flex:auto;width:100%}
[data-module="brokerage-submit"] .equipment-add-row>.button,
[data-module="brokerage-submit"] .equipment-selected-item>button{align-self:flex-start;justify-self:start}
@media(max-width:600px){
 [data-module="brokerage-submit"] .listing-form fieldset{gap:18px}
 [data-module="brokerage-submit"] .listing-description-field textarea{min-height:220px}
}

/* Edit mode only: form sections stay vertical; their fields use two columns. */
@media(min-width:761px){
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form{max-width:1100px}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .publication-lock-fields{grid-template-columns:minmax(0,1fr)}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .publication-lock-fields>fieldset{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .publication-lock-fields>fieldset>label,
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .publication-lock-fields>fieldset>.listing-field,
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .publication-lock-fields>fieldset>.listing-price-field{grid-column:auto}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-contact-grid,
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .location-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .deck-editor,
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .listing-contacts,
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .additional-equipment,
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .publication-lock-fields>fieldset>.field-hint,
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .publication-lock-fields>fieldset>.listing-mode,
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .publication-lock-fields>fieldset>.publication-consent{grid-column:1/-1}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .listing-form .deck-editor{width:100%}
}

@media(min-width:761px){
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .equipment-add-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:20px}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .equipment-add-row>label{width:100%;min-width:0}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .equipment-add-row>.button{justify-self:start;align-self:end}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .equipment-selected{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 html[data-bg-listing-edit="1"] [data-module="brokerage-submit"] .equipment-selected-item{grid-template-columns:minmax(0,1fr);align-items:start}
}
