/* =================================================================
 * mypage.css — 로그인 · 가입 (login.html) + 내 계정 (mypage.html)
 * 피그마 09 MY ACCOUNT (PC) 1440
 *   위 : Sign in 568 | Create account 568 (옅은 핑크 상자)
 *   아래 : 회색 바탕, 왼쪽 메뉴 264 + 오른쪽 888 (Hello, 이름 · 주문 표 · 상자 2개 432)
 * 모바일 시안이 없어 첫 화면 모바일과 같은 규칙(양옆 20 · 세로로 쌓기)으로 맞춘다.
 * ================================================================= */

/* ---- 공통 입력칸 (결제 화면 co-input 과 같은 모양) ---- */
.lg-field, .account-field { display: grid; gap: 8px; margin: 0 0 16px; }
.lg-field label, .account-field > span { font-size: 13px; color: var(--ink); }
.lg-input, .account-input {
	width: 100%; height: 48px; padding-inline: 14px;
	border: 1px solid #bdbdbd; border-radius: 0; background: #fff;
	font: inherit; font-size: 15px; color: var(--ink);
}
.lg-input:focus, .account-input:focus { outline: none; border-color: var(--ink); }
.account-input[readonly] { background: #f7f7f5; color: #545454; }
select.account-input {
	appearance: none; -webkit-appearance: none; padding-inline-end: 34px; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%231d1d1f'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.account-input--area { height: auto; min-height: 96px; padding-block: 12px; resize: vertical; line-height: 1.6; }
.lg-check, .account-check { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; font-size: 14px; color: var(--ink); cursor: pointer; }
.lg-check input, .account-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

/* =================================================================
 * 로그인 · 가입 (login.html)
 * ================================================================= */
.lg { display: grid; gap: 40px; padding-block: 40px 64px; }
.lg-title { margin: 0 0 20px; font-family: var(--font-point); font-weight: 700; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.lg-msg { margin: 0 0 16px; }
.lg-forgot { display: inline-block; margin: -4px 0 20px; font-size: 13px; color: var(--ink); }
.lg-forgot:hover, .lg-legal a:hover { text-decoration: underline; }
.lg-btn { width: 100%; height: 52px; }
.lg-btn:disabled { opacity: .6; cursor: progress; }
.lg-create { align-self: start; padding: 28px 20px; background: #f4f1ea; }
.lg-create__lead { margin: -6px 0 20px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.lg-grid { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .lg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lg-legal { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: #545454; }
.lg-legal a { text-decoration: underline; }
.lg-help { margin: -8px 0 16px; font-size: 12px; color: #545454; }

@media (min-width: 900px) {
	.lg { grid-template-columns: minmax(0, 568px) minmax(0, 568px); justify-content: space-between; gap: 64px; padding-block: 64px 64px; }
	.lg-title { font-size: 44px; line-height: 1.15; margin-block-end: 24px; }
	.lg-signin { padding-block-start: 8px; }
	.lg-create { padding: 40px; }
	.lg-create .lg-title { margin-block-end: 24px; }
}

/* =================================================================
 * 내 계정 (mypage.html)
 * ================================================================= */
.acct { background: #f7f7f5; }
.acct__wrap { display: grid; gap: 24px; padding-block: 32px 64px; }

/* 왼쪽 메뉴 : 위 선, 고른 메뉴는 굵게. 모바일은 가로로 넘겨 본다 */
.acct-nav { display: flex; gap: 20px; overflow-x: auto; padding-block: 14px; border-top: 1px solid #dddddd; border-bottom: 1px solid #dddddd; scrollbar-width: none; }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav__btn { flex: none; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); white-space: nowrap; cursor: pointer; }
.acct-nav__btn:hover { text-decoration: underline; }
.acct-nav__btn.is-on { font-weight: 700; }

.acct-main { min-width: 0; }
.acct-welcome { margin: 0 0 20px; padding: 14px 18px; background: #f4f1ea; font-size: 14px; line-height: 1.6; color: var(--ink); }
.acct-welcome[hidden] { display: none; }
.acct-hello { margin: 0 0 20px; font-family: var(--font-point); font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.acct-title { margin: 0 0 18px; font-family: var(--font-body); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.acct-link { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.acct-link:hover { text-decoration: underline; }
.acct-more { margin-block-start: 16px; }
.acct-more:empty { display: none; }
.acct-empty { margin: 16px 0 0; font-size: 15px; color: #545454; }
.acct-empty p { margin: 0 0 14px; }
.acct-empty[hidden] { display: none; }
.acct-tag { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border: 1px solid #bdbdbd; font-size: 12px; font-weight: 400; color: #545454; vertical-align: middle; }
.acct-tag.is-on { border-color: var(--ink); color: var(--ink); }

/* 주문 표 : 머리 13 회색, 줄 높이 52, 구분선 #dddddd. 모바일은 줄마다 이름표를 붙여 쌓는다 */
.acct-table__head { display: none; }
.acct-table__body { margin: 0; padding: 0; list-style: none; border-top: 1px solid #dddddd; }
.acct-table__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid #dddddd; font-size: 14px; color: var(--ink); }
.acct-table__row > span::before { content: attr(data-label); display: block; font-size: 12px; color: #545454; }
.acct-table__code { font-size: 14px; text-align: start; text-decoration: underline; overflow-wrap: anywhere; }

/* 기본 배송지 · 재주문 상자 (흰 바탕 · 테두리) */
.acct-cards { display: grid; gap: 16px; margin-block-start: 24px; }
.acct-card { padding: 24px; border: 1px solid #dddddd; background: #fff; }
.acct-card__title { margin: 0 0 14px; font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.acct-card__text { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #545454; }
.acct-card__text p { margin: 0; }

/* 주문 상세 */
.acct-back { margin-block-end: 16px; font-size: 14px; }
.acct-detail__meta { margin: -10px 0 20px; font-size: 14px; color: #545454; }
.account-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid #dddddd; }
.account-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; padding-block: 16px; border-bottom: 1px solid #dddddd; }
.account-item__img { display: block; width: 72px; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.account-item__img img { width: 100%; height: 100%; object-fit: cover; }
.account-item__info { min-width: 0; }
.account-item__name { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.account-item__qty, .account-item__price { margin: 4px 0 0; font-size: 14px; color: #545454; }
.account-item__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.account-item__actions .h-btn { height: 40px; min-height: 40px; padding-inline: 16px; font-size: 13px; }
.account-sum { display: grid; gap: 10px; margin-block-start: 16px; padding: 20px; background: #fff; border: 1px solid #dddddd; }
.account-sum__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); }
.account-sum__row--total { padding-block-start: 10px; border-top: 1px solid #dddddd; font-size: 16px; font-weight: 700; }
.account-order__more { margin-block-start: 16px; font-size: 14px; line-height: 1.7; color: #545454; }
.account-order__more p { margin: 0 0 4px; }
.account-order__more b { color: var(--ink); }
.account-order__more a { text-decoration: underline; }
.account-order__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 20px; }

/* 배송지 목록 */
.account-addresses { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.account-address { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; border: 1px solid #dddddd; background: #fff; }
.account-address__info p { margin: 0; font-size: 14px; line-height: 1.7; color: #545454; }
.account-address__label { margin-block-end: 4px !important; font-size: 15px !important; font-weight: 700; color: var(--ink) !important; }
.account-address__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* 양식 (배송지 · 계정 정보) */
.account-form { display: grid; gap: 0 12px; max-width: 560px; }
@media (min-width: 600px) { .account-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.account-form > .acct-title, .account-field--full, .account-check, .account-form__error, .account-form__actions { grid-column: 1 / -1; }
.account-pw { display: flex; gap: 8px; }
.account-pw__change { flex: none; height: 48px; min-height: 48px; padding-inline: 18px; }
.account-pw__fields { display: grid; gap: 8px; margin-block-start: 8px; }
.account-pw__fields[hidden] { display: none; }
.account-note { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: #545454; }
.account-form__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
.account-form__error { margin: 0 0 8px; font-size: 13px; color: var(--danger); }
.account-form__error[hidden] { display: none; }
.account-links { margin: 32px 0 0; font-size: 13px; }
.account-links a { color: #545454; text-decoration: underline; }
.account-close { max-width: 560px; margin-block-start: 16px; padding: 20px; border: 1px solid #dddddd; background: #fff; }
.account-close[hidden] { display: none; }
.account-close__text { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #545454; }
.account-btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.acct-news { max-width: 560px; }

/* 문의 */
.account-inquiries { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.account-inquiry { padding: 18px 20px; border: 1px solid #dddddd; background: #fff; }
.account-inquiry__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 10px; }
.account-inquiry__head .acct-tag { margin: 0; }
.account-inquiry__when { font-size: 13px; color: #545454; }
.account-inquiry__body { margin: 0; font-size: 14px; line-height: 1.7; color: #545454; white-space: pre-wrap; word-break: break-word; }

/* 배송지 삭제 확인 */
.account-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.account-modal[hidden] { display: none; }
.account-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.account-modal__box { position: relative; width: min(420px, 100%); padding: 28px 24px; background: #fff; }
.account-modal__q { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.account-modal__text { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: #545454; }
.account-modal__actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (min-width: 900px) {
	.acct__wrap { grid-template-columns: 264px minmax(0, 888px); justify-content: space-between; gap: 48px; padding-block: 64px 96px; }
	.acct-nav { flex-direction: column; gap: 0; overflow: visible; align-self: start; padding-block: 8px 0; border-bottom: 0; }
	.acct-nav__btn { padding-block: 10px; font-size: 16px; line-height: 24px; text-align: start; }
	.acct-hello { margin-block-end: 28px; font-size: 44px; line-height: 1.15; }
	.acct-title { margin-block-end: 24px; font-size: 22px; }

	/* 주문번호가 20자(예: 202611205CB2UXC4L1G)라 Order 칸을 넓게 (WBS 6.1.1 테스트에서 날짜 칸과 겹침) */
	.acct-table__head, .acct-table__row { display: grid; grid-template-columns: 240px 130px minmax(0, 1fr) 80px 110px; gap: 0 16px; align-items: center; padding-inline: 12px; }
	.acct-table__head { padding-block: 0 14px; font-size: 13px; color: #545454; }
	.acct-table__row { min-height: 52px; padding-block: 12px; font-size: 15px; }
	.acct-table__row > span::before { content: none; }
	.acct-table__code { font-size: 15px; text-decoration: none; }
	.acct-table__code:hover { text-decoration: underline; }

	.acct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block-start: 26px; }
	.acct-card { min-height: 205px; }
	.account-item { grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; }
	.account-item__img { width: 88px; }
	.account-item__actions { grid-column: auto; }
}

/* =================================================================
 * 피그마 09 ACCOUNT (PC) 값으로 덮기 (WBS 3.2.9)
 * Sign in : 왼쪽 552 · 오른쪽 Warm Ivory 상자 552 (간격 96) · 칸 50 · 버튼 52
 * My account : Soft White 바탕 · 제목 28 + Log out · 왼쪽 메뉴 240 (줄 간격 50) · 오른쪽 흰 상자 920
 * ================================================================= */
.lg { color: var(--ink); }
.lg-title { margin: 0; font-size: 30px; line-height: 36px; letter-spacing: -1.2px; }
.lg-lead { margin: 14px 0 20px; font-size: 15px; line-height: 26px; color: var(--dark-gray); }
.lg-field label, .account-field > span { font-weight: 500; }
.lg-input, .account-input { height: 50px; border-color: var(--border); border-radius: 0; font-size: 15px; }
.lg-input::placeholder { color: #8a8a8a; }
.lg-forgot { margin: -2px 0 20px; color: var(--dark-gray); }
.lg-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 1px solid var(--soft-black); background: var(--soft-black); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: 1.4px; cursor: pointer; }
.lg-btn:hover { background: var(--brand-hover); }
.lg-btn--line { background: transparent; color: var(--ink); }
.lg-btn--line:hover { background: var(--soft-black); color: #fff; }
.lg-new { align-self: start; padding: 28px 20px; background: var(--warm-ivory); }
.lg-new__intro[hidden], .lg-create[hidden] { display: none; }
.lg-new__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 30px; letter-spacing: -0.6px; }
.lg-new__lead { margin: 14px 0 0; font-size: 15px; line-height: 26px; color: var(--dark-gray); }
.lg-new__list { margin: 16px 0 24px; padding-inline-start: 18px; font-size: 15px; line-height: 30px; color: var(--dark-gray); }
.lg-create { padding: 0; background: transparent; }
.lg-create .lg-new__title { margin-block-end: 20px; }
@media (min-width: 900px) {
	.lg { grid-template-columns: 552px 552px; gap: 96px; justify-content: space-between; padding-block: 80px 120px; }
	.lg-signin { padding: 0; }
	.lg-title { font-size: 36px; line-height: 42.5px; }
	.lg-lead { margin-top: 20px; font-size: 16px; line-height: 28px; }
	.lg-new { padding: 40px; }
	.lg-new__title { font-size: 28px; line-height: 35px; }
	.lg-new__lead { margin-top: 20px; font-size: 16px; line-height: 28px; }
	.lg-new__list { margin: 18px 0 20px; }
}

.acct { background: var(--soft-white); color: var(--ink); }
.acct ~ .footer { margin-block-start: 0; }
.acct__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block-start: 40px; }
.acct__title { margin: 0; font-size: 26px; font-weight: 700; line-height: 32px; letter-spacing: -0.6px; }
.acct__logout { padding: 0; border: 0; background: none; font-size: 13px; line-height: 20.8px; color: var(--dark-gray); cursor: pointer; }
.acct__logout:hover { color: var(--ink); text-decoration: underline; }
.acct__wrap { padding-block: 24px 64px; }
.acct-nav { gap: 22px; padding: 0; border-top: 0; }
.acct-nav__btn { padding-block: 14px; font-size: 15px; color: var(--ink); }
.acct-nav__btn:hover { text-decoration: none; color: var(--dark-gray); }
.acct-main { padding: 24px 20px; background: #fff; }
.acct-hello { margin: 0 0 16px; font-size: 15px; font-weight: 400; color: var(--dark-gray); }
.acct-title { font-size: 17px; }
.acct-table__row { align-items: center; }
.acct-table__code { text-decoration: none; }
.acct-view { height: 40px; width: 100%; max-width: 120px; padding: 0; border: 1px solid var(--soft-black); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.acct-view:hover { background: var(--soft-black); color: #fff; }
.acct-table__view::before { display: none !important; }
.account-inquiry__topic { font-size: 12px; color: var(--ink); }
.acct-wish { margin-block-start: 4px; }
.acct-wish .sp-card__media { position: relative; }
.acct-wish__remove { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); font-size: 18px; line-height: 1; cursor: pointer; }
.acct-wish__remove:hover { background: var(--soft-black); color: #fff; }
@media (min-width: 900px) {
	.acct__top { padding-block-start: 72px; }
	.acct__title { font-size: 28px; line-height: 35px; }
	.acct__wrap { grid-template-columns: 240px minmax(0, 920px); justify-content: space-between; gap: 40px; padding-block: 28px 110px; }
	.acct-nav { flex-direction: column; gap: 0; overflow: visible; border-bottom: 0; }
	.acct-nav__btn { height: 50px; padding: 0; border-bottom: 1px solid var(--border); text-align: left; }
	.acct-main { align-self: start; padding: 28px; }
	.acct-table__head { display: grid; grid-template-columns: repeat(4, minmax(0, 186px)) 1fr; padding-block-end: 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--dark-gray); }
	.acct-table__body { border-top: 0; }
	.acct-table__row { grid-template-columns: repeat(4, minmax(0, 186px)) 1fr; padding-block: 12px; font-size: 15px; }
	.acct-table__row > span::before { display: none; }
	.acct-table__view { justify-self: end; }
	.acct-view { width: 120px; }
	.acct-wish.sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 주문 상세 · 배송지 · 계정 버튼을 피그마 버튼 모양으로 (대문자 · 자간 1.4) */
.acct .h-btn { height: 48px; padding-inline: 22px; border-radius: 0; font-size: 13px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; }
.acct .h-btn--fill { background: var(--soft-black); border-color: var(--soft-black); }
