/* Product batch workspace: one task and one primary action at a time. */
body[data-admin-surface="product"] #bulkProductModal [hidden] { display: none !important; }
body[data-admin-surface="product"] #bulkProductModal > .modal {
  width: min(940px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: #fff;
}
#bulkProductModal .modal-header,
#bulkProductModal .modal-footer { flex: 0 0 auto; padding: 20px 24px; background: #fff; }
#bulkProductModal .modal-header h2 { font-size: 22px; letter-spacing: -.5px; }
#bulkProductModal .modal-header p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: #6e7581; }
#bulkProductModal .modal-body { min-height: 0; padding: 4px 24px 20px; overflow-y: auto; overscroll-behavior: contain; }
#bulkProductModal .modal-footer { min-height: 76px; border-top: 1px solid #e8ebef; gap: 16px; }
#bulkProductModal .modal-footer > div { display: flex; width: auto; flex: 0 0 auto; gap: 10px; }
#bulkProductModal .modal-hint { min-width: 0; font-size: 12px; line-height: 1.6; color: #647184; }
#bulkProductModal .button { min-height: 42px; padding: 10px 16px; font-size: 13px; white-space: normal; line-height: 1.4; }
#bulkProductModal .button.secondary { background: #fff; box-shadow: none; }
#bulkProductModal .button.primary { background: #0071e3; box-shadow: none; }
#bulkProductModal :is(button, input, select):focus-visible { outline: 3px solid #a6d1ff; outline-offset: 2px; }
#bulkProductModal #bulkSelectedProducts {
  margin: 0 0 18px; padding: 13px 16px;
  border: 1px solid #e5eaf1; border-radius: 14px;
  background: #f8fafc; box-shadow: none;
}
#bulkProductModal .selected-products-heading { margin-bottom: 10px; align-items: center; }
#bulkProductModal .selected-products-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
#bulkProductModal .selected-products-heading strong { font-size: 13px; color: #273345; }
#bulkProductModal .selected-products-heading span { font-size: 11px; color: #768192; }
#bulkProductModal .selected-products-clear { min-height: 28px; padding: 3px 0 3px 12px; font-size: 12px; box-shadow: none; }
#bulkProductModal .bulk-selection-groups { display: grid; gap: 12px; max-height: 150px; overflow: auto; }
#bulkProductModal .bulk-selection-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; margin-bottom: 7px; }
#bulkProductModal .bulk-selection-name strong { font-size: 14px; font-weight: 650; color: #253248; overflow-wrap: anywhere; }
#bulkProductModal .bulk-selection-name small { font-size: 11px; color: #7c8695; }
#bulkProductModal .bulk-size-chips { display: flex; gap: 6px; flex-wrap: wrap; }
#bulkProductModal .bulk-size-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; max-width: 100%;
  padding: 5px 9px; border: 1px solid #dce6f2; border-radius: 8px; background: #fff;
  color: #345778; font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer;
}
#bulkProductModal .bulk-size-chip small { color: #758398; font-size: 10px; }
#bulkProductModal .bulk-size-chip i { font-size: 16px; font-style: normal; color: #8796a9; }
#bulkProductModal .bulk-size-chip:hover { border-color: #86baf3; background: #eff6ff; }
#bulkProductModal .bulk-workspace-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 12px; background: #f0f3f7; }
#bulkProductModal .bulk-workspace-tabs:has(#bulkCatalogTab[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#bulkProductModal [data-bulk-tab] { min-height: 42px; min-width: 0; padding: 9px; border: 1px solid transparent; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #647184; cursor: pointer; }
#bulkProductModal [data-bulk-tab][aria-selected="true"] { color: #0069d1; background: #fff; border-color: #e4e9f0; box-shadow: 0 1px 3px #142c4710; }
#bulkProductModal .bulk-workspace-panel { min-width: 0; }
#bulkProductModal .bulk-sale-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #edf0f4; }
#bulkProductModal .bulk-sale-actions > div { margin-right: auto; min-width: 0; }
#bulkProductModal .bulk-sale-actions strong { display: block; font-size: 14px; color: #273345; }
#bulkProductModal .bulk-sale-actions span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.5; color: #788292; }
#bulkProductModal .bulk-section-title { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 12px; }
#bulkProductModal .bulk-section-title strong { font-size: 14px; }
#bulkProductModal .bulk-section-title span { font-size: 12px; color: #788292; }
#bulkProductModal .bulk-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#bulkProductModal .bulk-field { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 94px; min-width: 0; margin: 0; padding: 12px 14px; background: #fff; border: 1px solid #e4e8ee; border-radius: 12px; box-shadow: none; }
#bulkProductModal .bulk-field.enabled { border-color: #8dbff2; background: #f8fbff; box-shadow: none; }
#bulkProductModal .bulk-field > input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: #0071e3; }
#bulkProductModal .bulk-field > span { grid-column: 2; font-size: 13px; font-weight: 600; color: #354357; }
#bulkProductModal .bulk-field > :not(input[type="checkbox"]):not(span) { grid-column: 1 / -1; min-width: 0; }
#bulkProductModal .bulk-field :is(input:not([type="checkbox"]), select) { width: 100%; min-width: 0; height: 40px; min-height: 40px; padding: 8px 10px; font-size: 14px; line-height: 1.4; border-color: #dfe6ef; border-radius: 8px; }
#bulkProductModal .bulk-field :is(input, select):disabled { color: #8793a3; background: #f5f7fa; opacity: 1; }
#bulkProductModal .bulk-field :is(.input-prefix, .input-suffix, .formula-input-shell) { min-width: 0; width: 100%; }
#bulkProductModal .bulk-field .input-prefix input { padding-left: 27px; }
#bulkProductModal .bulk-field .input-prefix b { font-size: 13px; left: 10px; }
#bulkProductModal .bulk-field .input-suffix input { padding-right: 26px; }
#bulkProductModal .bulk-mode-cost-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#bulkProductModal .formula-input-shell { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; }
#bulkProductModal .amount-fx-button { min-height: 40px; width: 40px; }
#bulkProductModal .bulk-advanced { margin-top: 18px; border: 0; border-top: 1px solid #edf0f4; padding-top: 14px; }
#bulkProductModal .bulk-advanced > summary { cursor: pointer; color: #47576c; font-size: 13px; font-weight: 600; padding: 5px 0; }
#bulkProductModal .bulk-advanced > summary span { margin-left: 8px; color: #8b95a4; font-size: 12px; font-weight: 400; }
#bulkProductModal .bulk-advanced[open] > summary { margin-bottom: 14px; }
#bulkProductModal .bulk-archive-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf0f4; }
#bulkProductModal .bulk-archive-row span { font-size: 12px; color: #788292; line-height: 1.5; }
#bulkProductModal .cost-card-export-planner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; }
#bulkProductModal .cost-card-export-copy > strong { font-size: 16px; color: #273345; }
#bulkProductModal .cost-card-export-copy > p { font-size: 13px; color: #788292; line-height: 1.6; }
#bulkProductModal .cost-card-export-parts { gap: 10px; }
#bulkProductModal .cost-card-export-parts .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#bulkProductModal .cost-card-export-parts label { padding: 18px 12px; min-height: 86px; border: 1px solid #e0e7ef; border-radius: 12px; background: #fff; }
#bulkProductModal .cost-card-export-parts label:has(input:checked) { background: #f4f9ff; border-color: #83baf2; }
#bulkProductModal .cost-card-export-parts strong { font-size: 13px; }
#bulkProductModal .cost-card-export-parts small { font-size: 11px; margin-top: 6px; }
#bulkProductModal .bulk-export-scope { min-width: 0; margin: 0; padding: 0; border: 0; }
#bulkProductModal .bulk-export-scope legend { font-size: 14px; font-weight: 650; margin-bottom: 12px; color: #273345; }
#bulkProductModal .bulk-export-scope label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; font-size: 14px; line-height: 1.6; color: #354357; cursor: pointer; }
#bulkProductModal .bulk-export-scope input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 4px; accent-color: #0071e3; }
#bulkProductModal .bulk-export-scope small { display: block; font-size: 12px; color: #788292; }
#bulkProductModal .bulk-export-status { padding: 12px 14px; margin: 0; font-size: 12px; color: #647184; line-height: 1.7; border-radius: 10px; background: #f6f8fb; }
#bulkProductModal .bulk-task-copy { padding: 4px 0 16px; }
#bulkProductModal .bulk-task-copy h3 { font-size: 18px; margin: 0 0 12px; }
#bulkProductModal .bulk-task-copy p { font-size: 14px; line-height: 1.8; color: #647184; }
#bulkProductModal .bulk-catalog-steps { display: flex; gap: 20px; flex-wrap: wrap; padding: 24px 0; list-style: none; }
#bulkProductModal .bulk-catalog-steps li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
#bulkProductModal .bulk-catalog-steps span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #edf5ff; color: #0071e3; font-weight: 650; }
#bulkProductModal .bulk-soft-note { padding: 14px; background: #f6f8fb; border-radius: 10px; font-size: 12px !important; }
@media (max-width: 640px) {
  body[data-admin-surface="product"] #bulkProductModal { padding: 12px 0; }
  body[data-admin-surface="product"] #bulkProductModal > .modal { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  #bulkProductModal .modal-header { padding: 16px; }
  #bulkProductModal .modal-header h2 { font-size: 20px; }
  #bulkProductModal .modal-body { padding: 0 16px 16px; }
  #bulkProductModal #bulkSelectedProducts { padding: 12px; }
  #bulkProductModal .selected-products-heading span { display: none; }
  #bulkProductModal .bulk-selection-groups { max-height: 120px; }
  #bulkProductModal .bulk-workspace-tabs { margin-bottom: 16px; }
  #bulkProductModal [data-bulk-tab] { padding: 8px 3px; font-size: 12px; }
  #bulkProductModal .bulk-edit-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #bulkProductModal .bulk-sale-actions { flex-wrap: wrap; }
  #bulkProductModal .bulk-sale-actions > div { flex-basis: 100%; }
  #bulkProductModal .bulk-sale-actions .button { flex: 1; }
  #bulkProductModal .cost-card-export-parts { grid-template-columns: minmax(0, 1fr); }
  #bulkProductModal .cost-card-export-parts label { min-height: 66px; padding: 14px; }
  #bulkProductModal .bulk-archive-row { align-items: flex-start; flex-direction: column; }
  #bulkProductModal .modal-footer { padding: 12px 16px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  #bulkProductModal .modal-footer > div { display: flex; width: 100%; }
  #bulkProductModal .modal-footer .button { flex: 1; min-width: 0; width: auto; }
  #bulkProductModal .modal-hint { font-size: 11px; }
}
