/*
 * 文件作用：
 *   pmgr-member-pricing.php 前台 /my-account/membership/ 端点的样式。
 *   仅在 my-account 系列页面加载（PHP 端 is_account_page() 守门）。
 *
 * 设计目标：
 *   - 视觉与 Blocksy (lumavet) 和 pmgr-site-frontend (iwamed/ipetmed) 共存
 *   - 不强制覆盖 WC 默认表单字段样式，仅做轻量收敛
 *   - 状态卡用色：pending 蓝、approved 绿、rejected/revoked 红
 */

/* ───── 容器 ───── */
.pmgr-mp-wrap {
  margin-bottom: 28px;
}

.pmgr-mp-h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1d;
}

.pmgr-mp-h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1d;
  padding-bottom: 10px;
  border-bottom: 2px solid #C8102E;
  display: inline-block;
}

/* ───── 状态卡 ───── */
.pmgr-mp-card {
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-left-width: 4px;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.pmgr-mp-card--state.pmgr-mp-state-none     { border-left-color: #9a9a9f; }
.pmgr-mp-card--state.pmgr-mp-state-pending  { border-left-color: #2563eb; background: #eff6ff; }
.pmgr-mp-card--state.pmgr-mp-state-approved { border-left-color: #16a34a; background: #f0fdf4; }
.pmgr-mp-card--state.pmgr-mp-state-rejected { border-left-color: #dc2626; background: #fef2f2; }
.pmgr-mp-card--state.pmgr-mp-state-revoked  { border-left-color: #dc2626; background: #fef2f2; }

.pmgr-mp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 4px 0;
  color: #3a3a3f;
}

.pmgr-mp-label {
  color: #6b6b73;
  min-width: 96px;
}

.pmgr-mp-value {
  color: #1a1a1d;
}

.pmgr-mp-type-vet_doctor { color: #16a34a; }
.pmgr-mp-type-dealer     { color: #C8102E; }

.pmgr-mp-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
}

/* ───── 表单 ───── */
.pmgr-mp-form {
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-radius: 8px;
  padding: 22px 24px;
}

.pmgr-mp-field {
  margin-bottom: 14px;
}

.pmgr-mp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3f;
  margin-bottom: 6px;
}

.pmgr-mp-field label .required {
  color: #C8102E;
  margin-left: 2px;
}

.pmgr-mp-field input[type="text"],
.pmgr-mp-field select {
  width: 100%;
  padding: 9px 11px;
  font-size: 14px;
  color: #1a1a1d;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}

.pmgr-mp-field input[type="text"]:focus,
.pmgr-mp-field select:focus {
  outline: none;
  border-color: #C8102E;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.pmgr-mp-field input[type="file"] {
  font-size: 13px;
  color: #3a3a3f;
}

.pmgr-mp-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b6b73;
}

.pmgr-mp-actions {
  margin-top: 18px;
}

.pmgr-mp-submit,
.pmgr-mp-cancel {
  padding: 10px 26px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer;
}

.pmgr-mp-submit {
  color: #ffffff !important;
  background: #C8102E !important;
  border: 0 !important;
}

.pmgr-mp-submit:hover {
  background: #a40d24 !important;
}

.pmgr-mp-cancel {
  color: #6b6b73 !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
}

.pmgr-mp-cancel:hover {
  border-color: #C8102E !important;
  color: #C8102E !important;
}

.pmgr-mp-cancel-area {
  background: #ffffff;
  border: 1px solid #e5e6ea;
  border-radius: 8px;
  padding: 18px 20px;
}

.pmgr-mp-cancel-area small {
  display: block;
  margin-top: 8px;
  color: #6b6b73;
  font-size: 12px;
}

/* ───── 消息行 ───── */
.pmgr-mp-msg {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 18px;
  line-height: 1.5;
}

.pmgr-mp-msg.is-error   { color: #b91c1c; }
.pmgr-mp-msg.is-success { color: #047857; }
.pmgr-mp-msg.is-info    { color: #2563eb; }

/* ───── 响应式 ───── */
@media (max-width: 640px) {
  .pmgr-mp-form,
  .pmgr-mp-card,
  .pmgr-mp-cancel-area {
    padding: 16px 14px;
  }
  .pmgr-mp-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .pmgr-mp-label {
    min-width: auto;
  }
}
