/* ===== 회원등급 관리 (membership) 전용 스타일 =====
   base=dmdev 이므로 이 파일은 <base> 위 <link>로 로드됨.
   단위: 1rem = 10px (dmdev html font-size 62.5% 기준). */
.membership-wrap {
  width: 100%;
}

/* ===== 영역 A: 나의 등급 ===== */
/* 하단 3rem: divider 위 간격(30) 소유 */
.ms-grade {
  padding: 2rem 2rem 3rem;
}
.ms-grade-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2.7rem;
}
.ms-grade-label {
  font-size: 2.3rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.046rem;
  line-height: 1.2;
}
.ms-grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.046rem;
  line-height: 1.2;
}
.ms-badge-ico {
  width: 3.27rem;
  height: 3.27rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.64rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
/* 등급별 배지/등급명 색상 + 글자 (data-my-tier 값으로 자동 제어 · JS가 클래스 추가 안 함) */
[data-my-tier="M01"] .ms-grade-badge {
  color: #f7b70e;
}
[data-my-tier="M01"] .ms-badge-ico {
  background: #f7b70e;
}
[data-my-tier="M01"] .ms-badge-ico::before {
  content: "S";
}
[data-my-tier="M02"] .ms-grade-badge {
  color: #6fb53d;
}
[data-my-tier="M02"] .ms-badge-ico {
  background: #6fb53d;
}
[data-my-tier="M02"] .ms-badge-ico::before {
  content: "R";
}
[data-my-tier="M03"] .ms-grade-badge {
  color: #e64c63;
}
[data-my-tier="M03"] .ms-badge-ico {
  background: #e64c63;
}
[data-my-tier="M03"] .ms-badge-ico::before {
  content: "P";
}
[data-my-tier="M04"] .ms-grade-badge {
  color: #8069f5;
}
[data-my-tier="M04"] .ms-badge-ico {
  background: #8069f5;
}
[data-my-tier="M04"] .ms-badge-ico::before {
  content: "V";
}
[data-my-tier="M05"] .ms-grade-badge {
  color: #9a7952;
}
[data-my-tier="M05"] .ms-badge-ico {
  background: #9a7952;
}
[data-my-tier="M05"] .ms-badge-ico::before {
  content: "G";
}
.ms-gauge {
  position: relative;
}
/* 바(트랙)는 첫 노드~마지막 노드 구간만 차지하도록 좌우 인셋 */
.ms-gauge-track {
  height: 1rem;
  border-radius: 0.8rem;
  background: #eeeeee;
  position: relative;
  margin: 0 calc(10% - 0.6rem);
  overflow: hidden;
  font-size: 0;
}
/* 채움(진행도)은 --gauge-progress 변수로 제어. 트랙이 첫~마지막 노드 구간에 정렬돼 있어
   0%=M01 · 25%=M02 · 50%=M03 · 75%=M04 · 100%=M05 로 선형 매핑됨.
   .ms-gauge 에 style="--gauge-progress:NN%" 로 데이터 주입 (미지정 시 0%). */
.ms-gauge-segment {
  display:inline-block; 
  width:25%; 
  height:100%; 
  overflow: hidden;
}


/* .ms-gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--gauge-progress, 0%);
  background: #777777;
  border-radius: 0.8rem;
  transition: width 0.3s ease;
} */

.ms-gauge-fill {
    height: 100%;
    background: #777777;
    transition: width 0.3s ease;
    display: inline-block;
}

/* 노드/라벨을 동일한 5등분 컬럼(각 flex:1, 가운데 정렬)으로 배치 → 라벨 중심이 노드 중심에 정렬 */
.ms-gauge-nodes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1rem;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 1;
}
.ms-gauge-nodes li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms-gauge-nodes li::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #fff;
}
.ms-gauge-nodes li.on::before {
  background: #5b5b5b;
}
.ms-gauge-steps {
  display: flex;
  margin-top: 0.9rem;
}
.ms-gauge-steps li {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 500;
  color: #aaa;
}
.ms-gauge-steps li.on {
  color: #5b5b5b;
  font-weight: 700;
}
.ms-gauge-tip {
  margin-top: 2rem;
  padding: 0.8rem 1.6rem;
  background: #f5f5e2;
  color: #383838;
  font-size: 1.4rem;
  text-align: center;
  border-radius: 0.8rem;
  letter-spacing: -0.014rem;
}
.ms-tip-em {
  color: #272727;
  font-weight: 700;
}
.ms-divider {
  border: 0;
  border-top: 0.1rem solid #0000001a;
  margin: 0;
}

/* ===== 영역 B: 프로모션 배너 ===== */
.ms-banner-wrap {
  padding: 3rem 0 0 1rem;
}
.ms-banner .swiper-slide {
  width: calc(100% - 4rem);
}
.ms-banner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  height: 9.1rem;
  border-radius: 1.2rem;
  overflow: hidden;
  padding: 2rem;
  box-sizing: border-box;
  color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.ms-banner-card:has(.ms-banner-thumb) {
  padding-right: 9.5rem;
}
.ms-banner-txt {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.03rem;
  color: inherit;
  white-space: pre-line;
}
.ms-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02rem;
  color: inherit;
  text-decoration: none;
  align-self: flex-start;
}
.ms-banner-arrow {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  background: url(/resources/images/membership/icon/ico_mall_arrow02.png) no-repeat
    center/contain;
}
.ms-banner-thumb {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8rem;
  height: 8rem;
  pointer-events: none;
}
.ms-banner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== 영역 C: 등급별 혜택 ===== */
/* 상 3rem: 위(divider 또는 배너)와의 간격(30) 소유 → 배너 유무와 무관하게 일정 */
.ms-benefit {
  padding: 3rem 2rem 2rem;
}
.ms-benefit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.ms-sec-tit {
  font-size: 1.8rem;
  font-weight: 700;
  color: #383838;
}
.ms-tier-tabs {
  display: flex;
  gap: 0.8rem;
  align-items: flex-end;
  margin-top: 2.4rem;
}
.ms-tier-tab {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1rem;
  border-radius: 1rem 1rem 0 0;
  background: #f5f5f5;
  color: #bbb;
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
}
.ms-cur-grade {
  position: absolute;
  left: 50%;
  top: -0.8rem;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: #5b5b5b;
  padding: 0.5rem 1rem;
  border-radius: 1.2rem;
  z-index: 2;
}
.ms-cur-grade::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  transform: translateX(-50%);
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
  border-top: 0.6rem solid #5b5b5b;
}
.ms-tier-tab[data-tier="M01"] {
  height: 4rem;
}
.ms-tier-tab[data-tier="M02"] {
  height: 5rem;
}
.ms-tier-tab[data-tier="M03"] {
  height: 6rem;
}
.ms-tier-tab[data-tier="M04"] {
  height: 7rem;
}
.ms-tier-tab[data-tier="M05"] {
  height: 8rem;
}
.ms-tier-tab.active {
  color: #fff;
}
.ms-tier-tab.active[data-tier="M01"] {
  background: #f7b70e;
}
.ms-tier-tab.active[data-tier="M02"] {
  background: #6fb53d;
}
.ms-tier-tab.active[data-tier="M03"] {
  background: #e64c63;
}
.ms-tier-tab.active[data-tier="M04"] {
  background: #8069f5;
}
.ms-tier-tab.active[data-tier="M05"] {
  background: #9a7952;
}
.ms-tier-labels {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.ms-tier-labels li {
  flex: 1;
  text-align: center;
  font-size: 1.2rem;
  color: #aaa;
}
.ms-tier-labels li.on {
  color: #272727;
  font-weight: 700;
}
.ms-tier-cond {
  font-size: 1.2rem;
  color: #999;
  text-align: center;
  padding: 1.5rem 0 1.8rem;
}
.ms-tier-cond b {
  font-weight: 700;
}
.ms-tier-cond[data-tier="M01"] b {
  color: #f7b70e;
}
.ms-tier-cond[data-tier="M02"] b {
  color: #6fb53d;
}
.ms-tier-cond[data-tier="M03"] b {
  color: #e64c63;
}
.ms-tier-cond[data-tier="M04"] b {
  color: #8069f5;
}
.ms-tier-cond[data-tier="M05"] b {
  color: #9a7952;
}
.ms-benefit-body {
  position: relative;
  margin-top: 3rem;
  background: #f3f3f3;
  margin: 1.6rem -2rem 0;
  padding: 3rem 2rem;
}
/* grey 섹션 상단 중앙: 위를 향하는 삼각형 (탭 쪽을 가리키는 꼭지) */
.ms-benefit-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  border-left: 1.5rem solid transparent;
  border-right: 1.5rem solid transparent;
  border-bottom: 1.6rem solid #f3f3f3;
}
.ms-benefit-block {
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
}
.ms-benefit-block:last-child {
  margin-bottom: 0;
}
.ms-block-tit {
  font-size: 1.8rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.8rem;
}
.ms-benefit-card {
  background: #fff;
  border: 0.1rem solid rgba(0, 0, 0, 0.08);
  border-radius: 1.2rem;
  padding: 0.4rem 1.6rem;
}
.ms-benefit-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 0.1rem solid #eee;
}
.ms-benefit-item:last-child {
  border-bottom: 0;
}
/* 항목 전체 클릭 링크 (stretched link) */
.ms-bi-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ms-bi-ico {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: #f3f3f3 no-repeat center;
  background-size: cover;
  flex: 0 0 auto;
  overflow: hidden;
}
.ms-bi-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-bi-ico.ico-coupon {
  background-image: url(/resources/images/membership/icon/ico_membership_coupon.png);
}
.ms-bi-ico.ico-point {
  background-image: url(/resources/images/membership/icon/ico_membership_point.png);
}
.ms-bi-ico.ico-counsel {
  background-image: url(/resources/images/membership/icon/ico_membership_counsel.png);
}
.ms-bi-ico.ico-report {
  background-image: url(/resources/images/membership/icon/ico_membership_report.png);
}
.ms-bi-ico.ico-chatbot {
  background-image: url(/resources/images/membership/icon/ico_membership_chatbot.png);
}
.ms-bi-ico.ico-ai {
  background-image: url(/resources/images/membership/icon/ico_membership_ai.png);
}
.ms-bi-txt {
  flex: 1;
  font-size: 1.6rem;
  font-weight: 700;
  color: #383838;
}
.ms-bi-txt b {
  display: block;
  font-weight: 700;
}
/* "맞춤 상담권 1회"의 '1회' 등 단위/부가 표기 */
.ms-bi-unit {
  font-size: 1.4rem;
  font-weight: 600;
  color: #aaaaaa;
}
.ms-bi-txt em {
  display: block;
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 400;
  color: #999;
  margin-top: 0.2rem;
}
.ms-bi-arrow {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  background: url(/resources/images/membership/icon/icon_mall_arrow.png) no-repeat center;
  background-size: contain;
}
.ms-more {
  display: block;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #7f7f7f;
  background: #f9f9f9;
  padding: 1.2rem 0;
  margin: 0 -1.6rem -0.4rem;
  border-top: 0.1rem solid #eee;
  border-radius: 0 0 1.2rem 1.2rem;
}

/* ===== 영역 D: 이달의 상품 타이틀 (원격 .tit-wrap 스타일보다 우선하도록 ID 스코프) ===== */
#mypage_wrap .section-product .tit-wrap {
  padding: 0 2rem;
  margin-bottom: 1.6rem;
}
#mypage_wrap .section-product .tit-wrap h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #383838;
  line-height: 1.3;
  display: inline-flex;
  align-items: flex-end;
}
#mypage_wrap .section-product .tit-wrap .todaycoupon {color:#6FB53D;font-size: 1.2rem;font-weight: 400;line-height: 1.4;border-radius: 6px;background-color:#FDFDE3;border:1px solid #D7E2AB;padding:0.4rem 1.2rem;display: inline-block; text-align: center;white-space: nowrap;width: max-content;    margin-left: 0.7rem;}
#mypage_wrap .section-product .tit-wrap h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: #888;
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ===== 섹션 구분 회색 밴드 (full-bleed) ===== */
.ms-section-band {
  height: 0.8rem;
  background: #f3f3f3;
}
.ms-section-band-sm {
  height: 0.2rem;
  background: #f3f3f3;
}

/* ===== 영역 E: 자주하는 질문 ===== */
.ms-faq {
  padding: 2rem 2rem 0;
}
.ms-faq .ms-sec-tit {
  margin-bottom: 0.8rem;
}
.ms-faq-item {
  border-bottom: 0.1rem solid #eee;
}
.ms-faq-q {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 1.6rem 2.4rem 1.6rem 0;
  font-size: 1.5rem;
  color: #383838;
}
/* 화살표: icon_mall_arrow(>)를 90° 회전해 아래(∨) 방향, 펼침 시 위(∧) */
.ms-faq-q::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1.6rem;
  height: 1.6rem;
  background: url(/resources/images/membership/icon/icon_mall_arrow.png) no-repeat center;
  background-size: contain;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.2s ease;
}
.ms-faq-item.open .ms-faq-q {
  font-weight: 700;
}
.ms-faq-item.open .ms-faq-q::after {
  transform: translateY(-50%) rotate(-90deg);
}
.ms-faq-a {
  display: none;
  padding: 0 0 1.6rem;
  font-size: 1.4rem;
  color: #777;
  line-height: 1.5;
}
.ms-faq-item.open .ms-faq-a {
  display: block;
}

/* ===== 영역 F: 유의사항 안내 (자주하는 질문과 동일 영역 규격) ===== */
.ms-info {
  padding: 2rem 2rem;
}
.ms-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ms-info-item {
  position: relative;
  padding-left: 0.9rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #979797;
  word-break: keep-all;
}

.ms-info-item strong{
  font-weight: 700;
}

.ms-info-item + .ms-info-item {
  margin-top: 0.4rem;
}
/* 불릿 (첫 줄에 정렬되는 작은 점) */
.ms-info-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #979797;
}

.ms-benefit-sheet.service-sheet .sheet-header,
.ms-benefit-sheet.purchase-sheet .sheet-header {
  padding: 2rem 1.6rem 1.3rem;
}
.ms-benefit-sheet.service-sheet .sheet-header h2,
.ms-benefit-sheet.purchase-sheet .sheet-header h2 {
  font-size: 1.8rem;
  color: #383838;
}
.ms-sheet-close {
  position: relative;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.ms-sheet-close::before,
.ms-sheet-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.7rem;
  height: 0.16rem;
  background: #383838;
  border-radius: 0.2rem;
}
.ms-sheet-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.ms-sheet-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.ms-terms {
  background: #f2f4f6;
  padding: 1rem 2rem 2rem;
}
.ms-terms-group + .ms-terms-group {
  margin-top: 1rem;
}
.ms-terms-tit {
  padding: 1rem 0 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #383838;
  letter-spacing: -0.014rem;
}
.ms-terms-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ms-terms-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  color: #5b5b5b;
  letter-spacing: -0.012rem;
}
.ms-terms-list li + li {
  margin-top: 0.4rem;
}
/* 불릿: Figma 3px 사각 점(#5b5b5b) */
.ms-terms-list li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.72rem;
  width: 0.3rem;
  height: 0.3rem;
  background: #5b5b5b;
}

.bottom-sheet-wrap .ms-sheet-body .sheet-header h2{
	font-size:18px;
} 
.bottom-sheet-wrap .ms-sheet-body .ms-sheet-body-section{padding:13px 0 16px 0;}
.bottom-sheet-wrap .ms-sheet-body .ms-sheet-body-section h3.title{
	color: #383838;
    font-size: 14px;
    padding: 0 0 13px 0;
}
.bottom-sheet-wrap .ms-sheet-body .ms-sheet-body-section ul.info-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.bottom-sheet-wrap .ms-sheet-body .ms-sheet-body-section ul.info-list li{
  	position: relative;
    line-height: 1.6;
    padding-left: 0.9rem;
    color: #999999;
    word-break: keep-all;
    font-size:1.3rem;
}

.bottom-sheet-wrap .ms-sheet-body .ms-sheet-body-section ul.info-list li a{
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bottom-sheet-wrap .ms-sheet-body .ms-sheet-body-section ul.info-list li strong{
	font-weight: 700;
}

.bottom-sheet-wrap .ms-sheet-body .ms-sheet-body-section ul.info-list li:before{
	content: "•";
    color: #999999;
    position: absolute;
    left: 0;
    top: 0;
}