.b2biz-page .site-main,
.b2biz-user-page {
  width: 100%;
}

.b2biz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.b2biz-form-row {
  margin-bottom: 18px;
}

.b2biz-form-row label {
  display: block;
  color: #121212;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.b2biz-form-row input,
.b2biz-form-row textarea,
.b2biz-form-row select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e5e9ef;
  border-radius: 4px;
  background: #fff;
  color: #121212;
  padding: 10px 12px;
  line-height: 1.5;
  box-sizing: border-box;
}

.b2biz-form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.b2biz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.b2biz-muted {
  color: #8590a6;
  font-size: 13px;
}

.b2biz-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(0, 132, 255, .08);
  color: #0084ff;
  font-size: 12px;
}

.b2biz-status.pending,
.b2biz-status.unpaid {
  background: rgba(255, 153, 0, .12);
  color: #d98200;
}

.b2biz-status.approved,
.b2biz-status.published {
  background: rgba(38, 191, 128, .12);
  color: #15965e;
}

.b2biz-status.rejected,
.b2biz-status.disabled {
  background: rgba(255, 64, 64, .1);
  color: #e12d39;
}

.b2biz-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.b2biz-upload-item {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #edf0f5;
  background: #f7f8fa;
}

.b2biz-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.b2biz-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.b2biz-stat {
  padding: 14px;
  background: #f7f8fa;
  border-radius: 6px;
}

.b2biz-stat span {
  display: block;
  color: #8590a6;
  font-size: 12px;
  margin-bottom: 6px;
}

.b2biz-stat b {
  display: block;
  color: #121212;
  font-size: 20px;
  line-height: 1.2;
}

.b2biz-table {
  width: 100%;
  border-collapse: collapse;
}

.b2biz-table th,
.b2biz-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
  vertical-align: top;
}

.b2biz-table th {
  color: #8590a6;
  font-weight: 500;
}

.b2biz-title-badge,
.b2biz-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 153, 0, .12);
  color: #d98200;
  font-size: 12px;
  font-weight: 500;
}

.b2biz-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 980px;
}

.b2biz-admin-card {
  background: #fff;
  border: 1px solid #dcdcde;
  padding: 16px;
}

.b2biz-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.b2biz-admin-logo {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  margin: 0 8px 4px 0;
  vertical-align: middle;
}

.b2biz-admin-merchant-detail {
  padding: 10px 0;
  color: #1d2327;
}

.b2biz-admin-merchant-detail p {
  margin: 4px 0;
}

.b2biz-admin-license-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.b2biz-admin-license-list img {
  width: 72px;
  height: 72px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  object-fit: cover;
}

.b2biz-editor textarea {
  min-height: 260px;
}

.b2biz-apply-page .content-area {
  width: 100%;
}

.b2biz-apply-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.b2biz-apply-hero h1,
.b2biz-result-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 26px;
  font-weight: 600;
}

.b2biz-apply-hero p,
.b2biz-result-card p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

.b2biz-apply-hero p span,
.b2biz-result-card p span {
  color: #ff5a1f;
}

.b2biz-apply-flow {
  min-height: 520px;
  padding-bottom: 28px;
}

.b2biz-apply-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid #f0f2f5;
}

.b2biz-apply-tabs button {
  border: 0;
  background: transparent;
  color: #8b95a1;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}

.b2biz-apply-tabs button.active {
  color: #ff5a1f;
}

.b2biz-apply-tabs button.done {
  color: #16a085;
}

.b2biz-apply-tabs span {
  width: 1px;
  height: 16px;
  background: #d7dce2;
}

.b2biz-apply-panel {
  display: none;
  max-width: 940px;
}

.b2biz-apply-panel.active {
  display: block;
}

.b2biz-form-line {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 22px;
}

.b2biz-form-line > label:first-child {
  padding-top: 10px;
  color: #334155;
  font-size: 16px;
  font-weight: 400;
  text-align: right;
}

.b2biz-form-line input,
.b2biz-form-line select,
.b2biz-form-line textarea {
  max-width: 520px;
  min-height: 48px;
  border-color: #d8dde6;
  font-size: 15px;
}

.b2biz-form-line textarea {
  min-height: 96px;
}

.b2biz-short-input {
  max-width: 250px !important;
}

.b2biz-inline-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 790px;
}

.b2biz-inline-fields input,
.b2biz-inline-fields select {
  max-width: none;
}

.b2biz-upload-block {
  min-width: 0;
}

.b2biz-upload-button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  background: #fff;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  cursor: pointer;
  overflow: hidden;
}

.b2biz-upload-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #93d7b6;
  border-radius: 50%;
  color: #16a085;
  font-size: 18px;
  line-height: 1;
}

.b2biz-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.b2biz-upload-hint,
.b2biz-field-tip {
  display: inline-block;
  margin-left: 16px;
  color: #8b95a1;
  font-size: 14px;
  font-style: normal;
}

.b2biz-field-tip {
  color: #ff2d2d;
}

.b2biz-logo-upload .b2biz-upload-list,
.b2biz-license-upload .b2biz-upload-list {
  margin-top: 18px;
}

.b2biz-logo-upload .b2biz-upload-item,
.b2biz-logo-upload .b2biz-upload-placeholder,
.b2biz-license-upload .b2biz-upload-placeholder {
  width: 198px;
  height: 158px;
}

.b2biz-license-upload .b2biz-upload-item {
  width: 198px;
  height: 158px;
}

.b2biz-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d7dce2;
  background: #fff;
  color: #111827;
  text-align: center;
}

.b2biz-upload-placeholder strong {
  font-size: 16px;
  font-weight: 500;
}

.b2biz-upload-placeholder em {
  margin-top: 14px;
  color: #8b95a1;
  font-size: 14px;
  font-style: normal;
}

.b2biz-agree {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  max-width: max-content;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #eef0f4;
  border-radius: 4px;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

.b2biz-agree input {
  width: auto;
  min-height: auto;
}

.b2biz-agree a {
  color: #ff5a1f;
}

.b2biz-step-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 168px;
  margin-top: 10px;
}

.b2biz-step-actions button,
.b2biz-step-actions .button {
  min-width: 108px;
  min-height: 40px;
}

.b2biz-cert-state span {
  padding-top: 10px;
  color: #8b95a1;
  font-size: 16px;
}

.b2biz-result-card {
  max-width: 860px;
  padding: 4px 0 12px;
}

.b2biz-result-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
  color: #111827;
  font-size: 16px;
}

.b2biz-result-row b {
  color: #334155;
  font-weight: 400;
  text-align: right;
}

.b2biz-danger {
  color: #ef4444;
}

.b2biz-submit-page .content-area {
  width: 100%;
}

.b2biz-submit-page .site-main {
  max-width: 1180px;
  margin: 0 auto;
}

.b2biz-submit-hero h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 28px;
  line-height: 1.25;
}

.b2biz-submit-hero p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.b2biz-submit-hero p span {
  color: #ff5a1f;
}

.b2biz-shop-form {
  padding: 22px 28px;
}

.b2biz-submit-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}

.b2biz-submit-line > label {
  padding-top: 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 400;
  text-align: right;
}

.b2biz-submit-line > label span,
.b2biz-option-row > label span {
  color: #ff2500;
  margin-right: 3px;
}

.b2biz-submit-line em,
.b2biz-option-fill em {
  padding-top: 11px;
  color: #8b95a1;
  font-size: 14px;
  font-style: normal;
}

.b2biz-submit-field input,
.b2biz-submit-field select,
.b2biz-submit-field textarea,
.b2biz-option-fill input,
.b2biz-option-fill textarea {
  width: 100%;
  border: 1px solid #dfe3ea;
  border-radius: 3px;
  background: #fff;
  color: #111827;
  box-sizing: border-box;
}

.b2biz-submit-field input,
.b2biz-submit-field select,
.b2biz-option-fill input {
  min-height: 42px;
  padding: 8px 12px;
}

.b2biz-submit-field textarea,
.b2biz-option-fill textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.b2biz-editor-line {
  grid-template-columns: 92px minmax(0, 1fr);
}

.b2biz-editor-shell {
  border: 1px solid #dfe3ea;
  background: #fff;
}

.b2biz-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 42px;
  border-bottom: 1px solid #edf0f5;
}

.b2biz-editor-toolbar span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-right: 1px solid #edf0f5;
  color: #5f6b7a;
  font-size: 14px;
}

.b2biz-editor-toolbar span:nth-last-child(2) {
  color: #ff2600;
}

.b2biz-editor-shell textarea {
  min-height: 228px;
  border: 0;
  border-radius: 0;
}

.b2biz-editor-tip {
  padding: 12px;
  border-top: 1px solid #edf0f5;
  color: #8b95a1;
  font-size: 14px;
  text-align: center;
}

.b2biz-shop-thumb-list {
  display: block;
  margin-top: 12px;
}

.b2biz-shop-thumb-list .b2biz-upload-item,
.b2biz-shop-thumb-placeholder {
  width: 460px;
  max-width: 100%;
  height: 372px;
}

.b2biz-shop-thumb-placeholder strong {
  font-size: 18px;
  font-weight: 600;
}

.b2biz-shop-thumb-placeholder strong span {
  color: #ff2500;
}

.b2biz-shop-thumb-placeholder em {
  max-width: 340px;
  line-height: 1.7;
}

.b2biz-inline-unit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2biz-inline-unit b {
  flex: 0 0 auto;
  color: #6b7280;
  font-weight: 400;
}

.b2biz-service-section {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-top: 1px solid #edf0f5;
  background: #fbfcfe;
}

.b2biz-section-title {
  padding: 24px 12px 0 0;
  color: #0f172a;
  font-size: 16px;
  text-align: right;
}

.b2biz-service-body {
  padding: 16px 0 0;
  background: #fff;
}

.b2biz-radio-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.b2biz-radio-tabs label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid #e4e8ef;
  background: #f8fafc;
  cursor: pointer;
}

.b2biz-radio-tabs input,
.b2biz-radio-inline input,
.b2biz-pill-options input {
  accent-color: #19b786;
}

.b2biz-radio-tabs span {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.b2biz-install-price {
  width: 140px !important;
}

.b2biz-option-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.b2biz-option-row > label {
  padding-top: 8px;
  color: #111827;
  font-size: 15px;
  font-weight: 400;
  text-align: right;
}

.b2biz-pill-options,
.b2biz-radio-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.b2biz-pill-options label,
.b2biz-radio-inline label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #111827;
}

.b2biz-pill-options label span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  background: #d1d5db;
  color: #fff;
  font-size: 14px;
}

.b2biz-option-fill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.b2biz-option-fill textarea,
.b2biz-option-fill input {
  max-width: 520px;
}

.b2biz-help-box {
  margin: 6px 0 0;
  padding: 16px 20px;
  border-top: 1px solid #edf0f5;
  background: #f5f8fc;
  color: #1f2937;
  line-height: 1.8;
}

.b2biz-help-box strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 16px;
}

.b2biz-help-box p {
  margin: 0;
}

.b2biz-submit-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 6px 106px;
}

.b2biz-submit-actions button {
  min-width: 128px;
  min-height: 42px;
}

.b2biz-submit-actions span {
  color: #8b95a1;
  font-size: 14px;
}

.b2biz-error input,
.b2biz-error select,
.b2biz-error textarea,
.b2biz-error .b2biz-upload-placeholder,
.b2biz-error .b2biz-agree {
  border-color: #ef4444 !important;
}

@media (max-width: 900px) {
  .b2biz-grid,
  .b2biz-admin-grid {
    grid-template-columns: 1fr;
  }

  .b2biz-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b2biz-form-line,
  .b2biz-result-row,
  .b2biz-submit-line,
  .b2biz-editor-line,
  .b2biz-service-section,
  .b2biz-option-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .b2biz-form-line > label:first-child,
  .b2biz-result-row b,
  .b2biz-submit-line > label,
  .b2biz-section-title,
  .b2biz-option-row > label {
    padding-top: 0;
    text-align: left;
  }

  .b2biz-form-line input,
  .b2biz-form-line select,
  .b2biz-form-line textarea,
  .b2biz-short-input {
    max-width: 100% !important;
  }

  .b2biz-step-actions {
    margin-left: 0;
  }

  .b2biz-shop-form {
    padding: 18px;
  }

  .b2biz-submit-line em {
    padding-top: 0;
  }

  .b2biz-service-body {
    padding-top: 0;
  }

  .b2biz-submit-actions {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .b2biz-apply-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .b2biz-apply-hero h1,
  .b2biz-result-card h2 {
    font-size: 22px;
  }

  .b2biz-apply-tabs {
    gap: 8px;
    overflow-x: auto;
  }

  .b2biz-apply-tabs button {
    flex: 0 0 auto;
    font-size: 15px;
  }

  .b2biz-inline-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .b2biz-upload-hint,
  .b2biz-field-tip {
    display: block;
    margin: 8px 0 0;
  }

  .b2biz-summary {
    grid-template-columns: 1fr;
  }

  .b2biz-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .b2biz-radio-tabs,
  .b2biz-option-fill,
  .b2biz-inline-unit {
    align-items: stretch;
    flex-direction: column;
  }

  .b2biz-radio-tabs label,
  .b2biz-pill-options label,
  .b2biz-radio-inline label {
    width: 100%;
  }

  .b2biz-pill-options label span {
    flex: 1;
  }

  .b2biz-editor-toolbar span {
    min-height: 36px;
    padding: 0 9px;
  }

  .b2biz-shop-thumb-list .b2biz-upload-item,
  .b2biz-shop-thumb-placeholder {
    height: 260px;
  }
}
