/* =========================================================================
   my page  ========================================================================= */
:root {
	--mypage-sidebar-w: 180px;
}
.mypage-layout {
	display: flex;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: calc(var(--spacing-9) * 2) 0;
}

/* =========================================================================
   my page: sidebar  ========================================================================= */
.pc-sidebar.mypage-sidebar {
	z-index: unset;
	position: static;
	width: var(--mypage-sidebar-w);
	border: unset;
}
.pc-sidebar.mypage-sidebar .navbar-wrapper {
	width: var(--mypage-sidebar-w);
}
.pc-sidebar.mypage-sidebar .navbar-content {
	height: 100%;
}

/* nav item */
.pc-sidebar.mypage-sidebar .pc-navbar > .pc-item {
	margin: 0;
}
.pc-sidebar.mypage-sidebar .pc-navbar > .pc-item:not(:last-child) {
	margin-bottom: var(--spacing-5);
}
.pc-sidebar.mypage-sidebar .pc-link {
	padding: var(--spacing-3) 0;
	border-radius: var(--spacing-2);
}

/* nav item: text */
.pc-sidebar.mypage-sidebar .pc-link .pc-mtext {
	font-size: var(--text-body-lg); /* 16px */
	font-weight: 700;
	line-height: 1.5; /* 24px */
	/*color: var(--text-secondary);*/
}
/* nav item: hover */
.pc-sidebar.mypage-sidebar
	.pc-navbar
	> .pc-item:hover:not(.active)
	> .pc-link:after {
	background: transparent;
}
.pc-sidebar.mypage-sidebar .pc-link:hover {
	background: var(--gray-100);
}

/* nav item: active */
.pc-sidebar.mypage-sidebar .pc-navbar > .pc-item.active > .pc-link:after {
	background: unset;
}
.pc-sidebar.mypage-sidebar .pc-navbar > .pc-item.active > .pc-link > .pc-mtext {
	line-height: 24px;
	color: var(--text-primary);
	text-decoration: underline;
	text-decoration-style: solid;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 10%;
	text-decoration-skip-ink: auto;
}

/* submenu */
.pc-sidebar.mypage-sidebar .pc-navbar > .pc-item > .pc-submenu {
}
.pc-sidebar.mypage-sidebar .pc-navbar > .pc-item .pc-submenu .pc-link {
	padding: var(--spacing-2) var(--spacing-3);
	font-size: var(--text-body-lg); /* 16px */
	font-weight: 500;
	line-height: 1.5; /* 24px */
	color: var(--gray-400);
}
.pc-sidebar .pc-navbar > .pc-item .pc-submenu .pc-item > .pc-link:after {
	content: unset;
}
.pc-sidebar.mypage-sidebar .pc-navbar > .pc-item .pc-submenu .pc-link:hover {
	color: var(--text-secondary);
}
.pc-sidebar.mypage-sidebar
	.pc-navbar
	> .pc-item
	.pc-submenu
	.pc-item.active
	.pc-link {
	line-height: 24px;
	color: var(--text-secondary);
	text-decoration: underline;
	text-decoration-style: solid;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 10%;
	text-decoration-skip-ink: auto;
}

/* =========================================================================
   my page: container  ========================================================================= */
.mypage-container {
	width: calc(100% - var(--mypage-sidebar-w));
	padding: 0 0 0 calc(var(--spacing-8) * 2);
}

.mypage-title {
	--letter-spacing-ratio: -0.004%;
	margin-bottom: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.5;
}
.mypage-title-box {
	margin-bottom: var(--spacing-9);
	text-align: center;
}

/* =========================================================================
   my page: container  ========================================================================= */
.mypage-user-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.mypage-user-info {
	display: flex;
	align-items: center;
	gap: var(--spacing-5);
}
.mypage-user-info .badge {
	--bs-badge-padding-x: var(--spacing-6);
	--bs-badge-border-radius: 200px;
	padding: var(--spacing-3) var(--bs-badge-padding-x) var(--radius);
}

.mypage-bento-box {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(2, auto);
	gap: var(--spacing-7);
	margin-top: var(--spacing-7);
}

/* 첫째 줄: 2개 카드 (각각 3칸씩 차지) */
.mypage-bento-box .card.point {
	grid-column: span 3;
}

.mypage-bento-box .card.date {
	grid-column: span 3;
}

/* 둘째 줄: 3개 카드 (각각 2칸씩 차지) */
.mypage-bento-box .card.order {
	grid-column: span 2;
}

.mypage-bento-box .card.subscription {
	grid-column: span 2;
}

.mypage-bento-box .card.sns {
	grid-column: span 2;
}

.mypage-bento-box .card.point .card-body,
.mypage-bento-box .card.date .card-body,
.mypage-bento-box .card.sns .card-body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--spacing-8);
}
.mypage-bento-box .card.order .card-body,
.mypage-bento-box .card.subscription .card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-5);
}

.card .icon svg {
	width: 48px;
	height: 48px;
}
.card .icon path {
	stroke-width: 1.5;
}

.value-link {
	display: flex;
	align-items: center;
	gap: var(--spacing-2);
}
.value-link .emphasis {
	margin-right: var(--spacing-2);
}
.value-link .icon svg {
	width: 36px;
	height: 36px;
}

.value-link.small {
	gap: 0;
}
.value-link.small .emphasis {
	margin-right: var(--spacing);
}
.value-link.small .icon svg {
	width: 18px;
	height: 18px;
}

.social-login-box-wrapper {
	display: flex;
	justify-content: center;
}
.social-login-box {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-5);
	width: fit-content;
}

.social-login-box .login-button {
	display: flex;
	background: transparent;
}

.social-login-box .login-button svg {
	width: 48px;
	height: 48px;
}

/* kakao icon button: inactive */
.social-login-box .login-button.kakao-login-button.inactive .bg {
	fill: var(--gray-200);
}
.social-login-box .login-button.kakao-login-button.inactive .symbol {
	fill: var(--white);
}

/* naver icon button: inactive */
.social-login-box
	.login-button.naver-login-button.inactive
	.naver-login-button-stroke,
.social-login-box
	.login-button.naver-login-button.inactive
	.naver-login-button-bg {
	fill: var(--gray-200);
}

/* apple icon button: inactive */
.social-login-box .login-button.apple-login-button.inactive .bg {
	fill: var(--gray-200);
}

/* google icon button */
.social-login-box
	.login-button.google-login-button
	.google-login-button-stroke {
	stroke: var(--color-stroke);
}
/* google icon button: inactive */
.social-login-box
	.login-button.google-login-button.inactive
	.google-login-button-stroke {
	stroke: var(--gray-200);
}
.social-login-box .login-button.google-login-button.inactive .bg {
	fill: var(--gray-200);
}
.social-login-box .login-button.google-login-button.inactive .symbol {
	fill: var(--white);
}

/* 
start: mypage: orders summary
*/
.section-order {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.order-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.order-summary {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 1rem;
}
.order-summary-date-input .form-input {
	padding: var(--spacing-5) var(--spacing-4);
	border: none;
	font-size: var(--text-body-lg);  /* 16px */
	font-weight: 400;
	line-height: 1.5;  /* 24px */
}
.order-summary-date-input .form-input::placeholder {
	color: var(--gray-400);
}

.order-summary-extra-left {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	flex: 1;
}

.order-summary-extra-right {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	flex: 1;
}

.order-summary-box {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.order-summary-extra {
	display: flex;
	flex-direction: row;
	gap: 1rem;
}

.date-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 2rem;
}

.date-header {
}

.order-item {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: var(--spacing-7);
	border-radius: var(--radius-3);
	border: 1px solid var(--color-stroke);
	background: var(--white);
}

.order-item-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.order-item-header-left {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--spacing-7);
	flex: 1;
}

.order-item-header-left-left {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--spacing-2);
}

.order-item-header-left-right {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.order-delivery-status {
	font-size: var(--text-body-lg);
	color: var(--text-secondary);
}

.order-delivery-date {
	font-size: var(--text-body-lg);
	color: var(--text-secondary);
}

.order-item-header-right {
	display: flex;
	flex-direction: row;
	align-items: center;
}
.order-tracking-btn {
	border: none;
	font-weight: 400;
	color: var(--primary);
}
.order-tracking-btn.btn--text .icon:not(.icon--custom) svg path {
	stroke: var(--primary);
}
.order-tracking-btn.btn--text:hover .icon:not(.icon--custom) svg path {
    stroke: var(--secondary);
}
.order-item-content {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
}

.order-item-content-left {
	display: flex;
	flex-direction: row;
	gap: 24px;
	flex: 1;
}

.order-item-content-right {
	flex: 1;
}

.order-item-image {
	width: 15%;
	max-width: 120px;
	aspect-ratio: 1/1;
	border-radius: 9px;
	overflow: hidden;
}

.order-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.order-item-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 20px;
}

.order-item-details-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.order-type {
	display: inline-block;
	padding: var(--spacing) calc(var(--spacing) * 3);
	border-radius: 5px;
	background-color: var(--green-050);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: -0.2%;
	color: var(--green-500);
}

.order-code-summary, .order-options {
	color: var(--text-secondary);
}

.order-price {
	font-size: var(--text-body-lg);
	font-weight: 600;
	line-height: 20px;
	letter-spacing: -0.2%;
	/* color: var(--text-primary); */
}

.order-item-footer {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
}

.order-item-footer-right {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
}

.order-status-message {
	font-size: var(--text-body-lg);
	font-weight: 600;
}

.order-status-message.status-confirmed {
	color: #0A31A8;
}

.order-status-message.status-pending {
	color: #FF6B00;
}

.order-status-message.status-cancelled {
	color: #DC3545;
}

.order-actions {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	gap: 1rem;
}

.order-tracking-link {
	color: #1c56ff;
	font-size: var(--text-body-lg);
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}

.order-tracking-link:hover {
	text-decoration: underline;
}

.price {
	color: #1c56ff;
}
/* Tracking modal tidy styles */
#orderActionModal .tracking-result {
	max-height: 60vh;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#orderActionModal .tracking-section-title {
	font-weight: 600;
	margin: 6px 0;
}
#orderActionModal .tracking-latest .meta,
#orderActionModal .tracking-item .meta {
	font-size: 13px;
	color: #6b7280;
}
#orderActionModal .tracking-latest .desc,
#orderActionModal .tracking-item .desc {
	font-size: 14px;
	color: #333;
	margin-top: 2px;
}
#orderActionModal .tracking-item {
	padding: 8px 10px;
	border: 1px solid #eee;
	border-radius: 6px;
}
@media (prefers-color-scheme: dark) {
	#orderActionModal .tracking-item {
		border-color: #333;
	}
}
/* 
end: mypage: orders summary
*/

/*
	Breakpoints
*/
@media (max-width: 1440px) {
	.mypage-layout {
		padding: calc(var(--spacing-9) * 2) var(--spacing-5);
	}
}

@media (max-width: 1024px) {
	.pc-sidebar.mypage-sidebar {
		background: var(--pc-sidebar-background);
	}
}
