.bhf-form-steps,
.bhf-order-setup-card,
.bhf-order-summary-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}

.bhf-step-list {
  margin: 12px 0 0 18px;
}

.bhf-step-list li + li {
  margin-top: 8px;
}

.bhf-order-setup-grid,
.bhf-order-summary-card {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bhf-order-setup-grid p {
  margin: 0;
}

.bhf-order-setup-grid input[type="file"],
.bhf-order-setup-grid select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bhf-logo-upload-field {
  grid-column: 1 / -1;
}

.bhf-field-note {
  display: block;
  margin-top: 6px;
}

.bhf-order-summary-logo,
.bhf-order-summary-text {
  min-width: 0;
}

.bhf-order-summary-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.bhf-order-summary-logo img {
  width: 100%;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.bhf-product-form,
.bhf-approval-section {
  margin: 1.5em 0;
}

.bhf-product-form {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.bhf-help-text,
.bhf-pricing-note,
.bhf-total-wrap,
.bhf-mockup-help-text,
.bhf-player-subtitle,
.bhf-approval-section-header p,
.bhf-approval-policy {
  color: #4b5563;
}

.bhf-table-wrap {
  overflow-x: auto;
}

table.bhf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.bhf-table th,
.bhf-table td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  vertical-align: middle;
}

.bhf-table th {
  background: #f8fafc;
  font-weight: 600;
}

.bhf-table input,
.bhf-table select,
.bhf-change-grid input,
.bhf-change-grid select,
.bhf-change-grid textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bhf-controls,
.bhf-total-wrap,
.bhf-approval-actions,
.bhf-change-submit {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.bhf-total-wrap {
  margin-top: 14px;
}

.bhf-approval-section {
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.bhf-approval-section-header {
  margin-bottom: 18px;
}

.bhf-approval-section h2 {
  margin-bottom: 6px;
}

.bhf-approval-grid {
  display: grid;
  gap: 18px;
}

.bhf-approval-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.bhf-approval-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #eef2f7;
}

.bhf-approval-card-header h3 {
  margin: 0 0 3px;
}

.bhf-player-subtitle {
  margin: 0;
  font-size: 0.95em;
}

.bhf-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 700;
  white-space: nowrap;
}

.bhf-status-badge-awaiting {
  background: #f3f4f6;
  color: #374151;
}

.bhf-status-badge-review {
  background: #dbeafe;
  color: #1d4ed8;
}

.bhf-status-badge-approved {
  background: #dcfce7;
  color: #15803d;
}

.bhf-status-badge-changes {
  background: #fef3c7;
  color: #b45309;
}

.bhf-status-badge-locked {
  background: #fee2e2;
  color: #b91c1c;
}

.bhf-status-approved {
  border-color: #bbf7d0;
}

.bhf-status-changes {
  border-color: #fde68a;
}

.bhf-status-review {
  border-color: #bfdbfe;
}

.bhf-status-locked {
  border-color: #fecaca;
}

.bhf-approval-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 300px);
  gap: 18px;
  padding: 18px;
}

.bhf-details-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.bhf-details-table th,
.bhf-details-table td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.bhf-details-table th {
  width: 32%;
  background: #f8fafc;
  font-weight: 700;
}

.bhf-details-table-compact {
  margin-top: 10px;
}

.bhf-approval-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.bhf-approval-banner-approved {
  background: #f0fdf4;
  color: #166534;
}

.bhf-approval-banner-changes {
  background: #fffbeb;
  color: #92400e;
}

.bhf-approval-banner-review {
  background: #eff6ff;
  color: #1d4ed8;
}

.bhf-approval-banner-locked {
  background: #fef2f2;
  color: #b91c1c;
}

.bhf-approval-policy {
  margin: 0 0 10px;
  font-size: 0.95em;
}

.bhf-approval-policy-inline {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
}

.bhf-existing-request {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  background: #fcfcfd;
}

.bhf-existing-request h4,
.bhf-change-panel h4 {
  margin: 0 0 10px;
}

.bhf-approval-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bhf-customer-mockup,
.bhf-no-mockup {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
  padding: 14px;
  text-align: center;
}

.bhf-no-mockup {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.bhf-mockup-thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  text-decoration: none;
}

.bhf-customer-mockup img {
  width: 100%;
  max-width: 240px;
  max-height: 240px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.bhf-approval-form {
  padding: 0 18px 18px;
}

.bhf-approved-button[disabled] {
  opacity: 1;
  cursor: default;
}

.bhf-change-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}

.bhf-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bhf-change-grid p {
  margin: 0;
}

.bhf-change-grid .bhf-change-notes {
  grid-column: 1 / -1;
}

.bhf-is-hidden {
  display: none;
}

.bhf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  padding: 24px;
}

.bhf-lightbox.is-open {
  display: flex;
}

.bhf-lightbox-inner {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
}

.bhf-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  background: #fff;
}

.bhf-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .bhf-approval-card-body,
  .bhf-change-grid {
    grid-template-columns: 1fr;
  }

  .bhf-approval-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bhf-details-table th {
    width: 42%;
  }
}

.bhf-locked-button {
  opacity: 1 !important;
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

@media (max-width: 782px) {
  .bhf-order-setup-grid,
  .bhf-order-summary-card {
    grid-template-columns: 1fr;
  }
}
