.buyer-enquiry[hidden] { display: none; }
.enquiry-shell, .buyer-enquiry { min-width: 0; max-width: 100%; }
.buyer-enquiry { display: grid; gap: 12px; padding-top: 16px; text-align: left; overflow-wrap: anywhere; }
.buyer-enquiry label { display: grid; gap: 6px; min-width: 0; }
.buyer-enquiry .input { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; font-size: 16px; }
.buyer-enquiry textarea { resize: vertical; }
.buyer-enquiry .enquiry-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.enquiry-consent input { flex: 0 0 auto; margin-top: 4px; }
.enquiry-consent span { min-width: 0; }
.enquiry-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.buyer-enquiry button { white-space: normal; }
.buyer-enquiry [role="status"] { margin: 0; }
.manager { font: 16px/1.5 system-ui, sans-serif; margin: 0; padding: 16px; color: #202020; }
.manager main { max-width: 900px; margin: auto; overflow-wrap: anywhere; }
.manager form, .manager label { display: grid; gap: 10px; margin-block: 16px; }
.manager input, .manager select, .manager button { box-sizing: border-box; max-width: 100%; min-width: 0; font: inherit; padding: 10px; }
.manager dd { margin-inline-start: 16px; white-space: pre-wrap; }
.manager dt { font-weight: bold; }

.buyer-cabinet { max-width: 960px; overflow-wrap: anywhere; padding-bottom: 90px; }
.buyer-cabinet .panel { margin-bottom: 16px; padding: 20px; min-width: 0; }
.buyer-cabinet form { display: grid; gap: 12px; margin-block: 20px; }
.buyer-cabinet input { min-width: 0; width: 100%; box-sizing: border-box; font-size: 16px; }
.buyer-cabinet .btn { white-space: normal; max-width: 100%; min-height: 44px; }
.buyer-tabs { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.buyer-tabs a { min-height: 44px; display: inline-flex; align-items: center; }
.buyer-enquiry-card { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.buyer-steps { padding-left: 24px; display: grid; gap: 8px; }
.buyer-steps [aria-current="step"] { font-weight: 700; color: var(--accent); }
.buyer-steps [aria-current="step"]::after { content: ' — текущий этап'; }
.buyer-wish { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-block: 16px; }
.buyer-cabinet .buyer-data-request { margin-top: 32px; border-top: 1px solid var(--border); }
.buyer-delete-link { color: var(--bad, #9a2f2a); background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; text-decoration: underline; cursor: pointer; }

.delivery-city-prompt { position: fixed; z-index: 80; right: 16px; bottom: 88px; width: min(360px, calc(100vw - 32px)); max-height: min(60vh, 500px); overflow: auto; box-sizing: border-box; padding: 16px; background: var(--surface, #fff); color: var(--text, #26332e); border: 1px solid var(--border, #dce2dc); border-radius: 16px; box-shadow: 0 8px 32px #0002; font-size: 14px; }
.delivery-city-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.delivery-city-head h2 { font-size: 20px; margin: 0; }
.delivery-city-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.delivery-city-prompt .btn { min-height: 44px; white-space: normal; }
.delivery-city-prompt [hidden] { display: none; }
.delivery-city-prompt .field { margin-top: 12px; }
.delivery-city-prompt .input { width: 100%; box-sizing: border-box; min-width: 0; font-size: 16px; }
.delivery-city-prompt .city-list { max-height: 180px; overflow: auto; padding: 0; list-style: none; }
.delivery-city-prompt .city-list button { min-height: 44px; width: 100%; text-align: left; }

.agency-panel { padding: 24px; margin: 20px auto; max-width: 920px; overflow-wrap: anywhere; }
.agency-panel .field, .agency-add .field { display: grid; gap: 6px; margin: 12px 0; }
.agency-panel select, .agency-panel textarea, .agency-mode select { max-width: 100%; }
.agency-mode { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.agency-mode:empty { display: none; }
.agency-mode label { min-width: 0; max-width: 100%; }
.wholesale-label { font-weight: 600; }
.agency-add { margin-top: 16px; }
.agency-panel li { margin: 10px 0; }
@media (max-width: 600px) { .agency-panel { padding: 16px; } .agency-mode { padding-bottom: 12px; } }

.sketch-product { margin-top: 12px; min-width: 0; }
.sketch-product form { display: grid; gap: 12px; padding-top: 12px; }
.sketch-product form[hidden] { display: none; }
.sketch-product label { display: grid; gap: 6px; min-width: 0; }
.sketch-product .input { width: 100%; min-width: 0; box-sizing: border-box; font-size: 16px; }
#buyer-sketches article { border-top: 1px solid var(--border); padding-block: 16px; }
#buyer-sketches img { max-width: 100%; height: auto; }

.sketch-product [data-ceramic-shape][hidden] { display: none; }

.mobile-enquiry-bar { display: none; }
@media (max-width: 820px) {
  .mobile-enquiry-bar:not([hidden]) { display: flex; align-items: center; gap: 12px; position: fixed;
    inset-inline: 0; bottom: var(--mobile-enquiry-nav-height, calc(60px + env(safe-area-inset-bottom, 0px)));
    z-index: 39; box-sizing: border-box; padding: 10px max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px));
    background: var(--surface, #fff); border-top: 1px solid var(--border); box-shadow: 0 -4px 18px #0001; }
  .mobile-enquiry-price { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .mobile-enquiry-price span { display: block; font-size: 10px; line-height: 1.3; color: var(--text-2); }
  .mobile-enquiry-price strong { display: block; font-size: 16px; line-height: 1.3; }
  .mobile-enquiry-bar .btn { flex: 0 1 62%; min-height: 44px; font-size: 14px; line-height: 1.3; white-space: normal; }
  .pdp-page.has-mobile-enquiry { padding-bottom: var(--mobile-enquiry-bar-height, 80px); }
  .buyer-enquiry { scroll-margin-top: 16px; }
}
