/**
 * MobileN Membership - 스타일
 */

/* ── 등급 배지 ── */
.mlm-grade-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

/* ── 할인 표시 ── */
.mlm-discount-badge {
  color: #d9534f;
  font-weight: 600;
}

/* ── 접근 제한 안내 ── */
.mlm-access-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.mlm-access-notice .button {
  margin-top: 10px;
}

/* ── 카테고리 블러 처리 ── */
.mlm-restricted-product .attachment-woocommerce_thumbnail,
.mlm-restricted-product .price {
  filter: blur(6px);
  pointer-events: none;
}

.mlm-restricted-product .mlm-restricted-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  z-index: 10;
}

/* ── 마이페이지 멤버십 ── */
.mlm-membership-info {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.mlm-membership-info h3 {
  margin-top: 0;
  font-size: 18px;
}

.mlm-benefits {
  display: flex;
  gap: 20px;
  margin: 16px 0;
}

.mlm-benefit-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  flex: 1;
}

.mlm-benefit-item .mlm-benefit-value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.mlm-benefit-item .mlm-benefit-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* ── 유료 등급 카드 ── */
.mlm-paid-grades {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.mlm-grade-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 250px;
  text-align: center;
}

.mlm-grade-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mlm-grade-card .mlm-grade-price {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.mlm-grade-card .button {
  width: 100%;
}

/* ── 구독 이력 테이블 ── */
.mlm-subscription-table th,
.mlm-subscription-table td {
  text-align: center;
  padding: 10px 8px;
}

/* ── 소셜 로그인 ── */
.mlm-social-login {
  margin-top: 20px;
  text-align: center;
}

.mlm-social-divider {
  position: relative;
  margin: 20px 0;
  text-align: center;
}

.mlm-social-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #ddd;
}

.mlm-social-divider span {
  background: #fff;
  padding: 0 16px;
  position: relative;
  color: #999;
  font-size: 13px;
}

.mlm-social-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
}

.mlm-social-kakao {
  background: #FEE500;
  color: #000;
}

.mlm-social-naver {
  background: #03C75A;
  color: #fff;
}

.mlm-social-google {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

/* ── 관리자: 등급 테이블 ── */
#mlm-grades-table .mlm-drag-handle {
  font-size: 18px;
  color: #999;
}

#mlm-grades-table .mlm-drag-handle:hover {
  color: #333;
}

#mlm-grades-table .ui-sortable-helper {
  background: #f0f0f0;
}

/* ── 관리자: 등급 폼 ── */
#mlm-grade-form .form-table th {
  width: 120px;
}

/* ── 비회원 주문조회 ── */
.mlm-guest-order-tracking {
  margin-top: 16px;
  text-align: center;
}

.mlm-guest-order-tracking a {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.mlm-guest-order-tracking a:hover {
  background: #f5f5f5;
  color: #333;
}

/* ── 회원가입 체크항목 라인하이트 ── */
.woocommerce-form-register .form-row label.woocommerce-form__label {
  line-height: 1.3;
  margin-bottom: 0;
  font-size: 13px;
}

.woocommerce-form-register .form-row {
  margin-bottom: 8px !important;
}
