.promote-email-only-tabs .tab-item:first-child {
  width: 148px;
}

.promote-email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 12px;
  width: 100%;
}

.promote-email-code-button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #0878d1, #0053a6);
  box-shadow: 0 8px 18px rgba(0, 83, 166, 0.2);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.promote-email-code-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(0, 83, 166, 0.26);
}

.promote-email-code-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.promote-email-code-error {
  min-height: 18px;
  margin-top: 4px;
  color: #f04438;
  font-size: 12px;
  line-height: 18px;
}

.promote-email-code-error.is-success {
  color: #079455;
}

@media (max-width: 640px) {
  .promote-email-code-row {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 8px;
  }

  .promote-email-code-button {
    padding: 0 10px;
    font-size: 13px;
  }
}

#wm-promote-code-fallback { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
#wm-promote-code-fallback .promote-email-code-input:focus { outline: 2px solid rgba(8,120,209,.25); border-color: #0878d1; }

/* 对齐到邮箱输入框列，避免向左偏移 */
.promote-email-code-item { width: 100%; box-sizing: border-box; }
.promote-email-code-item .el-form-item__content { box-sizing: border-box; }
.promote-email-code-item .promote-email-code-row { width: 100%; }
.promote-email-code-item .promote-email-code-row .el-input { flex: 1 1 auto; min-width: 0; }
.promote-email-code-item .promote-email-code-input { width: 100%; box-sizing: border-box; }

/* Privacy route: inherited registration negative margin and global code fallback. */
body:has(.merchantSettled-wap .step-div > .content) .merchantSettled-wap .step-div { margin-top: 0 !important; }
body:has(.merchantSettled-wap .step-div > .content) #wm-promote-code-fallback { display: none !important; }
