.quickorder-page .quote-items-section,
.quickorder-page .quickorder-direct-order {
  margin-bottom: 2rem;
}

.quickorder-page .fieldset {
  border: 1px solid #e3e3e3;
  padding: 1.5rem;
  border-radius: 4px;
  background: transparent;
}

.quickorder-page .legend {
  background: #fff;
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.quickorder-page .fields-row.two-columns {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.quickorder-page .fields-row.two-columns > .field {
  flex: 1;
  min-width: 0;
}

.quickorder-page .fields-row.two-columns > .field .control {
  width: 100%;
}

.quickorder-page .shipping-method-note {
  font-size: 0.8125rem;
  color: #666;
  margin-top: 0.5rem;
}

.quickorder-page .quote-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.quickorder-page .quote-items-header .legend {
  margin: 0;
  padding: 0;
  border: none;
}

.quickorder-page .quote-items-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quickorder-page .quote-items-actions .action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
  background: #f2f2f2;
  border: 1px solid #cdcdcd;
  border-radius: 3px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.quickorder-page .quote-items-actions .action:hover {
  background: #e5e5e5;
  border-color: #b5b5b5;
  text-decoration: none;
}

.quickorder-page .quote-items-actions .action-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.quickorder-page .quote-items-actions .action-icon:before {
  font-family: 'luma-icons';
  font-size: 14px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
}

.quickorder-page .quote-items-actions .import-icon:before {
  content: '\e618';
}

.quickorder-page .quote-items-actions .export-icon:before {
  content: '\e618';
  transform: rotate(180deg);
  transform-origin: 50% 50%;
}

.quickorder-page .add-product-section {
  margin-top: 1rem;
}

.quickorder-page .add-product-row {
  margin-bottom: 10px;
}

.quickorder-page .actions-add-item .action.add {
  padding: 8px 16px;
}

.quickorder-page .product-search-wrapper {
  position: relative;
  z-index: 10;
  max-width: 520px;
}

.quickorder-page .product-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #1979c3;
  max-height: 280px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.quickorder-page .product-search-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #e8e8e8;
  transition: background-color 0.15s ease;
}

.quickorder-page .product-search-item:last-child {
  border-bottom: none;
}

.quickorder-page .product-search-item:hover,
.quickorder-page .product-search-item.highlighted {
  background: #e6f3ff;
}

.quickorder-page .product-search-item .product-name-result {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 3px;
}

.quickorder-page .product-search-item .product-sku-hint {
  font-size: 12px;
  color: #666;
}

.quickorder-page .table-wrapper.quote-items {
  overflow: visible;
}

.quickorder-page .table-quote-items-new {
  width: 100%;
  border-collapse: collapse;
  overflow: visible;
}

.quickorder-page .table-quote-items-new thead th {
  background: #f5f5f5;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.quickorder-page .table-quote-items-new thead th.col.actions {
  text-align: right;
}

.quickorder-page .table-quote-items-new thead th.col.image,
.quickorder-page .table-quote-items-new tbody td.col.image {
  width: 56px;
  text-align: center;
}

.quickorder-page .table-quote-items-new tbody td.col.image .product-thumb {
  display: inline-block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}

.quickorder-page .table-quote-items-new tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.quickorder-page .table-quote-items-new tbody td.col.actions {
  text-align: right;
}

.quickorder-page .table-quote-items-new .col.price {
  width: 12%;
  min-width: 100px;
}

.quickorder-page .table-quote-items-new .col.subtotal {
  width: 12%;
  min-width: 100px;
  text-align: right;
}

.quickorder-page .table-quote-items-new tfoot {
  background: #f5f5f5;
  border-top: 2px solid #ddd;
}

.quickorder-page .table-quote-items-new tfoot th.mark {
  text-align: right;
  padding: 10px 15px;
  font-weight: 500;
  color: #333;
}

.quickorder-page .table-quote-items-new tfoot td.amount {
  text-align: right;
  padding: 10px 15px;
  font-weight: 600;
  color: #333;
}

.quickorder-page .table-quote-items-new tfoot tr.grand_total th,
.quickorder-page .table-quote-items-new tfoot tr.grand_total td {
  font-size: 15px;
  color: #1979c3;
}

.quickorder-page .table-quote-items-new .input-text {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.quickorder-page .table-quote-items-new .input-text:focus {
  border-color: #1979c3;
  outline: none;
  box-shadow: 0 0 3px rgba(25, 121, 195, 0.3);
}

.quickorder-page .table-quote-items-new .qty-input {
  text-align: center;
  width: 70px;
  max-width: 70px;
}

.quickorder-page .remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
  cursor: pointer;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
}

.quickorder-page .remove-item:hover {
  background: #e53935;
  border-color: #e53935;
  color: #fff;
}

.quickorder-page .quickorder-direct-order {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.quickorder-page .quickorder-direct-order-note {
  margin: 0 0 15px;
  color: #555;
}

.quickorder-page .quickorder-payment-section {
  margin-top: 20px;
}

.quickorder-page .quickorder-payment-status {
  margin-bottom: 15px;
}

.quickorder-page .quickorder-payment-status.is-loading {
  opacity: 0.85;
}

.quickorder-page .quickorder-payment-methods {
  padding: 16px;
  border: 1px solid #d6dee6;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
  box-shadow: 0 10px 24px rgba(21, 35, 50, 0.08);
}

.quickorder-page .quickorder-payment-methods .legend {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.quickorder-page .quickorder-payment-methods .fieldset {
  margin: 0;
}

.quickorder-page .quickorder-payment-methods .opc-payment {
  margin-top: 10px;
}

.quickorder-page .quickorder-payment-methods .payment-methods {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quickorder-page .quickorder-payment-methods .payment-method {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #d7dfe7;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.quickorder-page .quickorder-payment-methods .payment-method:last-child {
  margin-bottom: 0;
}

.quickorder-page .quickorder-payment-methods .payment-method:hover {
  border-color: #b4cbe5;
  box-shadow: 0 6px 16px rgba(25, 121, 195, 0.12);
  transform: translateY(-1px);
}

.quickorder-page .quickorder-payment-methods .payment-method._active {
  border-color: #1979c3;
  box-shadow: 0 0 0 3px rgba(25, 121, 195, 0.16);
  background: #f4f9ff;
}

.quickorder-page .quickorder-payment-methods .payment-method-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.quickorder-page .quickorder-payment-methods .payment-method-title input[type='radio'] {
  margin: 0 6px 0 0;
  accent-color: #1979c3;
}

.quickorder-page .quickorder-payment-methods .payment-method-title .label {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: #1f2a36;
}

.quickorder-page .quickorder-payment-methods .payment-method-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e5e5;
}

.quickorder-page .quickorder-payment-methods .payment-method-content {
  display: none;
}

.quickorder-page .quickorder-payment-methods .payment-method._active .payment-method-content {
  display: block;
}

.quickorder-page .quickorder-payment-methods .payment-method-billing-address,
.quickorder-page .quickorder-payment-methods .billing-address-details {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

.quickorder-page .quickorder-payment-methods .actions-toolbar {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.quickorder-page .quickorder-payment-methods .actions-toolbar .primary .action {
  padding: 8px 18px;
  border-radius: 6px;
}

.quickorder-page .quickorder-payment-methods .discount-code.payment-option {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.quickorder-page .quickorder-payment-methods .discount-code .payment-option-title {
  cursor: pointer;
}

.quickorder-page .quickorder-payment-methods .discount-code .action-toggle {
  font-weight: 600;
  color: #1f2a36;
}

.quickorder-page .quickorder-payment-checkout .opc-progress-bar,
.quickorder-page .quickorder-payment-checkout .opc-estimated-wrapper,
.quickorder-page .quickorder-payment-checkout .authentication-wrapper {
  display: none !important;
}

.quickorder-page .quickorder-payment-checkout .opc-wrapper {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  float: none;
  padding-right: 0;
  margin: 0;
}

.quickorder-page .quickorder-payment-checkout #checkoutSteps > #shipping,
.quickorder-page .quickorder-payment-checkout #checkoutSteps > #opc-shipping_method {
  display: none !important;
}

.quickorder-page .quickorder-payment-checkout .quickorder-checkout-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}

.quickorder-page .quickorder-payment-checkout .quickorder-checkout-container > .messages {
  flex: 0 0 100%;
  width: 100%;
}

.quickorder-page .quickorder-payment-checkout #opc-sidebar {
  flex: 0 0 360px;
  max-width: 100%;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.quickorder-page .quickorder-payment-checkout #opc-sidebar .items-in-cart,
.quickorder-page .quickorder-payment-checkout #opc-sidebar .opc-block-shipping-information {
  display: none !important;
}

@media (max-width: 768px) {
  .quickorder-page .quickorder-payment-checkout .quickorder-checkout-container {
    flex-direction: column;
  }

  .quickorder-page .quickorder-payment-checkout #opc-sidebar {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    order: 0;
  }

  .quickorder-page .quickorder-payment-checkout .opc-wrapper {
    width: 100%;
    order: 1;
  }

  .quickorder-page .quickorder-payment-checkout #opc-sidebar .opc-block-summary .title {
    cursor: pointer;
  }

  .quickorder-page .quickorder-payment-checkout #opc-sidebar .opc-block-summary .title::after {
    content: '-';
    float: right;
    font-weight: 700;
    line-height: 1;
  }

  .quickorder-page .quickorder-payment-section.quickorder-summary-collapsed #opc-sidebar .opc-block-summary table,
  .quickorder-page .quickorder-payment-section.quickorder-summary-collapsed #opc-sidebar .discount-code {
    display: none !important;
  }

  .quickorder-page .quickorder-payment-section.quickorder-summary-collapsed #opc-sidebar .opc-block-summary .title::after {
    content: '+';
  }
}

.quickorder-page .quickorder-submit-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.quickorder-page .item-options {
  margin-top: 6px;
  font-size: 12px;
}

.quickorder-page .item-options dt {
  font-weight: 600;
}

.quickorder-page .item-options dd {
  margin: 0 0 4px;
}

.quickorder-page .tier-price-trigger {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #007bdb;
  cursor: pointer;
}

.quickorder-tier-tooltip {
  max-width: 280px;
}

.quickorder-tier-tooltip .tier-price-table {
  width: 100%;
  border-collapse: collapse;
}

.quickorder-tier-tooltip th,
.quickorder-tier-tooltip td {
  padding: 4px 6px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 12px;
}

.quickorder-configurable-modal .modal-inner-wrap {
  max-width: 500px;
}

.quickorder-bundle-modal .modal-inner-wrap {
  max-width: 640px;
}

.configurable-options-wrapper {
  padding: 10px 0;
}

.configurable-options-wrapper .configurable-parent-qty-field {
  max-width: 140px;
  margin-bottom: 16px;
}

.configurable-options-wrapper .configurable-parent-qty {
  text-align: center;
}

.configurable-options-wrapper .field {
  margin-bottom: 20px;
}

.configurable-options-wrapper .field .label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.configurable-options-wrapper .control {
  margin-top: 5px;
}

.configurable-options-wrapper .swatch-attribute {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.configurable-options-wrapper .swatch-option {
  min-width: 32px;
  min-height: 32px;
  padding: 5px 10px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s ease;
  background-size: cover;
  background-position: center;
}

.configurable-options-wrapper .swatch-option:hover {
  border-color: #1979c3;
}

.configurable-options-wrapper .swatch-option:focus {
  outline: none;
  border-color: #1979c3;
  box-shadow: 0 0 0 3px rgba(25, 121, 195, 0.4);
}

.configurable-options-wrapper .swatch-option:focus-visible {
  outline: 2px solid #1979c3;
  outline-offset: 2px;
}

.configurable-options-wrapper .swatch-option.selected {
  border-color: #1979c3;
  box-shadow: 0 0 0 2px rgba(25, 121, 195, 0.3);
}

.configurable-options-wrapper .swatch-option.color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
}

.configurable-options-wrapper .swatch-option.color.selected {
  border-width: 3px;
}

.configurable-options-wrapper .swatch-option.image {
  width: 48px;
  height: 48px;
  padding: 0;
}

.configurable-options-wrapper .swatch-option.text {
  min-width: auto;
  padding: 6px 14px;
  background: #f5f5f5;
}

.configurable-options-wrapper .swatch-option.text.selected {
  background: #e3f2fd;
}

.configurable-options-wrapper .configurable-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
}

.configurable-options-wrapper .configurable-select:focus {
  border-color: #1979c3;
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 121, 195, 0.2);
}

.configurable-price-display {
  padding: 15px;
  margin-top: 15px;
  background: #f9f9f9;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
}

.configurable-price-display .price-label {
  color: #666;
  margin-right: 5px;
}

.configurable-price-display .price-value {
  font-weight: 700;
  color: #1979c3;
}

.bundle-options-wrapper {
  padding: 10px 0;
}

.bundle-options-wrapper .product-name {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
}

.bundle-options-wrapper .bundle-parent-qty-field {
  max-width: 140px;
  margin-bottom: 16px;
}

.bundle-options-wrapper .bundle-parent-qty {
  text-align: center;
}

.bundle-options-wrapper .bundle-option {
  margin-bottom: 18px;
}

.bundle-options-wrapper .bundle-option .label {
  display: block;
  margin-bottom: 8px;
}

.bundle-options-wrapper .bundle-option .label span {
  font-weight: 600;
}

.bundle-options-wrapper .bundle-option .control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bundle-options-wrapper .bundle-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
  align-items: center;
}

.bundle-options-wrapper .bundle-radio,
.bundle-options-wrapper .bundle-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 84px;
  gap: 8px;
  align-items: center;
}

.bundle-options-wrapper .bundle-selection-qty {
  width: 100%;
  text-align: center;
}

.quickorder-page .product-type-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

.quickorder-page .product-type-badge.configurable {
  background: #e3f2fd;
  color: #1565c0;
}

.quickorder-page .product-type-badge.bundle {
  background: #ede7f6;
  color: #4527a0;
}

.quickorder-page .csv-example {
  background: #f9f9f9;
  border: 1px dashed #ddd;
  padding: 8px;
  margin-top: 8px;
  font-size: 12px;
  white-space: pre;
}

.bulk-import-modal-popup .modal-inner-wrap {
  max-width: 700px;
}

.bulk-import-content {
  position: relative;
}

.bulk-import-step {
  padding: 10px 0;
}

.step-header {
  margin-bottom: 20px;
}

.step-header h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.step-description {
  color: #666;
  margin: 0;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.paste-section .label,
.file-section .label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.paste-section textarea {
  width: 100%;
  min-height: 150px;
  font-family: monospace;
  font-size: 13px;
}

.paste-section .note {
  margin-top: 5px;
  font-size: 12px;
  color: #888;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #888;
}

.separator:before,
.separator:after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.separator span {
  padding: 0 15px;
  font-size: 13px;
  text-transform: uppercase;
}

.file-drop-zone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.2s ease;
  background: #fafafa;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: #1979c3;
  background: #f0f8ff;
}

.file-drop-zone.has-file {
  border-color: #5cb85c;
  background: #f0fff0;
}

.file-drop-zone .drop-icon:before {
  font-family: 'luma-icons';
  content: '\e622';
  font-size: 32px;
  color: #999;
  display: block;
  margin-bottom: 10px;
}

.file-drop-zone p {
  margin: 5px 0;
  color: #666;
}

.file-drop-zone .or-text {
  font-size: 12px;
  color: #999;
}

.file-drop-zone .browse-btn {
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
}

.file-drop-zone .hidden-file-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.file-drop-zone .file-name {
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.step-actions .action-buttons {
  display: flex;
  gap: 10px;
}

.step-actions .download-template {
  font-size: 13px;
}

.preview-summary {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.preview-summary .count-valid {
  color: #5cb85c;
  font-weight: 600;
}

.preview-summary .count-invalid {
  color: #d9534f;
  font-weight: 600;
}

.import-mode-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.import-mode-section .label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.mode-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mode-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.mode-option input {
  margin: 0;
}

.preview-table-wrapper {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.preview-table {
  margin: 0;
  width: 100%;
}

.preview-table th {
  position: sticky;
  top: 0;
  background: #f5f5f5;
  z-index: 1;
}

.preview-table .status-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
}

.preview-table .status-valid {
  background: #dff0d8;
  color: #3c763d;
}

.preview-table .status-invalid {
  background: #f2dede;
  color: #a94442;
}

.preview-table .row-invalid {
  background: #fff5f5;
}

.preview-table .action-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #d9534f;
}

.preview-table .action-remove:hover {
  color: #c9302c;
}

.preview-table .remove-icon:before {
  font-family: 'luma-icons';
  content: '\e604';
  font-size: 14px;
}

.bulk-import-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.bulk-import-loading .loading-indicator {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #1979c3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.bulk-import-loading .loading-text {
  margin-top: 15px;
  color: #666;
}

.quickorder-catalog-modal-popup .modal-inner-wrap {
  max-width: 900px;
}

.quickorder-catalog-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quickorder-catalog-toolbar .quickorder-catalog-search-field {
  margin: 0;
}

.quickorder-catalog-table-wrapper {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.quickorder-catalog-table {
  margin: 0;
  width: 100%;
}

.quickorder-catalog-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f5f5;
}

.quickorder-catalog-table th.sortable {
  padding: 0;
}

.quickorder-catalog-table .catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.quickorder-catalog-table .catalog-sort .sort-indicator {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #999;
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.quickorder-catalog-table .catalog-sort.is-active .sort-indicator {
  opacity: 1;
}

.quickorder-catalog-table .catalog-sort.is-active.sort-dir-asc .sort-indicator {
  transform: rotate(180deg);
}

.quickorder-catalog-table td.col.select {
  width: 46px;
  text-align: center;
}

.quickorder-catalog-table th.col.image,
.quickorder-catalog-table td.col.image {
  width: 72px;
  text-align: center;
}

.quickorder-catalog-table .catalog-product-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.quickorder-catalog-table td.col.sku {
  white-space: nowrap;
}

.quickorder-catalog-table .catalog-sku-value {
  display: block;
}

.quickorder-catalog-table .catalog-pending-options {
  margin-top: 6px;
  white-space: normal;
}

.quickorder-catalog-table .catalog-item-options {
  margin: 0 0 4px;
}

.quickorder-catalog-table .catalog-item-options:last-child {
  margin-bottom: 0;
}

.quickorder-catalog-table .catalog-item-options dt {
  font-weight: 600;
  font-size: 12px;
  color: #3a3a3a;
  margin: 0;
}

.quickorder-catalog-table .catalog-item-options dd {
  margin: 0 0 2px;
  font-size: 12px;
  color: #4f4f4f;
  word-break: break-word;
}

.quickorder-catalog-table td.col.price {
  white-space: normal;
  min-width: 132px;
}

.quickorder-catalog-table .price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.quickorder-catalog-table .price-row .catalog-price-value {
  font-weight: 600;
}

.quickorder-catalog-table .price-tier-row {
  line-height: 1;
}

.quickorder-catalog-table .catalog-tier-price-trigger {
  margin-left: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #007bdb;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: underline;
  cursor: pointer;
}

.quickorder-catalog-table td.col.qty {
  width: 92px;
}

.quickorder-catalog-table .catalog-qty {
  width: 70px;
  text-align: center;
}

.quickorder-catalog-table .catalog-note {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.quickorder-catalog-table .catalog-note-added {
  color: #0a7d26;
  font-weight: 600;
}

.quickorder-catalog-table .catalog-note-pending {
  color: #005f8a;
  font-weight: 600;
}

.quickorder-catalog-table .catalog-configure {
  margin-top: 8px;
}

.quickorder-catalog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quickorder-catalog-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quickorder-catalog-pagination .page-info {
  min-width: 64px;
  text-align: center;
  font-weight: 600;
}

.quickorder-catalog-actions {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  margin-left: 12px;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .quickorder-page .fieldset {
    padding: 12px;
  }

  .quickorder-page .quote-items-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quickorder-page .quote-items-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quickorder-page .quote-items-actions .action {
    width: 100%;
    margin: 0;
    justify-content: center;
  }

  .quickorder-page .quote-items-actions .search-catalog-btn {
    grid-column: 1 / -1;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new thead {
    display: none;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new tbody,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new tr,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new tr {
    margin-bottom: 1rem;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td {
    padding: 6px 0 !important;
    border: none !important;
    text-align: left !important;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td::before {
    content: attr(data-th) !important;
    display: block !important;
    float: none !important;
    font-weight: 600;
    margin: 0 0 2px !important;
    font-size: 11px !important;
    color: #666;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.item {
    padding-top: 2px !important;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.item .product-item-name {
    display: block;
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.image .product-thumb {
    width: 56px;
    height: 56px;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.sku {
    padding-top: 4px !important;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.qty .qty-input {
    max-width: 88px;
    min-height: 36px;
    margin-left: 0 !important;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.qty,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.price,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.subtotal,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.actions {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-right: 0;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.qty::before,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.price::before,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.subtotal::before,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.actions::before {
    margin-bottom: 0;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.price .price-row,
  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.subtotal .subtotal-row {
    margin-left: auto;
    text-align: right;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new > tbody > tr > td.col.actions::before {
    margin-bottom: 0;
  }

  .quickorder-page .table-wrapper.quote-items .table.table-quote-items-new .remove-item {
    width: 38px;
    height: 38px;
    margin-left: 0 !important;
  }

  .quickorder-page .table-quote-items-new tfoot,
  .quickorder-page .table-quote-items-new tfoot tr,
  .quickorder-page .table-quote-items-new tfoot th,
  .quickorder-page .table-quote-items-new tfoot td {
    display: block;
    width: 100%;
  }

  .quickorder-page .table-quote-items-new tfoot tr {
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f8f8;
  }

  .quickorder-page .table-quote-items-new tfoot th.mark {
    padding: 0;
    border: none;
    font-size: 14px;
    margin-bottom: 4px;
  }

  .quickorder-page .table-quote-items-new tfoot td.amount {
    padding: 0;
    border: none;
    text-align: left;
  }

  .quickorder-page .table-wrapper.quote-items {
    overflow-x: hidden;
  }

  .quickorder-page .quickorder-submit-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quickorder-page .quickorder-submit-actions .action {
    width: 100%;
    justify-content: center;
  }

  .quickorder-page .fields-row.two-columns {
    flex-direction: column;
  }

  .quickorder-catalog-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .quickorder-catalog-modal-popup .modal-inner-wrap {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: 92vh;
    margin: 8px auto;
  }

  .quickorder-catalog-content {
    gap: 10px;
  }

  .quickorder-catalog-table-wrapper {
    max-height: 52vh;
    border: none;
  }

  .quickorder-catalog-table {
    display: block;
  }

  .quickorder-catalog-table thead {
    display: none;
  }

  .quickorder-catalog-table tbody,
  .quickorder-catalog-table tr,
  .quickorder-catalog-table td {
    display: block;
    width: 100%;
  }

  .quickorder-catalog-table tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
  }

  .quickorder-catalog-table td {
    padding: 6px 0;
    border: none;
  }

  .quickorder-catalog-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #666;
    margin-bottom: 4px;
  }

  .quickorder-catalog-table td.col.select,
  .quickorder-catalog-table td.col.image {
    text-align: left;
  }

  .quickorder-catalog-table td.col.select {
    width: 100%;
  }

  .quickorder-catalog-table td.col.image {
    width: 100%;
  }

  .quickorder-catalog-table .catalog-product-image {
    width: 72px;
    height: 72px;
  }

  .quickorder-catalog-table td.col.qty {
    width: 100%;
  }

  .quickorder-catalog-table .catalog-qty {
    width: 100%;
    max-width: 120px;
  }

  .quickorder-catalog-table .catalog-configure {
    width: 100%;
  }

  .quickorder-catalog-pagination {
    justify-content: space-between;
  }

  .quickorder-catalog-actions {
    margin-left: 0;
    width: 100%;
    flex: 0 0 100%;
    justify-content: space-between;
  }
}
