/* =================================================================
 * mypage.css — 내 계정 (피그마 기획안 My Account 1920 · My Account-mobile 850, WBS 2.4.8)
 * PC : 화면 폭 주황 배너 360 (아래 60 에 탭) → 83 아래에 주황 테두리 상자 1300 (안쪽 75 · 위 53)
 * 글자 : 상자 제목 20 #121212 · 칸 이름 20 #8b8b8b · 입력칸 #fafafa 높이 62 · 버튼 높이 50 모서리 60
 * ================================================================= */

/* ---- 배너 + 탭 ---- */

.account-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 360px;
	margin-top: 16px;
	background-image: linear-gradient(98.05deg, rgba(255, 252, 241, 0.8) 0%, rgba(255, 140, 31, 0.8) 98.709%);
}
/* 기획안 헤더(118)를 쓰는 넓은 화면 : 배너가 헤더 바로 아래 (My Account y 118) */
@media (min-width: 1280px) { .account-hero { margin-top: 0; } }
.account-hero__text { position: absolute; left: 0; right: 0; top: 109px; text-align: center; }
.account-hero__sub { margin: 0; font-family: var(--font-body); font-size: 20px; line-height: 24px; color: var(--efilow-ink); }
.account-hero__title { margin: 11px 0 0; font-family: var(--font-point); font-weight: 800; font-size: 45px; line-height: normal; color: #000; text-transform: capitalize; }

/* 탭 : 높이 60 · 주황 바탕 · 선택된 탭은 흰 바탕 주황 글씨 (기획안 4개 + 문의) */
.account-tabs { display: flex; gap: 16px; justify-content: center; max-width: calc(1290px + var(--page-margin) * 2); }
.account-tabs__btn {
	flex: 1 1 0;
	min-width: 0;
	height: 60px;
	padding: 0 8px;
	border: 0;
	background: var(--brand);
	font-family: var(--font-point);
	font-weight: 800;
	font-size: 25px;
	color: #000;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.account-tabs__btn:hover { background: var(--brand-hover); }
.account-tabs__btn.is-active { background: #fff; color: var(--brand); }
.account-tabs__short { display: none; }

/* ---- 내용 상자 ---- */

.account-body { max-width: calc(1300px + var(--page-margin) * 2); margin-top: 83px; }
.account-box {
	padding: 53px 75px 45px;
	border: 1px solid var(--brand);
	border-radius: 33px;
	background: #fff;
	font-family: var(--font-body);
	color: var(--efilow-ink);
}
.account-box[hidden] { display: none; }
.account-box__title { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 20px; line-height: normal; color: var(--efilow-ink); text-transform: capitalize; }
.account-box__label { margin: 26px 0 0; padding-bottom: 12px; border-bottom: 1px solid #c4c4c4; font-size: 20px; color: var(--fg-subtle); text-transform: capitalize; }
.account-empty { margin: 32px 0 0; color: var(--fg-muted); }
.account-empty p { margin: 0 0 20px; }
.account-more { margin-top: 24px; text-align: center; }

/* 버튼 : 높이 50 · 모서리 60 · 글자 20 */
.account-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	height: 50px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 60px;
	font-family: var(--font-body);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: opacity .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.account-btn:hover { opacity: .85; }
.account-btn:disabled { opacity: .5; cursor: default; }
.account-btn--block { display: flex; width: 100%; }
.account-btn--dark { background: #000; color: #fff; }
.account-btn--grey { background: #d9d9d9; color: #14160d; }
.account-btn--orange { background: var(--brand); color: #fff; font-weight: 600; }
.account-btn--outline { border-color: var(--brand); border-radius: 26px; background: #fff; color: var(--brand); font-size: 18px; }
.account-btn--outline-grey { border-color: var(--fg-subtle); background: #fff; color: var(--fg-subtle); font-weight: 600; }
.account-btn--danger { background: var(--danger); color: #fff; }

/* 상태 표시 150×50 : 진행 중 회색 · 배송완료 주황 연한 바탕 */
.account-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	height: 50px;
	padding: 0 18px;
	border-radius: 60px;
	font-weight: 600;
	font-size: 20px;
	white-space: nowrap;
}
.account-pill--grey { background: #d9d9d9; color: #14160d; }
.account-pill--orange { background: rgba(255, 140, 31, 0.2); color: var(--brand); }
.account-pill--off { background: #f0f0f0; color: var(--fg-subtle); }
.account-pill--sm { min-width: 0; height: 28px; padding: 0 12px; font-size: 13px; vertical-align: middle; }

/* ---- 주문 ---- */

.account-orders { margin: 0; padding: 0; list-style: none; }
.account-order { padding: 22px 0 20px; border-bottom: 1px solid #c4c4c4; }
.account-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.account-order__code { margin: 0; font-weight: 600; font-size: 30px; line-height: 30px; }
.account-order__meta { margin: 30px 0 0; font-size: 20px; line-height: 30px; }
.account-order__side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.account-order__total { margin: 0; font-weight: 700; font-size: 30px; color: var(--brand); }
.account-order--detail { border-bottom: 0; padding-bottom: 0; }

/* 주문 상세 상품 줄 : 사진 200 · 이름 · Qty · 가격 · Add to Cart (오른쪽 아래) */
.account-items { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid #c4c4c4; }
.account-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 0 23px; padding: 17px 0 17px 15px; border-bottom: 1px solid #c4c4c4; }
.account-item__img { width: 200px; aspect-ratio: 1; overflow: hidden; background: #c4c4c4; }
.account-item__img img { width: 100%; height: 100%; object-fit: cover; }
.account-item__info { display: flex; flex-direction: column; min-width: 0; font-size: 20px; }
.account-item__name { margin-top: 10px; text-transform: capitalize; }
.account-item__qty { margin: auto 0 0; }
.account-item__price { margin: 8px 0 18px; }
.account-item__actions { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding-bottom: 18px; }
.account-item__actions .account-btn { min-width: 200px; font-size: 18px; }

.account-sum { padding-top: 22px; }
.account-sum__row { display: flex; justify-content: space-between; font-size: 20px; line-height: normal; }
.account-sum__row + .account-sum__row { margin-top: 12px; }
.account-sum__row--total { margin-top: 28px !important; align-items: baseline; }
.account-sum__row--total span:last-child { font-weight: 700; font-size: 30px; color: var(--brand); }
.account-order__more { margin-top: 28px; padding-top: 20px; border-top: 1px solid #c4c4c4; font-size: 16px; line-height: 1.6; color: var(--fg-muted); }
.account-order__more p { margin: 0 0 6px; }
.account-order__more b { color: var(--efilow-ink); font-weight: 600; }
.account-order__more a { color: var(--brand); text-decoration: underline; }
.account-order__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---- 배송지 ---- */

.account-addresses { margin: 0; padding: 0; list-style: none; }
.account-address { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 0 20px; border-bottom: 1px solid #c4c4c4; }
.account-address__info { font-size: 20px; line-height: 33px; }
.account-address__info p { margin: 0; }
.account-address__label { display: flex; align-items: center; gap: 12px; margin-bottom: 30px !important; font-weight: 600; font-size: 30px; line-height: 30px; }
.account-address__actions { display: flex; gap: 10px; }
[data-address-new] { margin-top: 24px; }

/* ---- 입력 폼 (계정 정보 · 배송지 편집) : 두 칸 570 + 간격 14 ---- */

.account-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.account-form[hidden] { display: none; }
.account-form > .account-box__title { grid-column: 1 / -1; margin-bottom: 26px; }
.account-field { display: flex; flex-direction: column; gap: 17px; margin-top: 20px; font-size: 20px; color: var(--fg-subtle); text-transform: capitalize; }
.account-field--full { grid-column: 1 / -1; }
.account-form > .account-field:first-of-type, .account-form > .account-field:first-of-type + .account-field { margin-top: 0; }
.account-input {
	width: 100%;
	height: 62px;
	padding: 0 21px;
	border: 1px solid transparent;
	border-radius: 0;
	background: #fafafa;
	font-family: var(--font-body);
	font-size: 20px;
	color: #171717;
	text-transform: none;
	transition: border-color .2s var(--ease);
}
.account-input:focus { outline: none; border-color: var(--brand); }
.account-input[readonly] { color: #171717; }
select.account-input { appearance: none; background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M0 0h14L7 12z' fill='%238b8b8b'/%3E%3C/svg%3E") right 21px center no-repeat; }
.account-input--area { height: auto; padding: 16px 21px; resize: vertical; }
.account-pw { position: relative; }
.account-pw .account-input { padding-right: 180px; }
.account-pw__change { position: absolute; right: 6px; top: 6px; min-width: 150px; }
.account-pw__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.account-pw__fields[hidden] { display: none; }
.account-note { margin: 0; font-size: 15px; color: var(--fg-subtle); }
.account-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 18px; color: var(--efilow-ink); cursor: pointer; }
.account-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.account-form > button[type=submit], .account-form__actions { grid-column: 1 / -1; margin-top: 36px; }
.account-form__actions { display: grid; gap: 10px; }
.account-form__error { grid-column: 1 / -1; margin: 16px 0 0; font-size: 16px; color: var(--danger); }
.account-form__error[hidden] { display: none; }

/* 로그아웃 · 탈퇴 (기획안에 없음, 작게) */
.account-links { margin: 24px 0 0; font-size: 15px; color: var(--fg-subtle); text-align: center; }
.account-links a { text-decoration: underline; }
.account-links a:hover { color: var(--fg); }
.account-close { margin-top: 20px; padding-top: 20px; border-top: 1px solid #c4c4c4; }
.account-close[hidden] { display: none; }
.account-close__text { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: var(--fg-muted); }
.account-close .account-form__actions { grid-template-columns: auto auto; justify-content: start; margin-top: 20px; }

/* ---- 찜 : 카드 314×430 (#f7f7f7 · 모서리 33), 사진 244 위에 하트 원 50, 아래 Add to Cart 244×50 ---- */

.account-wishlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 314px)); gap: 9px; margin: 46px 0 0; padding: 0; list-style: none; }
.account-wish { display: flex; flex-direction: column; min-height: 430px; padding: 24px 35px 20px; border-radius: 33px; background: var(--surface); }
.account-wish__media { position: relative; aspect-ratio: 244 / 243; overflow: hidden; background: #c4c4c4; }
.account-wish__media a { position: absolute; inset: 0; display: block; }
.account-wish__media img { width: 100%; height: 100%; object-fit: cover; }
.account-wish__heart { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 1px solid var(--brand); border-radius: 50%; background: #fff; cursor: pointer; }
.account-wish__heart img { width: 20px; height: 20px; }
.account-wish__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 15px; }
.account-wish__title { max-width: 158px; font-family: var(--font-point); font-weight: 800; font-size: 20px; line-height: normal; color: var(--brand); text-transform: capitalize; }
.account-wish__price { flex: none; margin: 4px 0 0; font-size: 15px; text-align: right; }
.account-wish__price s { font-size: 12px; }
.account-wish__price b { font-weight: 700; }
.account-wish__add {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	margin-top: auto;
	border: 1px solid var(--brand);
	border-radius: 26px;
	background: #fff;
	font-family: var(--font-body);
	font-size: 18px;
	color: var(--brand);
	cursor: pointer;
}
.account-wish__add:hover { background: var(--brand); color: #fff; }
.account-wish__add:disabled { border-color: var(--fg-subtle); color: var(--fg-subtle); background: #fff; cursor: default; }

/* ---- 문의 ---- */

.account-inquiries { margin: 0; padding: 0; list-style: none; }
.account-inquiry { padding: 20px 0; border-bottom: 1px solid #c4c4c4; }
.account-inquiry__head { display: flex; align-items: center; gap: 12px; }
.account-inquiry__when { font-size: 15px; color: var(--fg-subtle); }
.account-inquiry__body { margin: 12px 0 0; font-size: 17px; line-height: 1.6; white-space: pre-wrap; }

/* ---- 배송지 삭제 확인 창 (피그마 Delete Address) ---- */

.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, .35); }
.account-modal__box { position: relative; width: min(100%, 900px); padding: 44px 75px 48px; border: 1px solid var(--brand); border-radius: 33px; background: #fff; font-family: var(--font-body); text-align: center; }
.account-modal__box > .account-box__title { text-align: left; }
.account-modal__x { position: absolute; right: 48px; top: 40px; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.account-modal__x img { width: 24px; height: 24px; }
.account-modal__q { margin: 24px 0 0; font-weight: 600; font-size: 30px; line-height: 30px; color: var(--efilow-ink); text-transform: capitalize; }
.account-modal__text { margin: 18px 0 0; font-size: 20px; color: var(--fg); text-transform: capitalize; }
.account-modal__actions { display: flex; justify-content: center; gap: 13px; margin-top: 28px; }

/* ---- 중간 폭 ---- */
@media (max-width: 1199px) and (min-width: 900px) {
	.account-tabs__btn { font-size: 20px; }
	.account-box { padding: 44px 40px 40px; }
}

/* =================================================================
 * 모바일 (기획안 My Account-mobile 850 폭) : 배너는 둥근 상자, 탭은 배너 바로 아래, 글자는 줄인다
 * ================================================================= */
@media (max-width: 899px) {
	.account-hero { height: auto; margin: 16px var(--page-margin) 0; padding-top: calc(100 * 100vw / 850); background: none; }
	.account-hero::before { content: ""; position: absolute; inset: 0 0 calc(64 * 100vw / 850); border-radius: calc(45 * 100vw / 850); background-image: linear-gradient(98.05deg, rgba(255, 252, 241, 0.8) 0%, rgba(255, 140, 31, 0.8) 98.709%); }
	.account-hero__text { position: relative; top: auto; padding-bottom: calc(110 * 100vw / 850); }
	.account-hero__sub { font-size: max(12px, calc(20 * 100vw / 850)); }
	.account-hero__title { font-size: max(24px, calc(45 * 100vw / 850)); }
	.account-tabs { position: relative; gap: 6px; padding: 0; overflow-x: auto; scrollbar-width: none; }
	.account-tabs::-webkit-scrollbar { display: none; }
	.account-tabs__btn { flex: 1 0 auto; height: max(36px, calc(64 * 100vw / 850)); padding: 0 10px; font-size: max(13px, calc(25 * 100vw / 850)); }
	.account-tabs__long { display: none; }
	.account-tabs__short { display: inline; }

	.account-body { margin-top: calc(80 * 100vw / 850); }
	.account-box { padding: 28px 22px 24px; border-radius: 22px; }
	.account-box__title, .account-box__label { font-size: 15px; }
	.account-btn { min-width: 0; height: 44px; padding: 0 16px; font-size: 15px; }
	.account-pill { min-width: 0; height: 32px; padding: 0 12px; font-size: 13px; }
	.account-order__code, .account-address__label { font-size: 20px; line-height: 1.2; }
	.account-order__meta, .account-address__info { font-size: 14px; line-height: 1.6; }
	.account-order__meta { margin-top: 12px; }
	.account-order__total { font-size: 20px; }
	.account-order__side { gap: 12px; }
	.account-item { grid-template-columns: 90px 1fr; gap: 10px 14px; padding: 14px 0; }
	.account-item__img { width: 90px; }
	.account-item__info { font-size: 14px; }
	.account-item__name { margin-top: 0; }
	.account-item__price { margin-bottom: 0; }
	.account-item__actions { grid-column: 1 / -1; flex-direction: row; padding-bottom: 0; }
	.account-item__actions .account-btn { flex: 1; min-width: 0; font-size: 14px; }
	.account-sum__row { font-size: 15px; }
	.account-sum__row--total span:last-child { font-size: 22px; }
	.account-order__more { font-size: 14px; }
	.account-address { flex-direction: column; align-items: stretch; }
	.account-address__label { margin-bottom: 12px !important; }
	.account-address__actions .account-btn { flex: 1; }
	.account-form { grid-template-columns: 1fr 1fr; gap: 0 8px; }
	.account-field { gap: 8px; margin-top: 14px; font-size: 13px; }
	.account-input { height: 46px; padding: 0 12px; font-size: 15px; }
	.account-pw .account-input { padding-right: 96px; }
	.account-pw__change { right: 4px; top: 4px; height: 38px; min-width: 84px; font-size: 14px; }
	.account-pw__fields { grid-template-columns: 1fr; }
	.account-note { font-size: 11px; }
	.account-check { font-size: 14px; }
	.account-form > button[type=submit], .account-form__actions { margin-top: 24px; }
	.account-wishlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
	.account-wish { min-height: 0; padding: 14px 12px; border-radius: 20px; }
	.account-wish__heart { width: 36px; height: 36px; right: 6px; bottom: 6px; }
	.account-wish__heart img { width: 16px; height: 16px; }
	.account-wish__info { flex-direction: column; gap: 2px; }
	.account-wish__title { font-size: 14px; }
	.account-wish__price { margin: 0; text-align: left; font-size: 13px; }
	.account-wish__add { height: 38px; margin-top: 10px; font-size: 14px; }
	.account-modal__box { padding: 28px 20px; border-radius: 22px; }
	.account-modal__x { right: 20px; top: 24px; }
	.account-modal__q { font-size: 20px; }
	.account-modal__text { font-size: 14px; }
	.account-modal__actions .account-btn { min-width: 110px; }
}
