/* ==========================================================================
   크리에이터 샵 MYPAGE — 통합 마이페이지(/my-account/) 리뉴얼
   범위: body.is-mypage 아래에서만 동작 (csp-core 가 클래스를 붙이고 renewal.php 가 이 파일을 싣는다).
   문법: 흰 바탕 + 검정 + 얇은 선. 골드는 활성 표시에만 좁게. 카드 나열 대신 선과 크기 위계.
   플러그인 마크업은 건드리지 않는다: .fluxmember-mypage__* (플럭스멤버) · .fhs-dash__* (플럭스샵 대시보드)
   1. 머리말  2. 레이아웃·사이드  3. 대시보드  4. 그 밖의 탭  5. 반응형  6. 모션 줄이기
   ========================================================================== */

/* ===================
   1. 머리말
   =================== */
.is-mypage .mp-head {
	max-width: 1120px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad-x, 24px) 0;
}
.is-mypage .mp-head__en {
	font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
	color: var(--c-gold-ink); margin: 0 0 10px;
}
.is-mypage .mp-head__title {
	font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--rn-ink, #111);
	margin: 0; padding-bottom: 24px; border-bottom: 1px solid var(--rn-ink, #111);
}

/* ===================
   2. 레이아웃·사이드
   =================== */
.is-mypage .fluxmember-mypage {
	grid-template-columns: 220px minmax(0, 1fr);
	gap: clamp(32px, 6vw, 80px);
	max-width: 1120px; margin: 0 auto; min-height: 0;
	padding: 40px var(--pad-x, 24px) clamp(64px, 9vw, 112px);
}

.is-mypage .fluxmember-mypage__nav {
	background: transparent; border: 0; border-radius: 0; padding: 0; top: 120px;
}

/* 사용자: 이니셜 원 대신 이름·이메일만. 기본 아바타 그림은 숨긴다 */
.is-mypage .fluxmember-mypage__user-card {
	display: block; padding: 0 0 20px; margin: 0 0 8px; border-bottom: 1px solid var(--rn-line, #e6e2d8);
}
.is-mypage .fluxmember-mypage__avatar { display: none; }
.is-mypage .fluxmember-mypage__user-name {
	font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--rn-ink, #111); line-height: 1.3;
}
.is-mypage .fluxmember-mypage__user-name::after { content: '님'; font-weight: 400; margin-left: 2px; }
.is-mypage .fluxmember-mypage__user-email {
	font-size: 13px; color: var(--rn-muted, #5c5c5c); margin-top: 4px; max-width: 100%;
}

/* 메뉴: 글자만 — 얇은 선으로 나누고 활성은 검정 굵게 + 왼쪽 골드 막대 */
.is-mypage .fluxmember-mypage__menu-item a {
	position: relative; padding: 13px 0 13px 14px; min-height: 44px;
	font-size: 15px; letter-spacing: -0.01em; color: #555; background: transparent;
	border-bottom: 1px solid var(--rn-line, #e6e2d8); border-left: 0;
	transition: color .2s ease, padding-left .2s ease;
}
.is-mypage .fluxmember-mypage__menu-item a::before {
	content: ''; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--c-gold);
	transform: translateY(-50%); transition: height .2s ease;
}
.is-mypage .fluxmember-mypage__menu-item a .dashicons { display: none; }
.is-mypage .fluxmember-mypage__menu-item a:hover { color: var(--rn-ink, #111); background: transparent; padding-left: 18px; }
.is-mypage .fluxmember-mypage__menu-item a:hover::before { height: 12px; }
.is-mypage .fluxmember-mypage__menu-item.is-active a {
	color: var(--rn-ink, #111); font-weight: 700; background: transparent; border-left: 0;
}
.is-mypage .fluxmember-mypage__menu-item.is-active a::before { height: 18px; }
.is-mypage .fluxmember-mypage__menu-item, .is-mypage .fluxmember-mypage__menu-item a { border-radius: 0; }
.is-mypage .fluxmember-mypage__menu-item a:focus-visible { outline: 2px solid var(--rn-ink, #111); outline-offset: 2px; }

.is-mypage .fluxmember-mypage__menu-item--logout { margin-top: 0; padding-top: 0; border-top: 0; }
.is-mypage .fluxmember-mypage__menu-item--logout a { color: #767676; font-size: 14px; border-bottom: 0; }
.is-mypage .fluxmember-mypage__menu-item--logout a:hover { color: var(--rn-ink, #111); }

/* 테마 기본 본문 위 여백(100px)이 머리말 위에 겹쳐 쌓이는 것을 걷어낸다 */
.is-mypage .page-wrap { padding-top: 0; }

.is-mypage .fluxmember-mypage__title {
	font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 28px; color: var(--rn-ink, #111);
}

/* ===================
   3. 대시보드 (플럭스샵)
   =================== */
.is-mypage .fhs-dash .fhs-mypage-title { display: none; }
.is-mypage .fhs-dash__greet { margin: 0 0 40px; }
.is-mypage .fhs-dash__hello {
	font-size: clamp(24px, 3vw, 32px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.3; color: var(--rn-ink, #111); margin: 0;
}
.is-mypage .fhs-dash__hello strong { font-weight: 700; }
.is-mypage .fhs-dash__hello-sub { font-size: 15px; color: var(--rn-muted, #5c5c5c); margin: 8px 0 0; }

.is-mypage .fhs-dash__subtitle {
	font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--rn-ink, #111); margin: 0 0 14px;
}

/* 주문 처리 현황: 상자 없이 굵은 위선 + 얇은 아래선. 숫자가 주인공(tabular-nums), 0 은 흐리게 */
.is-mypage .fhs-dash__orders {
	background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--rn-ink, #111); border-bottom: 1px solid var(--rn-line, #e6e2d8);
	padding: 0; align-items: stretch;
}
.is-mypage .fhs-dash__flow { padding: 8px 0; }
.is-mypage .fhs-dash__stat { padding: 22px 8px; gap: 12px; min-height: 44px; }
.is-mypage .fhs-dash__num {
	font-size: clamp(30px, 3.4vw, 42px); font-weight: 300; line-height: 1; color: #767676; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.is-mypage .fhs-dash__num.is-active { color: var(--rn-ink, #111); font-weight: 700; }
.is-mypage .fhs-dash__label { font-size: 14px; color: var(--rn-muted, #5c5c5c); font-weight: 500; }
.is-mypage .fhs-dash__stat:hover .fhs-dash__label { color: var(--rn-ink, #111); }
.is-mypage .fhs-dash__arrow { color: #d8d3c8; font-size: 18px; }
.is-mypage .fhs-dash__claims {
	border-left: 1px solid var(--rn-line, #e6e2d8); padding: 0 0 0 clamp(16px, 2.4vw, 32px); margin: 12px 0 12px clamp(8px, 1.6vw, 24px); gap: 10px; min-width: 96px;
}
.is-mypage .fhs-dash__claim { font-size: 14px; color: var(--rn-muted, #5c5c5c); }
.is-mypage .fhs-dash__claim b { font-variant-numeric: tabular-nums; font-weight: 500; color: #767676; }
.is-mypage .fhs-dash__claim b.is-active { color: var(--rn-ink, #111); font-weight: 700; }

/* 적립금·쿠폰: 같은 흰 카드 나열을 피한다 — 적립금은 검정 면(주), 나머지는 따뜻한 회색 면(보조) */
.is-mypage .fhs-dash__cards {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 32px 0 0;
}
.is-mypage .fhs-dash__card {
	display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 24px; border: 0; border-radius: 4px;
	background: var(--rn-warm, #f5f3ee); color: var(--rn-ink, #111); text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.is-mypage .fhs-dash__card:first-child { background: var(--rn-dark, #0b0b0b); color: #fff; }
.is-mypage .fhs-dash__card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .10); }
.is-mypage .fhs-dash__card-label { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--rn-muted, #5c5c5c); }
.is-mypage .fhs-dash__card:first-child .fhs-dash__card-label { color: var(--c-gold-lite); }
.is-mypage .fhs-dash__card-value {
	font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
	color: inherit; /* 검정 카드 위에서 글자가 사라지지 않게(기존 규칙은 색을 고정해 둠) */
}
.is-mypage .fhs-dash__card-value em { font-style: normal; font-size: 15px; font-weight: 500; margin-left: 4px; opacity: .7; }
.is-mypage .fhs-dash__card:focus-visible { outline: 2px solid var(--rn-ink, #111); outline-offset: 3px; }

/* 최근 주문: 카드 대신 행 목록 */
.is-mypage .fhs-dash__recent { margin-top: 48px; }
.is-mypage .fhs-dash__recent-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0; border-bottom: 1px solid var(--rn-ink, #111); padding-bottom: 12px; }
.is-mypage .fhs-dash__recent-head .fhs-dash__subtitle { margin: 0; }
.is-mypage .fhs-dash__more { font-size: 13px; color: var(--rn-muted, #5c5c5c); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.is-mypage .fhs-dash__more:hover { color: var(--rn-ink, #111); }
.is-mypage .fhs-dash__recent-list { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; }
.is-mypage .fhs-dash__order {
	display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 100px; align-items: center; gap: 16px;
	padding: 20px 0; border: 0; border-bottom: 1px solid var(--rn-line, #e6e2d8); background: transparent; text-decoration: none; color: var(--rn-ink, #111);
	transition: background-color .2s ease;
}
.is-mypage .fhs-dash__order:hover { background: #faf9f6; }
.is-mypage .fhs-dash__order-date { font-size: 13px; color: var(--rn-muted, #5c5c5c); font-variant-numeric: tabular-nums; }
.is-mypage .fhs-dash__order-name { font-size: 15px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-mypage .fhs-dash__order-qty { font-size: 13px; color: var(--rn-muted, #5c5c5c); font-weight: 400; margin-left: 8px; }
.is-mypage .fhs-dash__order-total { font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
/* 상태 뱃지: 색 대신 글자 + 얇은 테두리 (색만으로 정보 전달하지 않는다) */
.is-mypage .fhs-dash__order .fhs-badge {
	background: transparent; color: var(--rn-ink, #111); border: 1px solid var(--rn-line, #e6e2d8); border-radius: 999px;
	padding: 3px 10px; font-size: 12px; font-weight: 500; white-space: nowrap;
}

/* 빈 상태: 텍스트만 두지 않고 다음 행동(쇼핑)으로 이어지는 블록 */
.is-mypage .fhs-dash__empty {
	display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
	margin: 0; padding: 48px 16px; background: var(--rn-warm, #f5f3ee); border-radius: 4px; color: var(--rn-muted, #5c5c5c); font-size: 15px;
}
.is-mypage .fhs-dash__empty a {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px;
	background: var(--rn-ink, #111); color: #fff; font-weight: 600; text-decoration: none; border-radius: 999px; transition: background-color .2s ease;
}
.is-mypage .fhs-dash__empty a:hover { background: #000; }
.is-mypage .fhs-dash__empty a:focus-visible { outline: 2px solid var(--rn-ink, #111); outline-offset: 3px; }

/* 바로가기: 아이콘 카드 대신 굵은 위선 아래 글자 격자 */
.is-mypage .fhs-dash .fhs-dash__subtitle[style] { margin-top: 48px !important; }
.is-mypage .fhs-dash__links {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 24px; border-top: 1px solid var(--rn-ink, #111);
}
.is-mypage .fhs-dash__links a {
	display: flex; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 8px; min-height: 56px; padding: 0 2px;
	border: 0; border-bottom: 1px solid var(--rn-line, #e6e2d8); border-radius: 0; background: transparent;
	font-size: 15px; font-weight: 500; color: var(--rn-ink, #111); text-decoration: none; transition: padding .2s ease, color .2s ease;
}
.is-mypage .fhs-dash__links a .dashicons { display: none; }
.is-mypage .fhs-dash__links a::after { content: '→'; font-family: var(--font-en); color: var(--c-gold); transition: transform .2s ease; }
.is-mypage .fhs-dash__links a:hover { color: #000; padding-left: 6px; }
.is-mypage .fhs-dash__links a:hover::after { transform: translateX(4px); }
.is-mypage .fhs-dash__links a:focus-visible { outline: 2px solid var(--rn-ink, #111); outline-offset: -2px; }

/* ===================
   4. 그 밖의 탭 (주문내역·쿠폰·적립금·회원정보 …)
   =================== */
.is-mypage .fluxmember-mypage__content .fhs-mypage-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 28px; }
.is-mypage .fluxmember-mypage__content table { width: 100%; border-collapse: collapse; }
.is-mypage .fluxmember-mypage__content th {
	background: transparent; color: var(--rn-muted, #5c5c5c); font-size: 13px; font-weight: 500; text-align: left;
	padding: 12px 8px; border-top: 1px solid var(--rn-ink, #111); border-bottom: 1px solid var(--rn-line, #e6e2d8);
}
.is-mypage .fluxmember-mypage__content td { padding: 16px 8px; border-bottom: 1px solid var(--rn-line, #e6e2d8); font-size: 15px; }
/* 알림 수신 설정 표는 원장 스타일 그대로(위 규칙과 겹쳐 구분선이 어긋나지 않게) */
.is-mypage .fluxmember-mypage__content .fhc-notify-prefs__table td { padding: 12px 16px; border-bottom: 0; font-size: inherit; }

.is-mypage .fluxmember-form__group { margin-bottom: 20px; }
.is-mypage .fluxmember-form__label { font-size: 14px; font-weight: 600; color: var(--rn-ink, #111); margin-bottom: 8px; display: block; }
.is-mypage .fluxmember-form__input,
.is-mypage .fluxmember-form__textarea,
.is-mypage .fluxmember-mypage__content select {
	width: 100%; min-height: 48px; padding: 0 14px; font-size: 15px; color: var(--rn-ink, #111); background: #fff;
	border: 1px solid #d5d0c4; border-radius: 4px; transition: border-color .2s ease, box-shadow .2s ease;
}
.is-mypage .fluxmember-form__textarea { padding: 12px 14px; }
.is-mypage .fluxmember-form__input:focus,
.is-mypage .fluxmember-form__textarea:focus,
.is-mypage .fluxmember-mypage__content select:focus { outline: 0; border-color: var(--rn-ink, #111); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }

.is-mypage .fluxmember-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px;
	font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.is-mypage .fluxmember-btn--primary { background: var(--rn-ink, #111); color: #fff; border: 1px solid var(--rn-ink, #111); }
.is-mypage .fluxmember-btn--primary:hover { background: #000; }
.is-mypage .fluxmember-btn--secondary { background: #fff; color: var(--rn-ink, #111); border: 1px solid #cfcac0; }
.is-mypage .fluxmember-btn--secondary:hover { border-color: var(--rn-ink, #111); }
.is-mypage .fluxmember-btn:focus-visible { outline: 2px solid var(--rn-ink, #111); outline-offset: 3px; }

.is-mypage .fluxmember-subtabs { display: flex; gap: 24px; border-bottom: 1px solid var(--rn-line, #e6e2d8); margin-bottom: 28px; overflow-x: auto; overflow-y: hidden; }
.is-mypage .fluxmember-subtab {
	background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; min-height: 44px; font-size: 15px; color: #767676; cursor: pointer; white-space: nowrap;
}
.is-mypage .fluxmember-subtab.is-active { color: var(--rn-ink, #111); font-weight: 700; border-bottom-color: var(--c-gold); }

.is-mypage .fluxmember-mypage__content { word-break: keep-all; overflow-wrap: break-word; }

/* 회원정보 주소 검색 줄 — 인라인 스타일의 파랑 링크를 브랜드 톤으로, 글자가 세로로 쌓이지 않게 */
.is-mypage .fluxmember-address-manual { color: var(--rn-ink, #111) !important; font-size: 14px !important; white-space: nowrap; flex: 0 0 auto; min-height: 44px; padding: 0 8px; }
.is-mypage .fluxmember-address-search { white-space: nowrap; flex: 0 0 auto; width: auto; padding: 0 18px; }
/* 짧은 입력칸(우편번호)은 100% 폭 규칙에 덮이지 않게 — 옆의 버튼 두 개와 한 줄에 들어가야 한다 */
.is-mypage .fluxmember-form__input.fluxmember-form__input--short { width: auto; flex: 1 1 96px; min-width: 0; max-width: 200px; }

/* 상태 뱃지(주문·대시보드 공통): 색 알약 대신 글자 + 얇은 테두리. 상태는 글자로 전달한다 */
.is-mypage .fhs-badge {
	background: transparent; color: var(--rn-ink, #111); border: 1px solid #cfcac0; border-radius: 999px;
	padding: 3px 11px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.is-mypage .fhs-badge--shipped, .is-mypage .fhs-badge--delivered { border-color: var(--rn-ink, #111); }
.is-mypage .fhs-badge--cancelled, .is-mypage .fhs-badge--refunded { color: #767676; }

/* 빈 상태: 따뜻한 회색 면으로 */
.is-mypage .fluxmember-mypage__content .fhs-empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	margin: 16px 0 0; padding: 56px 16px; background: var(--rn-warm, #f5f3ee); border-radius: 4px; text-align: center; color: var(--rn-muted, #5c5c5c); font-size: 15px;
}

.is-mypage .mp-empty__cta {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; padding: 0 32px;
	background: var(--rn-ink, #111); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 999px; transition: background-color .2s ease;
}
.is-mypage .mp-empty__cta:hover { background: #000; }
.is-mypage .mp-empty__cta:focus-visible { outline: 2px solid var(--rn-ink, #111); outline-offset: 3px; }

/* --- 주문내역: 겹겹의 회색 띠 대신 굵은 위선 + 얇은 선 --- */
.is-mypage .fhs-orders { display: block; }
.is-mypage .fhs-order-card {
	background: transparent; border: 0; border-top: 1px solid var(--rn-ink, #111); border-radius: 0; box-shadow: none; padding: 0; margin: 0 0 40px;
}
.is-mypage .fhs-order-card__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 14px; background: transparent; border: 0;
}
.is-mypage .fhs-order-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.is-mypage .fhs-order-card__no { white-space: nowrap; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--rn-ink, #111); }
.is-mypage .fhs-order-card__date { font-size: 13px; color: var(--rn-muted, #5c5c5c); font-variant-numeric: tabular-nums; }
.is-mypage .fhs-order-card__items { background: transparent; border: 0; padding: 0; }
.is-mypage .fhs-order-line {
	display: grid; grid-template-columns: minmax(0, 1fr) auto 108px auto; align-items: center; gap: 12px 16px;
	padding: 16px 0; background: transparent; border: 0; border-top: 1px solid var(--rn-line, #e6e2d8);
}
.is-mypage .fhs-order-line__name { font-size: 15px; font-weight: 500; color: var(--rn-ink, #111); min-width: 0; }
.is-mypage .fhs-order-line__opt { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--rn-muted, #5c5c5c); }
.is-mypage .fhs-order-line__qty { font-size: 13px; color: var(--rn-muted, #5c5c5c); }
.is-mypage .fhs-order-line__price { font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.is-mypage .fhs-order-line__reviewed { font-size: 13px; color: #767676; }
.is-mypage .fhs-order-card__ship {
	display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; background: transparent; border: 0; border-top: 1px solid var(--rn-line, #e6e2d8);
	font-size: 13px; color: var(--rn-muted, #5c5c5c);
}
.is-mypage .fhs-order-card__foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0 0; background: transparent; border: 0; border-top: 1px solid var(--rn-line, #e6e2d8);
}
.is-mypage .fhs-order-card__total { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.is-mypage .fhs-order-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.is-mypage .fluxmember-mypage__content .fhs-btn-sm {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 600;
	color: var(--rn-ink, #111); background: #fff; border: 1px solid #cfcac0; border-radius: 4px; text-decoration: none; cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.is-mypage .fluxmember-mypage__content .fhs-btn-sm:hover { border-color: var(--rn-ink, #111); }
.is-mypage .fluxmember-mypage__content .fhs-btn-sm--primary { background: var(--rn-ink, #111); color: #fff; border-color: var(--rn-ink, #111); }
.is-mypage .fluxmember-mypage__content .fhs-btn-sm--primary:hover { background: #000; }
.is-mypage .fluxmember-mypage__content .fhs-btn-sm:focus-visible { outline: 2px solid var(--rn-ink, #111); outline-offset: 3px; }

/* --- 쿠폰: 검정 블록 3개 대신 연한 면의 티켓 --- */
.is-mypage .fhs-coupon-subtitle { font-size: 15px; font-weight: 700; color: var(--rn-ink, #111); letter-spacing: -0.01em; margin: 28px 0 14px; display: flex; align-items: center; gap: 8px; }
.is-mypage .fhs-coupon-count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
	background: var(--rn-ink, #111); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.is-mypage .fhs-coupon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.is-mypage .fhs-coupon-card {
	display: flex; align-items: stretch; min-height: 120px; background: #fff; border: 1px solid var(--rn-line, #e6e2d8); border-radius: 4px; overflow: hidden;
}
.is-mypage .fhs-coupon-card__amount {
	flex: 0 0 132px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px 12px;
	background: var(--rn-warm, #f5f3ee); color: var(--rn-ink, #111); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap;
	border-right: 1px dashed #cfcac0;
}
.is-mypage .fhs-coupon-card__info { flex: 1 1 auto; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.is-mypage .fhs-coupon-card__info strong { font-size: 15px; font-weight: 700; color: var(--rn-ink, #111); }
.is-mypage .fhs-coupon-card__info p { margin: 0; }
.is-mypage .fhs-coupon-code { font-family: var(--font-en); font-size: 12px; letter-spacing: .06em; color: var(--c-gold-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-mypage .fhs-coupon-cond { font-size: 13px; color: var(--rn-muted, #5c5c5c); }
.is-mypage .fhs-coupon-expiry { font-size: 12px; color: #767676; }
.is-mypage .fhs-coupon-card--expired { opacity: .6; }
.is-mypage .fhs-coupon-card--expired .fhs-coupon-card__amount { color: #767676; }
.is-mypage .fhs-coupon-expiry.expired { color: #767676; }

/* --- 적립금: 파란 그라데이션 대신 대시보드와 같은 검정 면 + 골드 라벨 --- */
.is-mypage .fhs-points-balance,
.is-mypage .fhs-deposit-balance {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 30px; margin: 0;
	background: var(--rn-dark, #0b0b0b); background-image: none; color: #fff; border: 0; border-radius: 4px;
}
.is-mypage .fhs-points-label { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--c-gold-lite); }
.is-mypage .fhs-points-amount { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
/* 증감 색(초록·주황 인라인)은 +/− 기호가 이미 뜻을 전한다 → 브랜드 잉크 색으로 */
.is-mypage .fhs-mypage-table td[style*="color"] { color: var(--rn-ink, #111) !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.is-mypage .fhs-mypage-table td { font-variant-numeric: tabular-nums; }

/* 페이지 번호 */
.is-mypage .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 24px 2px 0; color: #555; text-decoration: none; border-radius: 4px;
}
.is-mypage .page-numbers.current { background: var(--rn-ink, #111); color: #fff; font-weight: 700; }
.is-mypage a.page-numbers:hover { background: var(--rn-warm, #f5f3ee); color: var(--rn-ink, #111); }

/* ---------------------------------------------------------------
   버튼 규격 — 마이페이지의 모든 버튼은 한 문법으로 (앞의 개별 규칙보다 우선)
   모양: 알약(radius 999) · 폭: 글자에 맞춤(폼 전체 폭으로 늘어나지 않는다, 플러그인의 --full 포함)
   크기: 기본 48px(폼 저장·비밀번호 변경·주소 검색·빈 상태 안내) / 작게 44px(주문 카드·목록 안의 행동)
   색  : 기본=검정 채움, 보조=흰 바탕 + 얇은 테두리, 위험=흰 바탕 + 붉은 글자(삭제·탈퇴)
   --------------------------------------------------------------- */
.is-mypage .fluxmember-mypage__content .fluxmember-btn,
.is-mypage .fluxmember-mypage__content .fhs-btn-sm,
.is-mypage .fluxmember-mypage__content .mp-empty__cta,
.is-mypage .fluxmember-mypage__content .fhs-dash__empty a {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	width: auto; max-width: 100%; min-width: 96px; min-height: 48px; padding: 0 28px; margin: 0;
	border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.is-mypage .fluxmember-mypage__content .fhs-btn-sm { min-width: 0; min-height: 44px; padding: 0 20px; font-size: 14px; }
.is-mypage .fluxmember-mypage__content .fluxmember-btn--full { width: auto; }
/* 빈 상태 안내 버튼은 위 문구와 간격을 둔다(위 공통 규칙의 margin:0 보다 우선) */
.is-mypage .fluxmember-mypage__content .fhs-empty .mp-empty__cta { margin-top: 20px; }
/* 폼이 세로 flex·그리드여도 버튼이 늘어나지 않게 */
.is-mypage .fluxmember-mypage__content .fluxmember-btn, .is-mypage .fluxmember-mypage__content .fhs-btn-sm { align-self: flex-start; justify-self: start; flex: 0 0 auto; }
/* 폼 맨 아래 제출 버튼은 입력칸 아래 왼쪽에 놓고, 위에 여유를 둔다 */
.is-mypage .fluxmember-form > .fluxmember-btn,
.is-mypage .fluxmember-form .fluxmember-btn[type="submit"] { margin-top: 12px; }

/* 기본(검정 채움) */
.is-mypage .fluxmember-mypage__content .fluxmember-btn--primary,
.is-mypage .fluxmember-mypage__content .fhs-btn-sm--primary,
.is-mypage .fluxmember-mypage__content .mp-empty__cta,
.is-mypage .fluxmember-mypage__content .fhs-dash__empty a { background: var(--rn-ink, #111); color: #fff; border: 1px solid var(--rn-ink, #111); }
.is-mypage .fluxmember-mypage__content .fluxmember-btn--primary:hover,
.is-mypage .fluxmember-mypage__content .fhs-btn-sm--primary:hover,
.is-mypage .fluxmember-mypage__content .mp-empty__cta:hover,
.is-mypage .fluxmember-mypage__content .fhs-dash__empty a:hover { background: #000; border-color: #000; }
/* 보조(흰 바탕 + 테두리) */
.is-mypage .fluxmember-mypage__content .fluxmember-btn--secondary,
.is-mypage .fluxmember-mypage__content .fhs-btn-sm:not(.fhs-btn-sm--primary) { background: #fff; color: var(--rn-ink, #111); border: 1px solid #cfcac0; }
.is-mypage .fluxmember-mypage__content .fluxmember-btn--secondary:hover,
.is-mypage .fluxmember-mypage__content .fhs-btn-sm:not(.fhs-btn-sm--primary):hover { border-color: var(--rn-ink, #111); background: #fff; }
/* 위험(탈퇴·삭제) — 색만으로 전하지 않도록 글자도 「탈퇴」「삭제」로 쓰이고 있다 */
.is-mypage .fluxmember-mypage__content .fluxmember-btn--danger { background: #fff; color: #a3201a; border: 1px solid #d9a5a2; }
.is-mypage .fluxmember-mypage__content .fluxmember-btn--danger:hover { background: #fdf3f2; border-color: #a3201a; }
.is-mypage .fluxmember-mypage__content .fluxmember-btn:disabled { opacity: .5; cursor: not-allowed; }
.is-mypage .fluxmember-mypage__content .fluxmember-btn:focus-visible,
.is-mypage .fluxmember-mypage__content .fhs-btn-sm:focus-visible,
.is-mypage .fluxmember-mypage__content .mp-empty__cta:focus-visible,
.is-mypage .fluxmember-mypage__content .fhs-dash__empty a:focus-visible { outline: 2px solid var(--rn-ink, #111); outline-offset: 3px; }

/* ===================
   5. 반응형
   =================== */
/* 크리에이터 샵은 PC에서도 마이페이지가 480px 앱 화면 안에 들어간다 — 화면 폭이 아니라 앱 폭 기준이라 아래 모바일 배치를 PC에서도 항상 쓴다(@media all) */
@media all {
	/* 좌우 여백은 앱 머리글(16px)과 같게 — 바깥 래퍼가 이미 15px 를 줘서 여기선 1px 만 더한다. 열은 minmax(0,1fr) — 가로 탭 메뉴의 최소 폭에 끌려 오른쪽으로 넘치지 않게 */
	.is-mypage .fluxmember-mypage { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 1px clamp(64px, 9vw, 112px); }
	.is-mypage .mp-head { padding-left: 1px; padding-right: 1px; }
	.is-mypage .fluxmember-mypage__nav, .is-mypage .fluxmember-mypage__content { min-width: 0; }
	.is-mypage .fluxmember-mypage__nav { position: static; }
	.is-mypage .fluxmember-mypage__user-card { padding-bottom: 16px; margin-bottom: 0; }
	/* 세로 메뉴 → 가로로 밀어 넘기는 탭 (페이지 가로 스크롤은 만들지 않는다) */
	.is-mypage .fluxmember-mypage__menu {
		display: flex; gap: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--rn-line, #e6e2d8); scrollbar-width: none;
	}
	.is-mypage .fluxmember-mypage__menu::-webkit-scrollbar { display: none; }
	.is-mypage .fluxmember-mypage__menu-item { flex: 0 0 auto; }
	.is-mypage .fluxmember-mypage__menu-item a { padding: 14px 0; border-bottom: 2px solid transparent; }
	.is-mypage .fluxmember-mypage__menu-item a::before { display: none; }
	.is-mypage .fluxmember-mypage__menu-item a:hover { padding-left: 0; }
	.is-mypage .fluxmember-mypage__menu-item.is-active a { border-bottom-color: var(--rn-ink, #111); }
	.is-mypage .fluxmember-mypage__menu-item--logout a { border-bottom: 2px solid transparent; }
}

@media all {
	.is-mypage .fhs-dash__orders { flex-direction: column; }
	.is-mypage .fhs-dash__claims {
		flex-direction: row; justify-content: space-between; border-left: 0; border-top: 1px solid var(--rn-line, #e6e2d8);
		margin: 0; padding: 14px 4px;
	}
	.is-mypage .fhs-dash__stat { padding: 18px 4px; }
	.is-mypage .fhs-dash__arrow { display: none; }
	.is-mypage .fhs-dash__order { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'date badge' 'name total'; gap: 6px 12px; padding: 16px 0; }
	.is-mypage .fhs-dash__order-date { grid-area: date; }
	.is-mypage .fhs-dash__order .fhs-badge { grid-area: badge; justify-self: end; }
	.is-mypage .fhs-dash__order-name { grid-area: name; }
	.is-mypage .fhs-dash__order-total { grid-area: total; }
	.is-mypage .fhs-dash__cards { grid-template-columns: 1fr 1fr; }
	.is-mypage .fhs-dash__card { padding: 20px 18px; }
	.is-mypage .fhs-dash__links { grid-template-columns: 1fr 1fr; }
}

@media all {
	.is-mypage .fhs-dash__claim { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
	.is-mypage .fhs-order-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name price' 'qty review'; }
	.is-mypage .fhs-order-line__name { grid-area: name; }
	.is-mypage .fhs-order-line__price { grid-area: price; }
	.is-mypage .fhs-order-line__qty { grid-area: qty; }
	.is-mypage .fhs-order-line .fhs-btn-sm, .is-mypage .fhs-order-line__reviewed { grid-area: review; justify-self: end; }
	.is-mypage .fhs-order-card__foot { flex-direction: column; align-items: stretch; }
	.is-mypage .fhs-order-card__actions { justify-content: flex-start; }
	.is-mypage .fhs-coupon-list { grid-template-columns: 1fr; }
	.is-mypage .fhs-coupon-card__amount { flex-basis: 104px; font-size: 19px; }
	.is-mypage .fhs-points-balance, .is-mypage .fhs-deposit-balance { padding: 22px 20px; }
}

@media all {
	.is-mypage .fhs-dash__stat { padding: 18px 0; min-width: 0; }
	.is-mypage .fhs-dash__label { font-size: 12px; letter-spacing: -0.03em; white-space: nowrap; }
	.is-mypage .fhs-coupon-card__amount { flex-basis: 92px; padding: 12px 6px; font-size: 17px; }
	.is-mypage .fhs-coupon-card__info { padding: 14px 12px; }
	.is-mypage .fhs-coupon-code { font-size: 11px; letter-spacing: .02em; }
	.is-mypage .fhs-dash__cards { grid-template-columns: 1fr; }
	.is-mypage .fluxmember-mypage__content table:not(.fhs-mypage-table) { display: block; overflow-x: auto; }
}

/* 적립금·내역 표: 좁은 화면에서는 4칸 표 대신 2줄 행 (날짜·금액 / 내역·잔액) */
@media all {
	.is-mypage .fhs-mypage-table, .is-mypage .fhs-mypage-table tbody { display: block; }
	.is-mypage .fhs-mypage-table thead { display: none; }
	.is-mypage .fhs-mypage-table tr {
		display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'desc amt' 'date bal'; gap: 4px 12px;
		padding: 16px 0; border-bottom: 1px solid var(--rn-line, #e6e2d8);
	}
	.is-mypage .fhs-mypage-table td { display: block; padding: 0; border: 0; }
	.is-mypage .fhs-mypage-table td:nth-child(1) { grid-area: date; font-size: 13px; color: var(--rn-muted, #5c5c5c); white-space: nowrap; }
	.is-mypage .fhs-mypage-table td:nth-child(2) { grid-area: desc; font-size: 15px; font-weight: 500; }
	.is-mypage .fhs-mypage-table td:nth-child(3) { grid-area: amt; text-align: right; white-space: nowrap; }
	.is-mypage .fhs-mypage-table td:nth-child(4) { grid-area: bal; text-align: right; font-size: 13px; color: var(--rn-muted, #5c5c5c); white-space: nowrap; }
	.is-mypage .fhs-mypage-table td:nth-child(4)::before { content: '잔액 '; }
	.is-mypage .fhs-mypage-table { border-top: 1px solid var(--rn-ink, #111); }
}

/* ===================
   6. 모션 줄이기
   =================== */
@media (prefers-reduced-motion: reduce) {
	.is-mypage .fluxmember-mypage__menu-item a,
	.is-mypage .fluxmember-mypage__menu-item a::before,
	.is-mypage .fhs-dash__card,
	.is-mypage .fhs-dash__links a,
	.is-mypage .fhs-dash__links a::after,
	.is-mypage .fhs-dash__order,
	.is-mypage .fluxmember-btn { transition: none; }
	.is-mypage .fhs-dash__card:hover { transform: none; }
}
