.b2b-order-form-wrapper {
  max-width: none;
  width: auto;
  margin: 0;
  background: #ffffff;
  border: 1px solid #e9edf5;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 20px;
}

.b2b-order-search {
  position: relative;
  margin-bottom: 18px;
}

.b2b-search-input-wrap {
  position: relative;
}

#b2b-product-search {
  width: 100%;
  height: 54px;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  padding: 10px 44px 10px 44px;
  font-size: 16px;
  background: #fbfcff;
}

#b2b-product-search:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.b2b-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
  pointer-events: none;
}

.b2b-inline-spinner {
  position: absolute;
  right: 14px;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: b2b-spin 0.8s linear infinite;
  display: none;
  pointer-events: none;
}

.b2b-inline-spinner.is-active {
  display: inline-block;
}

.b2b-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
  display: none;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.b2b-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eef2f7;
}

.b2b-result-item:last-child {
  border-bottom: 0;
}

.b2b-result-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2b-result-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.b2b-result-item:hover {
  background: #f8fafc;
}

.b2b-result-item.is-variable strong {
  color: #1e40af;
}

.b2b-order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 16px;
  border: 1px solid #e9edf5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  background: #fff;
}

.b2b-order-table th,
.b2b-order-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.b2b-order-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
}

.b2b-order-table tr:last-child td {
  border-bottom: 0;
}

.b2b-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2b-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.b2b-order-table .b2b-qty-input {
  width: 96px;
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  padding: 8px 10px;
}

.b2b-line-variation-wrap {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.b2b-line-variation-field {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  gap: 4px;
}

.b2b-line-variation-field span {
  font-size: 12px;
  color: #475569;
}

.b2b-line-variation-select {
  border: 1px solid #d4dbe8;
  border-radius: 8px;
  min-height: 34px;
}

.b2b-order-total-row th {
  background: #f8fafc;
  font-weight: 700;
}

.b2b-order-message {
  margin-top: 14px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 14px;
  display: none;
}

.b2b-order-message.success,
.b2b-order-message.error {
  display: block;
}

.b2b-order-message.success {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #9ae6b4;
}

.b2b-order-message.error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.b2b-payment-method-wrap {
  margin: 0 0 16px;
}

.b2b-payment-method-wrap select {
  min-width: 280px;
  margin-top: 6px;
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.b2b-shipping-wrap {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.b2b-shipping-wrap h4 {
  margin: 0 0 10px;
}

.b2b-shipping-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.b2b-shipping-grid p {
  margin: 0;
}

.b2b-shipping-grid label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.b2b-shipping-grid input {
  width: 100%;
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  padding: 8px 10px;
}

.b2b-shipping-grid-wide {
  grid-column: span 2;
}

.b2b-address-section {
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.b2b-address-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.b2b-address-card summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.b2b-address-card summary::-webkit-details-marker {
  display: none;
}

.b2b-address-summary {
  color: #475569;
  font-size: 13px;
}

.b2b-address-edit {
  color: #1d4ed8;
  font-weight: 600;
  font-size: 13px;
}

#b2b-submit-order.button.button-primary {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 18px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.b2b-order-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

#b2b-submit-order.button.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.32);
}

#b2b-submit-order.is-loading {
  position: relative;
  opacity: 0.92;
}

.button.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(100, 116, 139, 0.35);
  border-top-color: #2563eb;
  border-radius: 999px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  animation: b2b-spin 0.8s linear infinite;
}

#b2b-submit-order.is-loading::after {
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-top-color: #ffffff;
}

.b2b-row-added {
  animation: b2b-row-highlight 1.2s ease;
}

@keyframes b2b-row-highlight {
  0% { background: #ecfeff; }
  100% { background: transparent; }
}

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

.b2b-purchase-order-portal {
  max-width: 640px;
}

.b2b-purchase-order-on-payment-methods {
  margin-top: 28px;
  scroll-margin-top: 24px;
}

.b2b-purchase-order-portal__actions {
  margin-top: 12px;
}

.b2b-purchase-order-portal__inner {
  margin-top: 8px;
}

.b2b-portal-po-cta {
  margin-top: 16px;
}

.b2b-portal-po-cta .button {
  width: 100%;
  text-align: center;
}

.b2b-portal-legal-terms-page--modern {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.b2b-portal-legal-terms-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid #e3e5e8;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.04);
}

.b2b-portal-legal-terms-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eff4ff;
  color: #1d4ed8;
  flex: 0 0 auto;
}

.b2b-portal-legal-terms-hero__icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.b2b-portal-legal-terms-hero__body {
  flex: 1 1 auto;
  min-width: 0;
}

.b2b-portal-legal-terms-hero__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.b2b-portal-legal-terms-hero__lead {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

.b2b-portal-legal-terms-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 13px;
}

.b2b-portal-legal-terms-page__note {
  margin: 0;
}

.b2b-portal-legal-terms-category--modern {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.b2b-portal-legal-terms-category--modern .b2b-portal-legal-terms-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 20px;
}

.b2b-portal-legal-terms-category--modern .b2b-portal-legal-terms-pending {
  margin-top: 14px;
  border-radius: 12px;
}

.b2b-purchase-order-portal__lead {
  margin-bottom: 1.25rem;
  color: #475569;
}

.b2b-purchase-order-portal__status {
  display: grid;
  gap: 12px;
  margin: 0 0 1.25rem;
}

.b2b-purchase-order-portal__status div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px;
  align-items: baseline;
}

.b2b-purchase-order-portal__status dt {
  margin: 0;
  font-weight: 600;
  color: #334155;
}

.b2b-purchase-order-portal__status dd {
  margin: 0;
}

.b2b-purchase-order-upload-form {
  margin-top: 1rem;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.b2b-partner-sub-users {
  max-width: 920px;
}

.b2b-partner-sub-users__lead {
  margin-bottom: 1.25rem;
  color: #475569;
}

.b2b-partner-sub-users__form p {
  margin-bottom: 12px;
}

.b2b-partner-sub-users__table {
  margin-top: 16px;
}

.b2b-partner-sub-users__inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.b2b-partner-sub-users__inline-form input[type="password"] {
  max-width: 180px;
}

.b2b-sub-user-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .b2b-sub-user-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .b2b-sub-user-cards {
    grid-template-columns: 1fr;
  }
}

.b2b-sub-user-card {
  background: #fff;
  border: 1px solid #e3e5e8;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.b2b-sub-user-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef2f7;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}

.b2b-sub-user-card__name {
  margin: 0 0 6px;
  font-size: 1rem;
}

.b2b-sub-user-card__meta {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.b2b-sub-user-card__edit,
.b2b-sub-user-card__delete {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.b2b-sub-user-card__edit select,
.b2b-sub-user-card__edit input[type="password"] {
  max-width: 100%;
  flex: 1 1 140px;
}

.b2b-partner-notification-email__actions {
  margin-top: 12px;
}

.b2b-partner-notification-email__action-select {
  width: 100%;
  max-width: 100%;
}

.b2b-partner-notification-email__form-panel {
  margin-top: 12px;
}

.b2b-partner-notification-email__form-panel[hidden] {
  display: none !important;
}

.b2b-order-form--modern .b2b-order-section--cart .b2b-order-section__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 769px) {
  .b2b-order-form--modern .b2b-order-section--cart .b2b-order-section__search {
    order: 0;
  }

  .b2b-order-form--modern .b2b-order-section--cart .b2b-order-table-wrap {
    order: 1;
  }
}

@media (max-width: 768px) {
  .b2b-order-form--modern .b2b-order-section--cart .b2b-order-table-wrap {
    order: 1;
  }

  .b2b-order-form--modern .b2b-order-section--cart .b2b-order-section__search {
    order: 2;
  }
}

.b2b-order-section--recurring {
  margin-top: 16px;
}

.b2b-portal-recurring-create-actions {
  margin-top: 12px;
}

.b2b-portal-recurring-create-panel[hidden] {
  display: none !important;
}

.b2b-partner-notification-email {
  margin-top: 28px;
  scroll-margin-top: 24px;
}

.b2b-partner-notification-email__lead {
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.92rem;
}

.b2b-partner-notification-email__form p {
  margin-bottom: 12px;
}

.b2b-partner-notification-email__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.b2b-partner-notification-email__form .input-text {
  width: 100%;
  max-width: 100%;
}

.b2b-partner-notification-email__value {
  margin: 0;
}

/* ----- Naročilnica — moderna postavitev (samo .b2b-order-form--modern) ----- */
.b2b-order-form-wrapper.b2b-order-form--modern {
  --b2b-order-accent: #2563eb;
  --b2b-order-border: #e3e5e8;
  --b2b-order-muted: #64748b;
  --b2b-order-radius: 14px;
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.woocommerce-account .woocommerce-MyAccount-content .b2b-order-form-wrapper.b2b-order-form--modern {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content:has(.b2b-order-form--modern) {
  overflow: visible;
}

.b2b-order-form--modern .b2b-order-section {
  background: #fff;
  border: 1px solid var(--b2b-order-border);
  border-radius: var(--b2b-order-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 18px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.b2b-order-form--modern .b2b-order-section--cart.b2b-order-search-active {
  z-index: 50;
  overflow: visible;
}

.b2b-order-form--modern .b2b-order-section__search.b2b-order-search-active {
  z-index: 60;
}

.b2b-order-form--modern .b2b-order-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f2;
  background: linear-gradient(180deg, #fcfcfd 0%, #f8f9fb 100%);
}

.b2b-order-form--modern .b2b-order-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2f7;
  color: #50575e;
  flex: 0 0 auto;
}

.b2b-order-form--modern .b2b-order-section--cart .b2b-order-section__icon {
  background: #ecfdf5;
  color: #15803d;
}

.b2b-order-form--modern .b2b-order-section--addresses .b2b-order-section__icon {
  background: #fff7ed;
  color: #c2410c;
}

.b2b-order-form--modern .b2b-order-section__icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.b2b-order-form--modern .b2b-order-section__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d2327;
}

.b2b-order-form--modern .b2b-order-section__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eff4ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.15);
  white-space: nowrap;
}

.b2b-order-form--modern .b2b-order-section__body {
  padding: 16px 18px;
}

.b2b-order-form--modern .b2b-order-section__search {
  position: relative;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 14px;
  border-top: 0;
  border-bottom: 1px solid #eef0f2;
}

.b2b-order-form--modern .b2b-order-section__search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
}

.b2b-order-form--modern .b2b-order-section__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff4ff;
  color: #1d4ed8;
  flex: 0 0 auto;
}

.b2b-order-form--modern .b2b-order-section__search-icon .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.b2b-order-form--modern .b2b-order-search {
  margin-bottom: 0;
}

.b2b-order-form--modern .b2b-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  color: var(--b2b-order-muted);
}

.b2b-order-form--modern .b2b-search-icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.b2b-order-form--modern #b2b-product-search {
  background: #fbfcff;
}

.b2b-order-form--modern .b2b-search-results {
  z-index: 60;
}

.b2b-order-form--modern .b2b-order-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.b2b-order-form--modern .b2b-order-table {
  margin-bottom: 0;
  border-color: #eef0f2;
  box-shadow: none;
}

.b2b-order-form--modern .b2b-order-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--b2b-order-muted);
  background: #f8fafc;
}

.b2b-order-form--modern .b2b-order-table tbody tr:not(.b2b-empty-row) {
  transition: background 0.15s ease;
}

.b2b-order-form--modern .b2b-order-table tbody tr:not(.b2b-empty-row):hover {
  background: #fbfdff;
}

.b2b-order-form--modern .b2b-order-table tbody tr:not(.b2b-empty-row):hover td {
  background: transparent;
}

.b2b-order-form--modern .b2b-empty-row td {
  text-align: center;
  color: var(--b2b-order-muted);
  font-size: 14px;
  padding: 28px 16px;
  background: #f8fafc;
}

.b2b-order-form--modern .b2b-order-total-row th {
  font-size: 14px;
  color: #1d2327;
}

.b2b-order-form--modern .b2b-order-total-row th:last-child {
  font-size: 16px;
  color: #1d4ed8;
}

.b2b-order-form--modern .b2b-order-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
}

.b2b-order-form--modern .b2b-order-delivery-choice-select,
.b2b-order-form--modern .b2b-line-variation-select {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
}

.b2b-order-form--modern .b2b-order-delivery-choice-select:focus,
.b2b-order-form--modern .b2b-line-variation-select:focus {
  outline: none;
  border-color: var(--b2b-order-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.b2b-order-form--modern .b2b-order-field-help {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--b2b-order-muted);
  line-height: 1.45;
}

.b2b-order-form--modern .b2b-address-section {
  margin: 0;
  gap: 12px;
}

.b2b-order-form--modern .b2b-address-card {
  border-color: #eef0f2;
  border-radius: 11px;
}

.b2b-order-form--modern .b2b-address-card summary {
  padding: 14px 16px;
}

.b2b-order-form--modern .b2b-shipping-wrap {
  border: 0;
  border-top: 1px solid #eef0f2;
  border-radius: 0;
  background: #f8fafc;
}

.b2b-order-form--modern .b2b-shipping-grid input {
  min-height: 40px;
  font-size: 14px;
}

.b2b-order-form--modern .b2b-order-form__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--b2b-order-border);
  border-radius: var(--b2b-order-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 18px rgba(16, 24, 40, 0.05);
}

.b2b-order-form--modern .b2b-order-actions {
  justify-content: flex-end;
}

.b2b-order-form--modern #b2b-submit-order.button.button-primary {
  min-width: 200px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
}

.b2b-order-form--modern .b2b-order-message {
  margin-top: 0;
}

.b2b-order-form--modern .b2b-remove-item {
  border-radius: 8px;
  font-size: 13px;
}

@media (min-width: 769px) {
  .b2b-order-form-wrapper.b2b-order-form--modern {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
      "cart addresses"
      "cart footer";
    gap: 20px;
    align-items: start;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-section--cart {
    grid-area: cart;
    min-width: 0;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-section--addresses {
    grid-area: addresses;
    min-width: 0;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-form__footer {
    grid-area: footer;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-form__footer .b2b-order-message {
    flex: none;
    margin-right: 0;
    margin-bottom: 0;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-form__footer .b2b-order-actions {
    margin-left: 0;
    justify-content: stretch;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern #b2b-submit-order.button.button-primary {
    width: 100%;
    min-width: 0;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-section__title {
    font-size: 13px;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-section__pill {
    padding: 6px 14px;
    font-size: 13px;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-section__head {
    padding: 16px 20px;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-section__body {
    padding: 18px 20px 20px;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-section__search {
    margin-top: 22px;
    padding-top: 22px;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern #b2b-product-search {
    height: 52px;
    font-size: 15px;
    border-radius: 12px;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table {
    display: table;
    width: 100%;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table thead {
    display: table-header-group;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table tbody {
    display: table-row-group;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table tfoot {
    display: table-footer-group;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table tr {
    display: table-row;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table th,
  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table td {
    display: table-cell;
    padding: 14px 16px;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table tbody td::before {
    display: none;
    content: none;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table tbody tr {
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table tbody tr:not(.b2b-empty-row) td {
    border-bottom: 1px solid #edf2f7;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-total-row {
    display: table-row;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-total-row th {
    display: table-cell;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-total-row th:first-child,
  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-total-row th:nth-child(2) {
    display: table-cell;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table-wrap {
    overflow-x: auto;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-address-section {
    grid-template-columns: 1fr;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-delivery-choice-wrap {
    grid-column: auto;
  }

  .b2b-order-form-wrapper.b2b-order-form--modern .b2b-shipping-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .b2b-order-form-wrapper:not(.b2b-order-form--modern) {
    padding: 14px;
    border-radius: 12px;
  }

  .b2b-order-form-wrapper:not(.b2b-order-form--modern) .b2b-order-table {
    display: block;
    overflow-x: auto;
  }

  .b2b-order-form-wrapper:not(.b2b-order-form--modern) .b2b-order-table th,
  .b2b-order-form-wrapper:not(.b2b-order-form--modern) .b2b-order-table td {
    white-space: nowrap;
  }

  .b2b-order-form--modern {
    gap: 12px;
  }

  .b2b-order-form--modern .b2b-order-section__head {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .b2b-order-form--modern .b2b-order-section__pill {
    margin-left: auto;
  }

  .b2b-order-form--modern .b2b-order-section__body {
    padding: 14px;
  }

  .b2b-order-form--modern .b2b-order-section__search {
    margin-top: 14px;
    padding-top: 14px;
    padding-bottom: 0;
    border-top: 1px solid #eef0f2;
    border-bottom: 0;
  }

  .b2b-order-form--modern #b2b-product-search {
    height: 48px;
    font-size: 16px;
  }

  .b2b-order-form--modern .b2b-order-table-wrap {
    overflow: visible;
  }

  .b2b-order-form--modern .b2b-order-table,
  .b2b-order-form--modern .b2b-order-table tbody,
  .b2b-order-form--modern .b2b-order-table tfoot,
  .b2b-order-form--modern .b2b-order-table tr {
    display: block;
    width: 100%;
  }

  .b2b-order-form--modern .b2b-order-table thead {
    display: none;
  }

  .b2b-order-form--modern .b2b-order-table tbody tr {
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  }

  .b2b-order-form--modern .b2b-order-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .b2b-order-form--modern .b2b-order-table tbody td {
    display: grid;
    grid-template-columns: minmax(96px, 38%) 1fr;
    gap: 6px 12px;
    align-items: center;
    padding: 8px 0;
    border: 0;
    white-space: normal;
  }

  .b2b-order-form--modern .b2b-order-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--b2b-order-muted);
  }

  .b2b-order-form--modern .b2b-order-table tbody td:first-child {
    display: block;
    padding-top: 0;
  }

  .b2b-order-form--modern .b2b-order-table tbody td:first-child::before {
    display: none;
  }

  .b2b-order-form--modern .b2b-order-table .b2b-product-cell {
    align-items: flex-start;
  }

  .b2b-order-form--modern .b2b-order-table .b2b-qty-input {
    width: 100%;
    max-width: 120px;
  }

  .b2b-order-form--modern .b2b-line-variation-field {
    min-width: 0;
    width: 100%;
  }

  .b2b-order-form--modern .b2b-empty-row td {
    display: block;
    text-align: center;
    padding: 20px 12px;
    color: var(--b2b-order-muted);
  }

  .b2b-order-form--modern .b2b-empty-row td::before {
    display: none;
  }

  .b2b-order-form--modern .b2b-order-total-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    margin-top: 4px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef0f2;
  }

  .b2b-order-form--modern .b2b-order-total-row th {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .b2b-order-form--modern .b2b-order-total-row th:first-child,
  .b2b-order-form--modern .b2b-order-total-row th:nth-child(2) {
    display: none;
  }

  .b2b-order-form--modern .b2b-order-form__footer {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-bottom: 8px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.1);
  }

  .b2b-order-form--modern .b2b-order-actions {
    justify-content: stretch;
  }

  .b2b-order-form--modern #b2b-submit-order.button.button-primary {
    width: 100%;
    min-width: 0;
  }

  .b2b-payment-method-wrap select {
    width: 100%;
    min-width: 0;
  }

  .b2b-shipping-grid {
    grid-template-columns: 1fr;
  }

  .b2b-shipping-grid-wide {
    grid-column: auto;
  }

  .b2b-dashboard-highlights {
    grid-template-columns: 1fr;
  }
}


/* Legacy wrapper (npr. obrazec za prijavo podjetja) */
.b2b-portal-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

/* ----- Nadzorna plošča B2B ----- */
.b2b-portal-dashboard {
  --b2b-portal-bg: #ffffff;
  --b2b-portal-surface: #ffffff;
  --b2b-portal-border: rgba(15, 23, 42, 0.08);
  --b2b-portal-text: #0f172a;
  --b2b-portal-muted: #64748b;
  --b2b-portal-accent: #2563eb;
  --b2b-portal-accent-soft: rgba(37, 99, 235, 0.12);
  --b2b-portal-radius: 16px;
  --b2b-portal-radius-sm: 12px;
  --b2b-portal-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.06);

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--b2b-portal-text);
  box-sizing: border-box;
}

.b2b-portal-dashboard:not(.b2b-portal-dashboard--sales-portal) {
  max-width: 1140px;
  margin: 0 auto 2.25rem;
  padding: 0 16px;
}

.b2b-portal-dashboard--sales-portal,
.b2b-sales.b2b-sales-home.b2b-portal-dashboard--sales-portal {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.b2b-portal-dashboard *,
.b2b-portal-dashboard *::before,
.b2b-portal-dashboard *::after {
  box-sizing: border-box;
}

.b2b-portal-dashboard--embedded {
  margin-bottom: 1.5rem;
}

/* B2B portal — brez lastne širinske ovojnice */
body.b2b-sales-portal-page .woocommerce-MyAccount-content .b2b-portal-dashboard--sales-portal,
body.b2b-sales-portal-page .b2b-portal-dashboard--sales-portal,
body.b2b-sales-portal-page .b2b-sales-home.b2b-portal-dashboard--sales-portal,
body.b2b-sales-portal-page .woocommerce-MyAccount-content .b2b-sales-home,
.woocommerce-account .woocommerce-MyAccount-content .b2b-portal-dashboard--woo-account {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  min-width: 0;
  box-sizing: border-box;
}

body.woocommerce-account.b2b-wc-account-modern-nav .woocommerce-MyAccount-content .b2b-portal-dashboard__shell,
body.woocommerce-account.b2b-wc-account-modern-nav .woocommerce-MyAccount-content .b2b-portal-dashboard__layout,
body.woocommerce-account.b2b-wc-account-modern-nav .woocommerce-MyAccount-content .b2b-portal-rules-grid {
  min-width: 0;
}

.b2b-portal-dashboard__shell {
  max-width: none;
  width: auto;
}

.b2b-portal-dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 24px 26px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #eef2ff 100%);
  border: 1px solid var(--b2b-portal-border);
  border-radius: var(--b2b-portal-radius);
  box-shadow: var(--b2b-portal-shadow);
}

.b2b-portal-dashboard__header--compact {
  padding: 18px 22px;
  margin-bottom: 20px;
}

.b2b-portal-dashboard__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--b2b-portal-text);
}

.b2b-portal-dashboard__header--compact .b2b-portal-dashboard__title {
  font-size: 1.28rem;
}

.b2b-portal-dashboard__subtitle {
  margin: 0;
  color: var(--b2b-portal-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.b2b-portal-dashboard__badge {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #3730a3;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
}

.b2b-portal-dashboard__layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
}

.b2b-portal-dashboard__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.b2b-portal-dashboard__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 961px) {
  .b2b-portal-dashboard__aside .b2b-portal-quick-actions--aside {
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
  }
}

@media (max-width: 960px) {
  .b2b-portal-dashboard__layout {
    grid-template-columns: 1fr;
  }

  .b2b-portal-dashboard__aside {
    order: -1;
  }
}

@media (max-width: 560px) {
  .b2b-portal-dashboard:not(.b2b-portal-dashboard--sales-portal) {
    padding: 0 12px;
  }

  .b2b-portal-dashboard__header {
    flex-direction: column;
    align-items: stretch;
  }

  .b2b-portal-dashboard__badge {
    align-self: flex-start;
  }
}

/* CRM-style kartice na partnerski nadzorni plošči */
.b2b-portal-dashboard .b2b-portal-rules-section {
  margin-bottom: 18px;
}

.b2b-portal-quick-actions {
  margin-bottom: 18px;
}

.b2b-portal-quick-actions--aside {
  margin-bottom: 0;
}

.b2b-portal-quick-actions--aside .b2b-portal-quick-actions__grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.b2b-portal-quick-actions--aside .b2b-portal-quick-action {
  padding: 14px 16px;
}

.b2b-portal-quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.b2b-portal-quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #e3e5e8;
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 18px rgba(16, 24, 40, 0.05);
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.15s ease;
}

.b2b-portal-quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 12px 28px rgba(16, 24, 40, 0.1);
  color: inherit;
}

.b2b-portal-quick-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.b2b-portal-quick-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.b2b-portal-quick-action__icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.b2b-portal-quick-action--order .b2b-portal-quick-action__icon {
  background: #eff4ff;
  color: #1d4ed8;
}

.b2b-portal-quick-action--manager .b2b-portal-quick-action__icon {
  background: #ecfdf5;
  color: #047857;
}

.b2b-portal-quick-action--products .b2b-portal-quick-action__icon {
  background: #fffbeb;
  color: #b45309;
}

.b2b-portal-quick-action--purchase-order .b2b-portal-quick-action__icon {
  background: #f0f9ff;
  color: #0369a1;
}

.b2b-portal-quick-action--notification .b2b-portal-quick-action__icon {
  background: #eef2ff;
  color: #4338ca;
}

.b2b-portal-quick-action__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.b2b-portal-quick-action__label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.b2b-portal-quick-action__hint {
  font-size: 12px;
  color: var(--b2b-portal-muted);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .b2b-portal-quick-actions:not(.b2b-portal-quick-actions--aside) .b2b-portal-quick-actions__grid {
    grid-template-columns: 1fr;
  }

  .b2b-portal-quick-actions--aside .b2b-portal-quick-actions__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .b2b-portal-quick-actions--aside .b2b-portal-quick-actions__grid {
    grid-template-columns: 1fr;
  }
}

.b2b-portal-dashboard .b2b-portal-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1024px) {
  .b2b-portal-dashboard .b2b-portal-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .b2b-portal-dashboard .b2b-portal-rules-grid {
    grid-template-columns: 1fr;
  }
}

.b2b-portal-dashboard .b2b-rules-card {
  background: #fff;
  border: 1px solid #e3e5e8;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 18px rgba(16, 24, 40, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.b2b-portal-dashboard .b2b-rules-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 12px 28px rgba(16, 24, 40, 0.1);
}

.b2b-portal-dashboard .b2b-rules-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f2;
  background: linear-gradient(180deg, #fcfcfd 0%, #f8f9fb 100%);
}

.b2b-portal-dashboard .b2b-rules-card-title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d2327;
  flex: 1 1 auto;
  min-width: 0;
}

.b2b-portal-dashboard .b2b-rules-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2f7;
  color: #50575e;
  flex: 0 0 auto;
}

.b2b-portal-dashboard .b2b-rules-card-icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.b2b-portal-dashboard .b2b-rules-card--ok .b2b-rules-card-icon,
.b2b-portal-dashboard .b2b-rules-card--eq-free .b2b-rules-card-icon {
  background: #e7f6ee;
  color: #15803d;
}

.b2b-portal-dashboard .b2b-rules-card--warning .b2b-rules-card-icon {
  background: #fdf3e1;
  color: #b45309;
}

.b2b-portal-dashboard .b2b-rules-card--review .b2b-rules-card-icon {
  background: #fff0e6;
  color: #c2410c;
}

.b2b-portal-dashboard .b2b-rules-card--critical .b2b-rules-card-icon,
.b2b-portal-dashboard .b2b-rules-card--eq-paid .b2b-rules-card-icon {
  background: #fdecec;
  color: #b91c1c;
}

.b2b-portal-dashboard .b2b-rules-card--volume .b2b-rules-card-icon,
.b2b-portal-dashboard .b2b-rules-card--crm-orders .b2b-rules-card-icon {
  background: #eff4ff;
  color: #1d4ed8;
}

.b2b-portal-dashboard .b2b-rules-card--crm-contract .b2b-rules-card-icon {
  background: #faf5ff;
  color: #7c3aed;
}

.b2b-portal-dashboard .b2b-rules-card--crm-partner .b2b-rules-card-icon {
  background: #ecfdf5;
  color: #047857;
}

.b2b-portal-dashboard .b2b-rules-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
}

.b2b-portal-dashboard .b2b-rules-card-section {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}

.b2b-portal-dashboard .b2b-rules-card-section__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #50575e;
}

.b2b-portal-dashboard .b2b-rules-registered-assets__list,
.b2b-portal-dashboard .b2b-rules-registered-assets__products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.b2b-portal-dashboard .b2b-rules-registered-assets__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.35rem 0;
  font-size: 0.92rem;
}

.b2b-portal-dashboard .b2b-rules-registered-assets__serial {
  font-size: 0.88rem;
  color: #64748b;
}

.b2b-portal-dashboard .b2b-equipment-maintenance-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.b2b-portal-dashboard .b2b-equipment-maintenance-alert--critical {
  border-color: #fecaca;
  background: #fef2f2;
}

.b2b-portal-dashboard .b2b-equipment-maintenance-alert__icon {
  width: 28px;
  height: 28px;
  font-size: 28px;
  color: #b45309;
}

.b2b-portal-dashboard .b2b-equipment-maintenance-alert--critical .b2b-equipment-maintenance-alert__icon {
  color: #b91c1c;
}

.b2b-portal-dashboard .b2b-equipment-maintenance-alert__text {
  flex: 1 1 180px;
  margin: 0;
  font-size: 0.92rem;
  color: #334155;
}

.b2b-portal-dashboard .b2b-equipment-maintenance-alert__cta {
  margin: 0;
}

.b2b-portal-dashboard .b2b-portal-automation-summary {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.b2b-portal-dashboard .b2b-portal-automation-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.92rem;
}

.b2b-portal-dashboard .b2b-portal-automation-summary__item--warning strong {
  color: #b45309;
}

.b2b-portal-dashboard .b2b-portal-automation-summary__item--critical strong {
  color: #b91c1c;
}

.b2b-portal-dashboard .b2b-rules-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b2b-portal-dashboard .b2b-rules-hero-value {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #1d2327;
}

.b2b-portal-dashboard .b2b-rules-hero-value--sm {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.b2b-portal-dashboard .b2b-rules-hero-value small {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--b2b-portal-muted);
  margin-left: 2px;
}

.b2b-portal-dashboard .b2b-rules-hero-value--eq-free {
  color: #15803d;
}

.b2b-portal-dashboard .b2b-rules-hero-value--eq-paid {
  color: #b91c1c;
}

.b2b-portal-dashboard .b2b-rules-hero-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--b2b-portal-muted);
}

.b2b-portal-dashboard .b2b-rules-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #f0f0f1;
  overflow: hidden;
}

.b2b-portal-dashboard .b2b-rules-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399 0%, #16a34a 100%);
  transition: width 0.4s ease;
}

.b2b-portal-dashboard .b2b-rules-card--warning .b2b-rules-progress-fill {
  background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
}

.b2b-portal-dashboard .b2b-rules-card--review .b2b-rules-progress-fill {
  background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
}

.b2b-portal-dashboard .b2b-rules-card--critical .b2b-rules-progress-fill {
  background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.b2b-portal-dashboard .b2b-rules-progress-fill--eq-free {
  background: linear-gradient(90deg, #34d399 0%, #16a34a 100%);
}

.b2b-portal-dashboard .b2b-rules-progress-fill--eq-paid {
  background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.b2b-portal-dashboard .b2b-rules-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #f0f0f1;
}

.b2b-portal-dashboard .b2b-rules-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f1;
  font-size: 13px;
}

.b2b-portal-dashboard .b2b-rules-meta-row dt {
  color: var(--b2b-portal-muted);
  margin: 0;
}

.b2b-portal-dashboard .b2b-rules-meta-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: #1d2327;
}

.b2b-portal-dashboard .b2b-rules-meta-row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.b2b-portal-dashboard .b2b-rules-meta-row--stack dd {
  text-align: left;
  font-weight: 500;
  line-height: 1.5;
}

.b2b-portal-dashboard .b2b-rules-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  border: 1px solid transparent;
  white-space: nowrap;
}

.b2b-portal-dashboard .b2b-rules-pill--ok,
.b2b-portal-dashboard .b2b-rules-pill--eq-free,
.b2b-portal-dashboard .b2b-rules-pill--active {
  background: #e7f6ee;
  color: #14653a;
  border-color: #a7e3c0;
}

.b2b-portal-dashboard .b2b-rules-pill--warning,
.b2b-portal-dashboard .b2b-rules-pill--pending {
  background: #fdf3e1;
  color: #92400e;
  border-color: #f3d28b;
}

.b2b-portal-dashboard .b2b-rules-pill--review {
  background: #fff0e6;
  color: #9a3412;
  border-color: #fdba74;
}

.b2b-portal-dashboard .b2b-rules-pill--critical,
.b2b-portal-dashboard .b2b-rules-pill--eq-paid {
  background: #fdecec;
  color: #991b1b;
  border-color: #f5b5b5;
}

.b2b-portal-dashboard .b2b-rules-pill--neutral {
  background: #f0f0f1;
  color: #50575e;
  border-color: #dcdcde;
}

.b2b-portal-dashboard .b2b-rules-chart {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 130px;
  padding: 6px 2px 0;
}

.b2b-portal-dashboard .b2b-rules-chart-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.b2b-portal-dashboard .b2b-rules-chart-val {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--b2b-portal-muted);
  white-space: nowrap;
}

.b2b-portal-dashboard .b2b-rules-chart-bar {
  width: 100%;
  max-width: 38px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  transition: height 0.4s ease;
}

.b2b-portal-dashboard .b2b-rules-chart-bar.is-empty {
  background: #eceef0;
}

.b2b-portal-dashboard .b2b-rules-chart-month {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--b2b-portal-muted);
}

.b2b-portal-dashboard .b2b-rules-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--b2b-portal-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.b2b-portal-dashboard .b2b-rules-note .dashicons {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.b2b-portal-dashboard .b2b-discount-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.b2b-portal-dashboard .b2b-rules-card-service-cta {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b2b-portal-dashboard .b2b-rules-card-service-cta .b2b-rules-note {
  margin-bottom: 0;
}

.b2b-portal-dashboard .b2b-rules-card-service-tickets {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f1;
}

.b2b-portal-dashboard .b2b-portal-tickets-embed__title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--b2b-portal-muted);
}

.b2b-portal-dashboard .b2b-portal-tickets-embed__lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}

.b2b-portal-dashboard .b2b-rules-card--portal-service .b2b-icon-box {
  padding: 14px 16px;
}

.b2b-portal-card {
  background: var(--b2b-portal-surface);
  border: 1px solid var(--b2b-portal-border);
  border-radius: var(--b2b-portal-radius);
  padding: 22px 24px;
  box-shadow: var(--b2b-portal-shadow);
}

.b2b-portal-card--kpi-wrap {
  padding: 20px 22px 22px;
}

.b2b-portal-card--cta {
  background: linear-gradient(175deg, #ffffff 0%, #fafbff 55%, #f5f7ff 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

.b2b-portal-card--profile {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
}

.b2b-portal-card__title {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--b2b-portal-text);
}

.b2b-portal-card__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.b2b-portal-card__head-row .b2b-portal-card__title {
  margin-bottom: 4px;
}

.b2b-portal-card__lead {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--b2b-portal-muted);
  line-height: 1.5;
  max-width: 62ch;
}

.b2b-portal-card__meta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--b2b-portal-muted);
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.b2b-portal-subsection__title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--b2b-portal-muted);
}

.b2b-portal-divider {
  border: none;
  border-top: 1px solid #e8ecf4;
  margin: 22px 0;
}

.b2b-portal-stack-form .b2b-portal-btn-primary {
  margin-top: 4px;
}

.b2b-portal-form-grid {
  display: grid;
  gap: 14px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.b2b-portal-field--full {
  grid-column: 1 / -1;
}

.b2b-portal-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.b2b-portal-input {
  width: 100%;
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.35;
  background: #fbfcff;
  color: var(--b2b-portal-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-portal-input:focus {
  outline: none;
  border-color: var(--b2b-portal-accent);
  box-shadow: 0 0 0 4px var(--b2b-portal-accent-soft);
}

.b2b-portal-btn-primary.button {
  border-radius: 11px;
  padding: 10px 20px;
  min-height: 44px;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.b2b-portal-btn-primary.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.b2b-portal-btn-outline.button {
  border-radius: 10px;
  font-weight: 600;
}

.b2b-portal-btn-sm.button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 8px;
}

.b2b-portal-btn-logout.button {
  width: 100%;
  text-align: center;
  justify-content: center;
  border-radius: 11px;
  padding: 12px 16px;
  min-height: 48px;
  font-weight: 600;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

.b2b-portal-btn-logout.button:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #334155 !important;
}

.b2b-portal-profile-dl {
  margin: 4px 0 0;
}

.b2b-portal-profile-dl > div {
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.b2b-portal-profile-dl > div:last-child {
  border-bottom: 0;
}

.b2b-portal-profile-dl dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--b2b-portal-muted);
}

.b2b-portal-profile-dl dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.b2b-portal-table-wrap {
  margin-top: 12px;
  border-radius: var(--b2b-portal-radius-sm);
  overflow: hidden;
}

.b2b-portal-table-empty {
  text-align: center;
  color: var(--b2b-portal-muted);
  padding: 28px 16px !important;
}

.b2b-portal-link-strong {
  font-weight: 700;
  color: var(--b2b-portal-accent);
  text-decoration: none;
}

.b2b-portal-link-strong:hover {
  text-decoration: underline;
}

.b2b-portal-pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.b2b-portal-kpi-detail {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eef2f7;
}

.b2b-portal-kpi-detail__title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--b2b-portal-muted);
}

.b2b-portal-kpi-detail__text {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.b2b-portal-section {
  border: 1px solid #e4e4e4;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 12px;
}

.b2b-portal-section h3 {
  margin-top: 0;
}

.b2b-service-launch-wrap {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.b2b-icon-box {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: none;
  padding: 18px 20px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 70%);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: box-shadow 0.18s ease, transform 0.12s ease, border-color 0.15s ease;
}

.b2b-icon-box:hover {
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.14);
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.45);
}

.b2b-icon-box:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--b2b-portal-accent-soft);
}

.b2b-icon-box-icon {
  font-size: 30px;
  line-height: 1;
}

.b2b-icon-box-label {
  font-weight: 750;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #1e1b4b;
}

body.b2b-modal-open {
  overflow: hidden;
}

.b2b-modal[hidden] {
  display: none !important;
}

.b2b-modal.is-open {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  inset: 0;
  z-index: 100000;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.b2b-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 0;
}

.b2b-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(88vh, 560px);
  max-height: min(88dvh, 560px);
  margin: auto;
  flex-shrink: 0;
  align-self: center;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.06);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.b2b-modal-dialog__scroll {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  padding: 38px 20px 18px;
  overscroll-behavior: contain;
}

.b2b-modal-dialog__scroll > #b2b-service-modal-title,
.b2b-modal-dialog__scroll > #b2b-manager-modal-title,
.b2b-modal-dialog__scroll > #b2b-pe-modal-title {
  margin: 0 0 14px;
  padding-right: 28px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.b2b-manager-modal-intro {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #475569;
}

.b2b-modal-dialog__scroll #b2b-service-form > p,
.b2b-modal-dialog__scroll #b2b-manager-form > p {
  margin-top: 0;
  margin-bottom: 12px;
}

.b2b-modal-dialog__scroll #b2b-service-form > p:last-child,
.b2b-modal-dialog__scroll #b2b-manager-form > p:last-child {
  margin-bottom: 0;
}

.b2b-modal-dialog__scroll #b2b-pe-form .b2b-portal-field {
  margin: 0;
}

.b2b-modal-dialog__scroll #b2b-pe-form .b2b-portal-form-grid {
  margin-top: 0;
  margin-bottom: 14px;
}

.b2b-service-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.b2b-service-field-help {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #64748b;
}

.b2b-service-modal-select,
.b2b-service-modal-input,
.b2b-service-modal-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.4;
}

.b2b-service-modal-select,
.b2b-service-modal-input {
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfcff;
  color: #0f172a;
  min-height: 44px;
}

.b2b-service-modal-select {

.b2b-service-modal-select:focus,
.b2b-service-modal-input:focus,
.b2b-service-modal-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.b2b-service-modal-textarea {
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 72px;
  resize: vertical;
  vertical-align: top;
}

.b2b-service-modal-actions {
  margin-top: 4px !important;
  padding-top: 4px;
}

.b2b-service-modal-actions .button {
  width: 100%;
  justify-content: center;
}

.b2b-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.b2b-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.b2b-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.b2b-radio-line {
  display: block;
  margin-bottom: 8px;
}

.b2b-pe-table input[type="text"] {
  width: 100%;
  max-width: none;
}

.b2b-service-customer-summary {
  font-size: 13px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.b2b-dashboard-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.b2b-kpi-card {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  padding: 16px 16px 16px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-kpi-card:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.b2b-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e0e7ff 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.b2b-kpi-content {
  min-width: 0;
}

.b2b-kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.b2b-kpi-value {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
  word-break: break-word;
}

.b2b-kpi-sub {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 550;
}

.b2b-portal-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.b2b-portal-status-pill--ok {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.28);
}

.b2b-portal-status-pill--warning {
  background: #fffbeb;
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.28);
}

.b2b-portal-status-pill--review {
  background: #fff7ed;
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.28);
}

.b2b-portal-status-pill--critical {
  background: #fef2f2;
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.28);
}

.b2b-portal-status-pill--na {
  background: #f8fafc;
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.2);
}

.b2b-kpi-card--eq-free .b2b-kpi-icon {
  background: linear-gradient(145deg, #dcfce7 0%, #ecfdf5 100%);
  border-color: rgba(16, 185, 129, 0.22);
}

.b2b-kpi-card--eq-paid .b2b-kpi-icon {
  background: linear-gradient(145deg, #fee2e2 0%, #fef2f2 100%);
  border-color: rgba(239, 68, 68, 0.18);
}

.b2b-portal-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 10px;
}

.b2b-portal-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  transition: width 0.25s ease;
}

.b2b-portal-progress-fill--ok {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.b2b-portal-progress-fill--warning {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

.b2b-portal-progress-fill--review {
  background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
}

.b2b-portal-progress-fill--critical {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.b2b-portal-volume-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 120px;
  margin-bottom: 10px;
}

.b2b-portal-volume-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.b2b-portal-volume-chart-val {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  line-height: 1.1;
}

.b2b-portal-volume-chart-bar {
  display: block;
  width: 100%;
  max-width: 34px;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.b2b-portal-volume-chart-bar.is-empty {
  background: #cbd5e1;
  opacity: 0.65;
}

.b2b-portal-volume-chart-month {
  font-size: 10px;
  font-weight: 650;
  color: #94a3b8;
  text-transform: uppercase;
}

.b2b-portal-kpi-detail__text--note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.b2b-discount-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.b2b-discount-tag {
  background: linear-gradient(180deg, #eef2ff 0%, #e8eeff 100%);
  color: #3730a3;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
}

.b2b-portal-card .b2b-pe-table input[type="text"] {
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fbfcff;
}

.b2b-portal-card .b2b-pe-table input[type="text"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.b2b-portal-section input[type="text"],
.b2b-portal-section input[type="email"],
.b2b-portal-section input[type="password"] {
  width: 100%;
  max-width: 420px;
}

.b2b-portal-notice {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}

.b2b-portal-notice.success {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.35);
}

.b2b-portal-notice.error {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #9f1239;
  border-color: rgba(244, 63, 94, 0.28);
}

@media (max-width: 640px) {
  .b2b-dashboard-highlights {
    grid-template-columns: 1fr;
  }

  .b2b-portal-form-grid {
    grid-template-columns: 1fr;
  }

  .b2b-portal-card .b2b-order-table th,
  .b2b-portal-card .b2b-order-table td {
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* Servisne prijave (portal) */
.b2b-portal-card--tickets .b2b-tickets-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.b2b-tickets-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.b2b-tickets-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fbfcff;
}

.b2b-tickets-list__link {
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 140px;
}

.b2b-tickets-list__link:hover {
  text-decoration: underline;
}

.b2b-tickets-list__date {
  font-size: 13px;
  color: #64748b;
}

.b2b-portal-card--tickets .b2b-ticket-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.b2b-portal-card--tickets .b2b-ticket-badge--submitted {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.b2b-portal-card--tickets .b2b-ticket-badge--progress {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.b2b-portal-card--tickets .b2b-ticket-badge--resolved {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.b2b-portal-card--tickets .b2b-ticket-badge--visit {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.b2b-st-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-st-list__link:hover {
  border-color: #2271b1;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.08);
}

.b2b-st-list__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.b2b-st-list__action {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2271b1;
}

.b2b-st-header {
  margin-bottom: 1rem;
}

.b2b-st-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.b2b-st-subtitle {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.b2b-modal-dialog--st {
  max-width: 640px;
}

.b2b-ticket-detail__title {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.b2b-ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 18px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 4px 8px 0;
}

.b2b-ticket-msg {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.b2b-ticket-msg--customer {
  background: #f8fafc;
  border-left: 4px solid #059669;
}

.b2b-ticket-msg--admin {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
}

.b2b-ticket-msg__meta {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.b2b-ticket-msg__body {
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
  word-break: break-word;
}

.b2b-ticket-reply-form .b2b-ticket-reply-textarea {
  margin-bottom: 10px;
  min-height: 88px;
  resize: vertical;
}

.b2b-ticket-reply-feedback {
  margin: 10px 0;
  font-size: 14px;
  font-weight: 600;
}

.b2b-ticket-reply-feedback.success {
  color: #065f46;
}

.b2b-ticket-reply-feedback.error {
  color: #9f1239;
}

.b2b-vat-status {
  font-weight: 600;
  margin-top: 6px;
}

.b2b-vat-status.success {
  color: #0f5132;
}

.b2b-vat-status.error {
  color: #842029;
}

.b2b-vat-refresh-button {
  margin-left: 6px;
  min-width: 34px;
}

#b2b-checkout-vat-lookup {
  margin-top: 8px;
}

.b2b-wc-register-wrap {
  margin-top: 12px;
  width: 100%;
  clear: both;
  display: block;
  box-sizing: border-box;
  position: relative;
}

.b2b-wc-register-wrap #b2b_registration_type {
  width: 100%;
}

.b2b-wc-register-wrap .b2b-wc-business-fields {
  margin-top: 12px;
  width: 100%;
  clear: both;
  display: block;
  box-sizing: border-box;
}

.b2b-wc-register-wrap .form-row {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.b2b-wc-register-wrap .form-row.form-row-first,
.b2b-wc-register-wrap .form-row.form-row-last {
  width: 47%;
}

.woocommerce .woocommerce-form-register .b2b-wc-register-wrap,
.woocommerce-page .woocommerce-form-register .b2b-wc-register-wrap {
  overflow: visible;
}

.woocommerce .woocommerce-form-register .b2b-wc-register-wrap .form-row.form-row-wide,
.woocommerce-page .woocommerce-form-register .b2b-wc-register-wrap .form-row.form-row-wide {
  float: none;
  clear: both;
}

.woocommerce .woocommerce-form-register .b2b-wc-register-wrap .form-row.form-row-first,
.woocommerce-page .woocommerce-form-register .b2b-wc-register-wrap .form-row.form-row-first {
  float: left;
  clear: none;
}

.woocommerce .woocommerce-form-register .b2b-wc-register-wrap .form-row.form-row-last,
.woocommerce-page .woocommerce-form-register .b2b-wc-register-wrap .form-row.form-row-last {
  float: right;
  clear: none;
}

.woocommerce .woocommerce-form-register,
.woocommerce-page .woocommerce-form-register {
  height: auto;
}

.woocommerce #customer_login,
.woocommerce-page #customer_login {
  height: auto !important;
  overflow: visible !important;
}

.woocommerce #customer_login::after,
.woocommerce-page #customer_login::after {
  content: "";
  display: table;
  clear: both;
}

.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2,
.woocommerce-page #customer_login .u-column1,
.woocommerce-page #customer_login .u-column2 {
  min-height: 1px;
  overflow: visible !important;
}

.woocommerce #customer_login .u-column2 .woocommerce-form-register,
.woocommerce-page #customer_login .u-column2 .woocommerce-form-register {
  overflow: visible !important;
  margin-bottom: 24px;
}

.b2b-wc-register-wrap input[type="text"],
.b2b-wc-register-wrap textarea,
.b2b-wc-register-wrap select {
  width: 100%;
  max-width: 100%;
}

.b2b-wc-register-wrap .b2b-vat-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.b2b-wc-register-wrap .b2b-vat-status {
  margin-top: 0;
}

.b2b-wc-register-wrap::after,
.b2b-wc-register-wrap .b2b-wc-business-fields::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .b2b-wc-register-wrap .form-row.form-row-first,
  .b2b-wc-register-wrap .form-row.form-row-last {
    width: 100%;
    float: none;
  }
}

.b2b-vies-locked {
  background: #f6f7f7;
}

.b2b-pe-address-intro {
  margin-top: -0.25rem;
  color: var(--b2b-portal-muted, #64748b);
  font-size: 14px;
}

.b2b-pe-units-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.b2b-pe-units-section__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--b2b-portal-text, #1d2327);
}

.b2b-pe-units-section__lead {
  margin: 0 0 1rem;
  font-size: 14px;
  color: var(--b2b-portal-muted, #64748b);
}

.b2b-pe-units-section__empty {
  margin: 0 0 1rem;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #d8dee9;
  color: var(--b2b-portal-muted, #64748b);
  font-size: 14px;
}

.b2b-pe-units-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .b2b-pe-units-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.b2b-pe-unit-card {
  display: flex;
  flex-direction: column;
  background: var(--b2b-portal-surface, #ffffff);
  border: 1px solid var(--b2b-portal-border, #e3e5e8);
  border-radius: var(--b2b-portal-radius, 14px);
  padding: 18px 20px;
  box-shadow: var(--b2b-portal-shadow, 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 18px rgba(16, 24, 40, 0.05));
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-pe-unit-card--active {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(165deg, #ffffff 0%, #f5f8ff 100%);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08), var(--b2b-portal-shadow, 0 1px 2px rgba(16, 24, 40, 0.05));
}

.b2b-pe-unit-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.b2b-pe-unit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eef2f7;
  color: #50575e;
  flex-shrink: 0;
}

.b2b-pe-unit-card__icon .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.b2b-pe-unit-card--active .b2b-pe-unit-card__icon {
  background: #eff4ff;
  color: #1d4ed8;
}

.b2b-pe-unit-card__titles {
  flex: 1 1 auto;
  min-width: 0;
}

.b2b-pe-unit-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--b2b-portal-text, #1d2327);
}

.b2b-pe-unit-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.b2b-pe-unit-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eef2f7;
  color: #64748b;
}

.b2b-pe-unit-card__badge--active {
  background: #eff4ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.b2b-pe-unit-card__body {
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--b2b-portal-text, #1d2327);
}

.b2b-pe-unit-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}

.b2b-pe-unit-card__actions .button {
  min-height: 36px;
}

.b2b-pe-unit-card__actions .b2b-pe-card-delete {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.2);
}

.b2b-pe-unit-card__actions .b2b-pe-card-delete:hover {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.35);
  color: #991b1b;
}

.b2b-pe-editor-panel {
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: 0;
}

.b2b-pe-add-row {
  margin-bottom: 0;
}

.b2b-pe-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b2b-pe-modal-actions .button {
  flex: 1 1 0;
  min-width: 120px;
  width: auto;
  justify-content: center;
}

@media (max-width: 480px) {
  .b2b-pe-modal-actions {
    flex-direction: column;
  }

  .b2b-pe-modal-actions .button {
    width: 100%;
    flex-basis: auto;
  }
}

.b2b-pe-delivery-choice {
  margin-top: 1.75rem;
}

.b2b-pe-delivery-choice__title {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.b2b-pe-delivery-choice__lead {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 14px;
}

.b2b-pe-delivery-choice__field {
  margin-bottom: 0.75rem;
}

.b2b-pe-delivery-choice__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.b2b-pe-delivery-select {
  width: 100%;
  max-width: 520px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 15px;
}

.b2b-pe-delivery-choice__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.b2b-pe-delivery-choice__list li label {
  display: block;
  cursor: pointer;
}

.b2b-pe-editor-form .b2b-pe-table input.regular-text {
  width: 100%;
  max-width: 100%;
}

/* ----- Partner portal: stran Naročila ----- */
.b2b-portal-orders-page {
  --b2b-portal-bg: #ffffff;
  --b2b-portal-surface: #ffffff;
  --b2b-portal-border: rgba(15, 23, 42, 0.08);
  --b2b-portal-text: #0f172a;
  --b2b-portal-muted: #64748b;
  --b2b-portal-accent: #2563eb;
  --b2b-portal-accent-soft: rgba(37, 99, 235, 0.12);
  --b2b-portal-radius: 16px;
  --b2b-portal-radius-sm: 12px;
  --b2b-portal-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.06);

  color: var(--b2b-portal-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.b2b-portal-orders-page *,
.b2b-portal-orders-page *::before,
.b2b-portal-orders-page *::after {
  box-sizing: border-box;
}

body.b2b-portal-orders-active .woocommerce-MyAccount-content > h2,
body.b2b-portal-orders-active .woocommerce-MyAccount-content > .woocommerce-order-details__title {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--b2b-portal-text, #0f172a);
}

.b2b-portal-orders-page .b2b-portal-rules-section,
.b2b-portal-orders-page .b2b-portal-card {
  margin-bottom: 20px;
}

.b2b-portal-orders-page .b2b-portal-card__body {
  padding-top: 4px;
}

.b2b-portal-orders-page .b2b-portal-credit-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fffdf8 0%, #fff 55%, #f8fbff 100%);
  border: 1px solid var(--b2b-portal-border);
  border-radius: var(--b2b-portal-radius-sm);
  box-shadow: var(--b2b-portal-shadow);
}

.b2b-portal-orders-page .b2b-portal-credit-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  flex: 0 0 auto;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__icon .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--b2b-portal-text);
}

.b2b-portal-orders-page .b2b-portal-credit-strip__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--b2b-portal-muted);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  gap: 12px 16px;
  align-items: center;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__metric-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--b2b-portal-text);
  line-height: 1.2;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__metric-value .woocommerce-Price-amount {
  font-size: inherit;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__metric-label {
  font-size: 0.72rem;
  color: var(--b2b-portal-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__metric--highlight .b2b-portal-credit-strip__metric-value {
  color: #047857;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__meter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__meter {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.b2b-portal-orders-page .b2b-portal-credit-strip__meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.b2b-portal-orders-page .b2b-portal-credit-strip__meter-fill--warning {
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.b2b-portal-orders-page .b2b-portal-credit-strip__meter-fill--danger {
  background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
}

.b2b-portal-orders-page .b2b-portal-credit-strip__pct {
  flex: 0 0 auto;
  min-width: 2.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--b2b-portal-muted);
  text-align: right;
}

.b2b-portal-orders-page .b2b-portal-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  max-width: 100%;
}

.b2b-portal-orders-page .b2b-portal-invoice-link:hover {
  background: rgba(37, 99, 235, 0.14);
  color: #1e40af;
}

.b2b-portal-orders-page .b2b-portal-invoice-link .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.b2b-portal-orders-page .b2b-portal-invoice-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b2b-portal-orders-page .b2b-portal-table-muted {
  color: var(--b2b-portal-muted);
  font-size: 0.85rem;
}

.b2b-portal-orders-page .b2b-portal-rules-grid--orders-finance {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.b2b-portal-orders-page .b2b-rules-card {
  background: var(--b2b-portal-surface);
  border: 1px solid var(--b2b-portal-border);
  border-radius: var(--b2b-portal-radius);
  box-shadow: var(--b2b-portal-shadow);
  overflow: hidden;
}

.b2b-portal-orders-page .b2b-rules-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.b2b-portal-orders-page .b2b-rules-card-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--b2b-portal-text);
}

.b2b-portal-orders-page .b2b-rules-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff4ff;
  color: #1d4ed8;
}

.b2b-portal-orders-page .b2b-rules-card-icon .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.b2b-portal-orders-page .b2b-rules-card--warning .b2b-rules-card-icon {
  background: #fff7ed;
  color: #b45309;
}

.b2b-portal-orders-page .b2b-rules-card-body {
  padding: 18px;
}

.b2b-portal-orders-page .b2b-rules-hero {
  text-align: center;
  margin-bottom: 12px;
}

.b2b-portal-orders-page .b2b-rules-hero-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--b2b-portal-text);
}

.b2b-portal-orders-page .b2b-rules-hero-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--b2b-portal-muted);
}

.b2b-portal-orders-page .b2b-rules-progress {
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
  margin-bottom: 14px;
}

.b2b-portal-orders-page .b2b-rules-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #b45309);
}

.b2b-portal-orders-page .b2b-rules-meta {
  margin: 0;
}

.b2b-portal-orders-page .b2b-rules-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.b2b-portal-orders-page .b2b-rules-meta-row:last-child {
  border-bottom: 0;
}

.b2b-portal-orders-page .b2b-rules-meta-row dt {
  margin: 0;
  color: var(--b2b-portal-muted);
  font-weight: 600;
}

.b2b-portal-orders-page .b2b-rules-meta-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--b2b-portal-text);
}

.b2b-portal-orders-page .b2b-rules-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f1f5f9;
  color: #475569;
}

.b2b-portal-orders-page .woocommerce-orders-table,
.b2b-portal-orders-page .b2b-order-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  border: 1px solid #e9edf5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  background: #fff;
}

.b2b-portal-orders-page .woocommerce-orders-table th,
.b2b-portal-orders-page .woocommerce-orders-table td,
.b2b-portal-orders-page .b2b-order-table th,
.b2b-portal-orders-page .b2b-order-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.b2b-portal-orders-page .woocommerce-orders-table th,
.b2b-portal-orders-page .b2b-order-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.82rem;
}

.b2b-portal-orders-page .woocommerce-orders-table tr:last-child td,
.b2b-portal-orders-page .b2b-order-table tr:last-child td {
  border-bottom: 0;
}

.b2b-portal-orders-page .woocommerce-orders-table tbody tr:hover td {
  background: #fafcff;
}

.b2b-portal-orders-page .woocommerce-orders-table .button,
.b2b-portal-orders-page .b2b-portal-btn-sm {
  padding: 6px 12px;
  min-height: 34px;
  font-size: 12px;
}

.b2b-portal-orders-page .woocommerce-pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.b2b-portal-orders-page .woocommerce-pagination .button {
  border-radius: 10px;
  font-weight: 600;
}

.b2b-portal-orders-page .woocommerce-info,
.b2b-portal-orders-page .woocommerce-message,
.b2b-portal-orders-page .woocommerce-error {
  border-radius: 12px;
  margin: 0 0 14px;
}

.b2b-portal-orders-back {
  margin: 0 0 16px;
}

.b2b-portal-orders-back__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--b2b-portal-accent);
  text-decoration: none;
}

.b2b-portal-orders-back__link:hover {
  text-decoration: underline;
}

.b2b-portal-orders-back__link .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.b2b-portal-orders-page--view .b2b-wc-order-email {
  margin-bottom: 16px;
}

.b2b-portal-orders-view-actions {
  margin: 16px 0 0;
}

.b2b-portal-order-updates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.b2b-portal-order-updates__item {
  padding: 14px 16px;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: #fafbfd;
}

.b2b-portal-order-updates__date {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--b2b-portal-muted);
}

.b2b-portal-order-updates__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--b2b-portal-text);
}

.b2b-portal-order-updates__text p:last-child {
  margin-bottom: 0;
}

.b2b-portal-pill--order-processing {
  background: #eff6ff;
  color: #1d4ed8;
}

.b2b-portal-pill--order-completed {
  background: #ecfdf5;
  color: #047857;
}

.b2b-portal-pill--order-cancelled,
.b2b-portal-pill--order-failed,
.b2b-portal-pill--order-refunded {
  background: #fef2f2;
  color: #b91c1c;
}

.b2b-portal-pill--order-on-hold,
.b2b-portal-pill--order-pending {
  background: #fffbeb;
  color: #b45309;
}

@media (max-width: 900px) {
  .b2b-portal-orders-page .b2b-portal-credit-strip__body {
    grid-template-columns: 1fr;
  }

  .b2b-portal-orders-page .b2b-portal-rules-grid--orders-finance {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .b2b-portal-orders-page .woocommerce-orders-table.shop_table_responsive thead {
    display: none;
  }

  .b2b-portal-orders-page .woocommerce-orders-table.shop_table_responsive tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  }

  .b2b-portal-orders-page .woocommerce-orders-table.shop_table_responsive td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf2f7;
    padding: 12px 14px;
  }

  .b2b-portal-orders-page .woocommerce-orders-table.shop_table_responsive td::before {
    content: attr(data-title);
    font-weight: 700;
    color: var(--b2b-portal-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .b2b-portal-orders-page .woocommerce-orders-table.shop_table_responsive td:last-child {
    border-bottom: 0;
  }
}

/* ----- Partner portal: Načini plačila ----- */
.b2b-portal-payment-methods-page {
  --b2b-portal-bg: #ffffff;
  --b2b-portal-surface: #ffffff;
  --b2b-portal-border: rgba(15, 23, 42, 0.08);
  --b2b-portal-text: #0f172a;
  --b2b-portal-muted: #64748b;
  --b2b-portal-accent: #2563eb;
  --b2b-portal-accent-soft: rgba(37, 99, 235, 0.12);
  --b2b-portal-radius: 16px;
  --b2b-portal-radius-sm: 12px;
  --b2b-portal-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.06);

  color: var(--b2b-portal-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.b2b-portal-payment-methods-page *,
.b2b-portal-payment-methods-page *::before,
.b2b-portal-payment-methods-page *::after {
  box-sizing: border-box;
}

body.b2b-portal-payment-methods-active .woocommerce-MyAccount-content > h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--b2b-portal-text, #0f172a);
}

.b2b-portal-payment-methods-page .b2b-portal-card {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.b2b-portal-payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.b2b-portal-payment-methods-overview {
  grid-column: 1;
  grid-row: 1;
}

.b2b-portal-payment-terms-card {
  grid-column: 2;
  grid-row: 1;
}

.b2b-portal-saved-payment-methods-card {
  grid-column: 1;
  grid-row: 2;
}

.b2b-portal-payment-methods-grid .b2b-purchase-order-on-payment-methods,
.b2b-portal-payment-methods-grid .b2b-portal-payment-po-card {
  grid-column: 2;
  grid-row: 2;
}

.b2b-portal-payment-methods-grid:not(:has(.b2b-portal-payment-po-card)) .b2b-portal-saved-payment-methods-card {
  grid-column: 1 / -1;
}

.b2b-portal-payment-methods-page .b2b-portal-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.b2b-portal-payment-methods-page .b2b-portal-card__lead {
  margin-bottom: 0;
}

.b2b-portal-payment-methods-overview .b2b-portal-card__body,
.b2b-portal-payment-terms-card .b2b-portal-card__body,
.b2b-portal-saved-payment-methods-card .b2b-portal-card__body {
  padding-top: 4px;
}

.b2b-portal-payment-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed #d4dbe8;
  background: #f8fafc;
  color: var(--b2b-portal-muted);
}

.b2b-portal-payment-empty__icon {
  width: 22px;
  height: 22px;
  font-size: 22px;
  color: #94a3b8;
  flex-shrink: 0;
}

.b2b-portal-payment-empty p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.b2b-portal-payment-method-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1 1 auto;
  align-content: start;
}

.b2b-portal-payment-method-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 118px;
  height: 100%;
  padding: 18px 16px 16px;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.b2b-portal-payment-method-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.b2b-portal-payment-method-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eff4ff;
  color: #1d4ed8;
}

.b2b-portal-payment-method-card__icon .dashicons {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.b2b-portal-payment-method-card--cheque .b2b-portal-payment-method-card__icon,
.b2b-portal-payment-method-card--b2b_invoice .b2b-portal-payment-method-card__icon {
  background: #fff7ed;
  color: #b45309;
}

.b2b-portal-payment-method-card--cod .b2b-portal-payment-method-card__icon {
  background: #ecfdf5;
  color: #047857;
}

.b2b-portal-payment-method-card--bacs .b2b-portal-payment-method-card__icon {
  background: #f0f9ff;
  color: #0369a1;
}

.b2b-portal-payment-method-card--b2b_purchase_order .b2b-portal-payment-method-card__icon {
  background: #f5f3ff;
  color: #6d28d9;
}

.b2b-portal-payment-method-card--woocommerce_payments .b2b-portal-payment-method-card__icon,
.b2b-portal-payment-method-card--stripe .b2b-portal-payment-method-card__icon,
.b2b-portal-payment-method-card--stripe_cc .b2b-portal-payment-method-card__icon {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #1d4ed8;
}

.b2b-portal-payment-method-card__content {
  min-width: 0;
  flex: 1 1 auto;
}

.b2b-portal-payment-method-card__title {
  display: block;
  margin: 0 0 4px;
  font-size: 0.94rem;
  line-height: 1.35;
  color: var(--b2b-portal-text);
}

.b2b-portal-payment-method-card__desc {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--b2b-portal-muted);
}

.b2b-portal-payment-method-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.74rem;
  font-weight: 600;
  color: #047857;
}

.b2b-portal-payment-method-card__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.b2b-portal-payment-terms-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1 1 auto;
  align-content: start;
}

.b2b-portal-payment-terms-metric {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
}

.b2b-portal-payment-terms-metric__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  flex-shrink: 0;
}

.b2b-portal-payment-terms-metric__icon.dashicons {
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 34px;
}

.b2b-portal-payment-terms-metric__label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--b2b-portal-muted);
}

.b2b-portal-payment-terms-metric__value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--b2b-portal-text);
}

.b2b-portal-payment-terms-metric__value--accent {
  color: #1d4ed8;
}

.b2b-portal-saved-cards-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
}

.b2b-portal-saved-card-item {
  margin: 0;
  display: flex;
  width: 100%;
}

.b2b-portal-saved-card-item .b2b-portal-credit-card,
.b2b-portal-saved-card-item .b2b-portal-add-card-tile {
  width: 100%;
}

.b2b-portal-credit-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 196px;
  padding: 22px 24px 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.b2b-portal-credit-card__shine {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

.b2b-portal-credit-card--visa {
  background: linear-gradient(135deg, #0f2b6e 0%, #1d4ed8 52%, #3b82f6 100%);
}

.b2b-portal-credit-card--mastercard {
  background: linear-gradient(135deg, #1f2937 0%, #374151 48%, #6b7280 100%);
}

.b2b-portal-credit-card--amex {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 55%, #06b6d4 100%);
}

.b2b-portal-credit-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.b2b-portal-credit-card__chip {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.b2b-portal-credit-card__contactless {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 6px;
  margin-right: auto;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0.9;
}

.b2b-portal-credit-card__brand {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.b2b-portal-credit-card__number {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.b2b-portal-credit-card__footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.5fr;
  gap: 10px;
  margin-top: auto;
}

.b2b-portal-credit-card__label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.b2b-portal-credit-card__value {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b2b-portal-credit-card__actions {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  text-align: right;
}

.b2b-portal-credit-card__delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.18);
  transition: background 0.15s ease;
}

.b2b-portal-credit-card__delete:hover {
  background: rgba(15, 23, 42, 0.3);
  color: #fff;
}

.b2b-portal-credit-card__delete .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.b2b-portal-add-card-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: 196px;
  padding: 24px;
  border: 2px dashed #c7d2fe;
  border-radius: 18px;
  background: linear-gradient(165deg, #f8faff 0%, #f1f5ff 100%);
  color: #1d4ed8;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.b2b-portal-add-card-tile:hover {
  border-color: #818cf8;
  background: linear-gradient(165deg, #eef2ff 0%, #e0e7ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.14);
  color: #1e3a8a;
}

.b2b-portal-add-card-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c7d2fe;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

.b2b-portal-add-card-tile__title {
  font-size: 1rem;
  font-weight: 700;
}

.b2b-portal-add-card-tile__desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #64748b;
  max-width: 22ch;
}

.b2b-portal-pill--ok {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.2);
}

.b2b-portal-pill--pending,
.b2b-portal-pill--neutral {
  background: #f1f5f9;
  color: #475569;
}

.b2b-portal-pill--critical {
  background: #fef2f2;
  color: #b91c1c;
}

.b2b-portal-notice.warning {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.35);
}

.b2b-portal-payment-terms-dl {
  margin-top: 0;
}

.b2b-portal-payment-methods-page .b2b-purchase-order-on-payment-methods {
  margin-top: 0;
  scroll-margin-top: 24px;
}

.b2b-portal-payment-methods-page .b2b-purchase-order-on-payment-methods .b2b-portal-card__body,
.b2b-portal-payment-methods-page .b2b-portal-payment-po-card .b2b-portal-card__body {
  min-height: 0;
}

.b2b-portal-payment-methods-page .b2b-purchase-order-portal__inner {
  margin-top: 0;
}

.b2b-portal-payment-methods-page .b2b-purchase-order-portal__status {
  margin-bottom: 16px;
}

.b2b-portal-payment-methods-page .b2b-purchase-order-upload-form {
  margin-top: 0;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fafbfd;
}

.b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods,
.b2b-portal-payment-methods-page .woocommerce-PaymentMethod {
  margin: 0;
}

.b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e9edf5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  background: #fff;
}

.b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods th,
.b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods td {
  border-bottom: 1px solid #edf2f7;
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.82rem;
}

.b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods tr:last-child td {
  border-bottom: 0;
}

.b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods .button {
  border-radius: 10px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .b2b-portal-payment-methods-grid {
    grid-template-columns: 1fr;
  }

  .b2b-portal-payment-methods-overview,
  .b2b-portal-payment-terms-card,
  .b2b-portal-saved-payment-methods-card,
  .b2b-portal-payment-methods-grid .b2b-purchase-order-on-payment-methods,
  .b2b-portal-payment-methods-grid .b2b-portal-payment-po-card {
    grid-column: 1;
    grid-row: auto;
  }

  .b2b-portal-payment-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b2b-portal-payment-terms-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b2b-portal-credit-card,
  .b2b-portal-add-card-tile {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods.shop_table_responsive thead {
    display: none;
  }

  .b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods.shop_table_responsive tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  }

  .b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods.shop_table_responsive td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf2f7;
    padding: 12px 14px;
  }

  .b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods.shop_table_responsive td::before {
    content: attr(data-title);
    font-weight: 700;
    color: var(--b2b-portal-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .b2b-portal-payment-methods-page .woocommerce-MyAccount-paymentMethods.shop_table_responsive td:last-child {
    border-bottom: 0;
  }
}

/* ----- Naročilnica — kompaktni portal slog ----- */
.b2b-portal-order-form-page.b2b-order-form--modern {
  --b2b-portal-surface: #ffffff;
  --b2b-portal-border: rgba(15, 23, 42, 0.08);
  --b2b-portal-text: #0f172a;
  --b2b-portal-muted: #64748b;
  --b2b-portal-accent: #2563eb;
  --b2b-portal-radius: 14px;
  --b2b-portal-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.05);
  --b2b-order-control-h: 36px;
  --b2b-order-control-pad: 7px 10px;
  --b2b-order-control-fs: 13px;
  gap: 14px;
}

body.woocommerce-account .woocommerce-MyAccount-content:has(.b2b-portal-order-form-page) > h2 {
  margin: 0 0 16px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--b2b-portal-text, #0f172a);
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section {
  border-color: var(--b2b-portal-border);
  border-radius: var(--b2b-portal-radius);
  box-shadow: var(--b2b-portal-shadow);
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__head {
  padding: 11px 14px;
  gap: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__icon .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__title {
  font-size: 11.5px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__pill {
  padding: 3px 9px;
  font-size: 11px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__body {
  padding: 14px 16px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section--cart .b2b-order-section__body {
  gap: 12px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__search-label {
  margin-bottom: 8px;
  font-size: 12px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__search-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__search-icon .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.b2b-portal-order-form-page.b2b-order-form--modern #b2b-product-search {
  height: var(--b2b-order-control-h);
  min-height: var(--b2b-order-control-h);
  padding: var(--b2b-order-control-pad);
  padding-left: 36px;
  padding-right: 34px;
  font-size: var(--b2b-order-control-fs);
  border-radius: 10px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-search-icon {
  left: 10px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-search-icon .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-inline-spinner {
  right: 10px;
  width: 15px;
  height: 15px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-search-results {
  border-radius: 10px;
  max-height: 220px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-result-item {
  padding: 8px 10px;
  gap: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-result-thumb {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-result-item strong {
  font-size: 13px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-table th,
.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-table td {
  padding: 9px 10px;
  font-size: 13px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-table th {
  font-size: 10.5px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-product-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-product-cell {
  gap: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-table .b2b-qty-input {
  width: 72px;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-line-variation-field {
  min-width: 130px;
  gap: 3px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-line-variation-field span {
  font-size: 11px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-line-variation-select {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-empty-row td {
  padding: 18px 12px;
  font-size: 13px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-total-row th {
  font-size: 13px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-total-row th:last-child {
  font-size: 14px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-field-label {
  margin-bottom: 5px;
  font-size: 12px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-delivery-choice-select {
  min-height: var(--b2b-order-control-h);
  padding: var(--b2b-order-control-pad);
  font-size: var(--b2b-order-control-fs);
  border-radius: 9px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-field-help {
  margin-top: 6px;
  font-size: 12px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-address-card summary {
  padding: 10px 12px;
  gap: 3px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-address-summary,
.b2b-portal-order-form-page.b2b-order-form--modern .b2b-address-edit {
  font-size: 12px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-shipping-wrap {
  padding: 10px 12px 12px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-shipping-grid {
  gap: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-shipping-grid label {
  margin-bottom: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--b2b-portal-muted);
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-shipping-grid input {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 13px;
  border-radius: 8px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-shipping-grid-wide {
  display: grid;
  gap: 6px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-billing-vat-lookup-button.button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
  margin-top: 4px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-vat-status {
  margin: 4px 0 0;
  font-size: 12px;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-form__footer {
  padding: 12px 14px;
  gap: 10px;
  border-radius: var(--b2b-portal-radius);
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-submit-btn.button.button-primary,
.b2b-portal-order-form-page.b2b-order-form--modern #b2b-submit-order.button.button-primary {
  min-height: 38px;
  min-width: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-remove-item.button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-message {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 10px;
}

@media (min-width: 769px) {
  .b2b-portal-order-form-page.b2b-order-form-wrapper.b2b-order-form--modern {
    gap: 16px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__search {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 12px;
    border-top: 0;
    border-bottom: 1px solid #eef0f2;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__head {
    padding: 12px 16px;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__body {
    padding: 14px 16px 16px;
  }

  .b2b-portal-order-form-page.b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-form__footer {
    padding: 14px 16px;
  }

  .b2b-portal-order-form-page.b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table th,
  .b2b-portal-order-form-page.b2b-order-form-wrapper.b2b-order-form--modern .b2b-order-table td {
    padding: 10px 12px;
  }

  .b2b-portal-order-form-page.b2b-order-form-wrapper.b2b-order-form--modern #b2b-product-search {
    height: 38px;
    min-height: 38px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__head {
    padding: 10px 12px;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-section__body {
    padding: 12px;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern #b2b-product-search {
    height: 40px;
    min-height: 40px;
    font-size: 16px;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-table tbody tr {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-table tbody td {
    padding: 6px 0;
    gap: 4px 10px;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-total-row {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-form__footer {
    padding: 10px 12px;
  }

  .b2b-portal-order-form-page.b2b-order-form--modern .b2b-order-submit-btn.button.button-primary,
  .b2b-portal-order-form-page.b2b-order-form--modern #b2b-submit-order.button.button-primary {
    width: 100%;
    min-height: 40px;
  }
}
