/* EasyMBoxie /pricing minimal styles – scope to .emb-pricing only */
.emb-pricing {
  --emb-max: 1040px;
  --emb-gap: 16px;
  --emb-radius: 14px;
  --emb-border: #e5e7eb; /* gray-200 */
  --emb-muted: #6b7280;  /* gray-500 */
  --emb-bg: #fff;
  --emb-shadow: 0 6px 20px rgba(0,0,0,.06);
  max-width: var(--emb-max);
  margin: 32px auto;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.6;
}
.emb-pricing__title { font-size: 28px; margin: 0 0 10px; }
.emb-pricing__badge { color: var(--emb-muted); margin-bottom: 20px; }

.emb-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--emb-gap);
  margin-bottom: 24px;
}

.emb-pricecard {
  background: var(--emb-bg);
  border: 1px solid var(--emb-border);
  border-radius: var(--emb-radius);
  box-shadow: var(--emb-shadow);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.emb-pricecard__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.emb-pricecard__title { font-size: 18px; margin: 0; }
.emb-pricecard__price { font-size: 24px; font-weight: 700; }
.emb-pricecard__cur { font-size: 14px; margin-left: 2px; color: var(--emb-muted); }
.emb-pricecard__per { font-size: 13px; margin-left: 6px; color: var(--emb-muted); }
.emb-pricecard__meta { color: var(--emb-muted); font-size: 14px; }
.emb-pricecard__tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--emb-border); font-size: 12px; color: #374151;
}

/* Buttons – theme가 없을 수 있으니 기본 스타일 보장 */
.emb-pricing .button {
  display: inline-block; width: 100%;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid #2563eb; background: #2563eb; color: #fff;
  text-align: center; font-weight: 600; cursor: pointer;
}
.emb-pricing .button:hover { filter: brightness(0.98); }
.emb-pricing .button[disabled],
.emb-pricing .button:disabled {
  background: #e5e7eb; border-color: #e5e7eb; color: #9ca3af; cursor: not-allowed;
}

/* Compare table (we used 'widefat striped' in view; re-skin it for frontend) */
.emb-compare { margin-top: 28px; }
.emb-compare h2 { font-size: 22px; margin: 0 0 12px; }
.emb-compare .widefat { width: 100%; border-collapse: collapse; border: 1px solid var(--emb-border); border-radius: var(--emb-radius); overflow: hidden; }
.emb-compare .widefat th,
.emb-compare .widefat td { padding: 10px 12px; border-bottom: 1px solid var(--emb-border); }
.emb-compare .widefat thead th { background: #f9fafb; text-align: left; font-weight: 700; }
.emb-compare .widefat.striped tbody tr:nth-child(even) { background: #fbfbfc; }

/* Legal */
.emb-pricing__legal { color: var(--emb-muted); font-size: 14px; margin-top: 16px; }
.emb-pricing__legal a { color: #2563eb; text-decoration: underline; }

/* Small screens */
@media (max-width: 480px) {
  .emb-pricing__title { font-size: 24px; }
  .emb-pricecard__price { font-size: 22px; }
}

/* =========================
   EasyMBox Billing (/billing)
   ========================= */
.emb-billing {
  --emb-max: 960px;
  --emb-gap: 16px;
  --emb-radius: 14px;
  --emb-border: #e5e7eb;  /* gray-200 */
  --emb-muted: #64748b;   /* gray-500 */
  --emb-fg: #0f172a;      /* slate-900 */
  --emb-fg-sub: #1f2937;  /* gray-800 */
  --emb-bg: #ffffff;
  --emb-bg-soft: #f9fafb; /* gray-50 */
  --emb-accent: #102c57;  /* 브랜드 톤 */
  --emb-accent-2: #1d4ed8;/* 파란 액센트 */
  --emb-danger: #991b1b;  /* red-800 */
  --emb-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* 컨테이너: 기존 마크업은 .emb-billing-container 이므로 래퍼 추가 */
.emb-billing-container { 
  max-width: 960px; margin: 40px auto; padding: 0 16px;
  font-size: 16px; line-height: 1.6; color: var(--emb-fg);
}
.emb-billing .emb-title { font-size: 26px; font-weight: 800; margin: 0; }
.emb-billing .emb-subtitle { color: var(--emb-muted); margin: 6px 0 0; }

.emb-billing .emb-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px;
}

/* 배너(성공/대기/실패) */
.emb-billing .emb-banner {
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
  background: #0b1530; color: #dbeafe; border: 1px solid #1f3b82;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.emb-billing .emb-banner.success { background: #0f2e1f; color:#d1fae5; border-color:#065f46; }
.emb-billing .emb-banner.pending { background: #102c57; color:#e0e7ff; border-color:#1d4ed8; }
.emb-billing .emb-banner.fail    { background: #3b0b0b; color:#fee2e2; border-color:#7f1d1d; }

/* 버튼: 프런트 전용. 어드민보다 구체적 셀렉터(.emb-billing …)로 우선순위 확보 */
.emb-billing .emb-btn{
  appearance:none; border:1px solid #1f3b82; color:#0f172a; background:#e6eefc;
  padding:8px 12px; border-radius:10px; cursor:pointer; font-size:14px;
  display:inline-flex; align-items:center; gap:6px; text-decoration:none;
  box-shadow:0 4px 10px rgba(0,0,0,.06); font-weight:600;
}
.emb-billing .emb-btn:hover{ filter: brightness(0.98); }
.emb-billing .emb-btn.danger{
  background:#3b0b0b; border-color:#7f1d1d; color:#fee2e2;
}
.emb-billing .emb-btn.danger:hover{ background:#4a0e0e; }

/* 카드 */
.emb-billing .emb-card{
  background: var(--emb-bg);
  border: 1px solid var(--emb-border);
  border-radius: var(--emb-radius);
  margin-bottom: 18px;
  box-shadow: var(--emb-shadow);
  overflow: hidden;
}
.emb-billing .emb-card-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; background: var(--emb-bg-soft);
}
.emb-billing .emb-card-title{ margin:0; font-size:18px; color: var(--emb-fg-sub); }
.emb-billing .emb-card-body{ padding:16px; }
.emb-billing .emb-card-foot{ padding:12px 16px; border-top:1px solid var(--emb-border); background: #fafafa; }

/* 현재 플랜 배지/상태 */
.emb-billing .emb-badge{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:#eef2ff; border:1px solid #c7d2fe; color:#3730a3; font-weight:700;
}
.emb-billing .emb-status{ color:#1d4ed8; font-weight:700; }

/* 플랜 그리드 */
.emb-billing .emb-plan-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width: 720px){ .emb-billing .emb-plan-grid{ grid-template-columns:1fr; } }

.emb-billing .emb-label{ font-size:12px; color:#6b7280; margin-bottom:6px; }
.emb-billing .emb-value{ font-size:16px; color:#0f172a; }

/* 테이블 */
.emb-billing .emb-table-wrap{ overflow:auto; }
.emb-billing .emb-table{
  width:100%; border-collapse: separate; border-spacing:0; font-size:14px;
  border:1px solid var(--emb-border); border-radius:12px; overflow:hidden;
}
.emb-billing .emb-table thead th{
  position: sticky; top: 0; background: var(--emb-bg-soft);
  color:#111827; text-align:left; font-weight:700; border-bottom:1px solid var(--emb-border);
  padding:10px 12px;
}
.emb-billing .emb-table td{
  padding:10px 12px; border-bottom:1px solid var(--emb-border); color:#111827;
}
.emb-billing .emb-table tbody tr:hover{ background:#fafafa; }
.emb-billing .emb-muted{ color:#94a3b8; }

/* 도움말 */
.emb-billing .emb-help{ margin-top:8px; }
.emb-billing .emb-help-text{ color:#6b7280; }
.emb-billing .emb-help-list{ color:#6b7280; margin:8px 0 0 18px; }

/* 소형 화면 */
@media (max-width: 480px) {
  .emb-billing-container{ margin:24px auto; }
  .emb-billing .emb-title{ font-size:22px; }
}
