/* SECTION: 주문관리 헤더 (style.css 공통 스타일 사용) */

/* SECTION: 주문관리 히어로 */
.section-order-hero {
	position: relative;
	overflow: hidden;
}

/* 배경 레이어 */
.order-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(37, 99, 235, 0.9) 0%, #153885 100%);
	z-index: 0;
}

/* 배경 블러 효과 */
.order-hero-blur {
	position: absolute;
	border-radius: 9999px;
}

.order-hero-blur.blur-1 {
	width: 808px;
	height: 656px;
	right: -200px;
	top: -434px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 300px 300px 300px;
	filter: blur(150px);
}

.order-hero-blur.blur-2 {
	width: 808px;
	height: 656px;
	right: -386px;
	top: -85px;
	background: rgba(136.98, 252.64, 250.71, 0.46);
	box-shadow: 300px 300px 300px;
	filter: blur(150px);
}

.order-hero-blur.blur-3 {
	width: 681px;
	height: 681px;
	left: -220px;
	top: -272px;
	background: rgba(17.05, 25.61, 81.28, 0.8);
	box-shadow: 399.9px 399.9px 399.9px;
	filter: blur(199.95px);
}

/* 히어로 콘텐츠 */
.order-hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	padding: 125px 0;
	text-align: center;
}

/* 타이틀 그룹 */
.order-hero-title-group {
	display: flex;
	align-items: flex-end;
	gap: 5px;
}

.order-hero-title {
	color: white;
}

/* 설명 */
.order-hero-desc {
	color: white;
}

/* SECTION: 주문 내역 확인 섹션 */
.section-order-overview {
	padding: 180px 0;
}

.order-overview-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 150px;
}

/* 타이틀 영역 */
.order-overview-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.order-overview-title {
	background: linear-gradient(90deg, #153885 0%, #2563eb 58%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
}

.order-overview-desc {
	color: var(--text-main);
}

/* 카드 영역 */
.order-overview-cards {
	display: flex;
	gap: 100px;
	align-items: flex-start;
}

.order-card {
	display: flex;
	flex-direction: column;
	gap: 60px;
	width: 550px;
}

.order-card-background {
	background: linear-gradient(42deg, #153885 0%, #2563eb 100%);
	border-radius: 24px;
	padding: 50px 39px 0;
	height: 620px;
	position: relative;
	display: flex;
	flex-direction: column;
}

/* 카드 헤더 */
.order-card-header {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.order-card-number {
	color: var(--accent-color);
	font-size: 20px;
	font-weight: 700;
	line-height: 20px;
}

.order-card-title {
	color: white;
}

.order-card-description {
	color: var(--text-accent);
}

/* 카드 이미지 */
.order-card-image {
	position: absolute;
	right: 1px;
	bottom: 1px;
	width: 90%;
	height: auto;
	border-top-left-radius: 8px;
	border-bottom-right-radius: 22px;
	object-fit: cover;
}

/* SECTION: 입금 대기 주문 처리 */
.section-order-waiting {
	position: relative;
	background: white;
	padding: 100px 0 180px;
}

/* 배경 오버레이 */
.order-waiting-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: white;
	opacity: 0.2;
	z-index: 0;
}

.order-waiting-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 106px;
}

/* 텍스트 영역 */
.order-waiting-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.order-waiting-title {
	background: linear-gradient(90deg, #153885 0%, #2563eb 58%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
}

.order-waiting-desc {
	color: var(--text-main);
}

/* 이미지 영역 */
.order-waiting-image {
	width: 606px;
	height: 426px;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: 15px 20px 25px rgba(0, 0, 0, 0.1);
}

/* SECTION: 현금영수증 */
.section-cash-receipt {
	background: #f5f8ff;
	padding: 180px 0;
}

.cash-receipt-container {
	display: flex;
	flex-direction: column;
	gap: 150px;
}

/* 헤더 섹션 */
.cash-receipt-header {
	text-align: center;
}

.cash-receipt-main-title {
	background: linear-gradient(90deg, #153885 0%, #2563eb 58%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	margin-bottom: 20px;
}

.cash-receipt-main-desc {
	color: var(--text-main);
}

/* 서브 섹션 공통 */
.cash-receipt-item {
	display: flex;
	align-items: center;
	gap: 95px;
}

.cash-receipt-item.reverse {
	flex-direction: row-reverse;
}

/* 텍스트 영역 */
.cash-receipt-text {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cash-receipt-title {
	color: var(--text-main);
	margin-bottom: 24px;
}

.cash-receipt-desc {
	color: var(--text-secondary);
}

/* 이미지 영역 */
.cash-receipt-image {
	width: 606px;
	height: 426px;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: 15px 20px 25px rgba(0, 0, 0, 0.1);
}

/* CSV 다운로드 특별 레이아웃 */
.cash-receipt-csv {
	position: relative;
	/* height 제거 - 내부 콘텐츠에 따름 */
}

/* 데스크탑 레이아웃 보존용 Flex 컨테이너 */
.cash-receipt-csv-content {
	display: block; /* 절대 위치 컨텍스트 허용 */
	position: relative;
	height: 426px; /* 데스크탑 높이 */
}

/* 비주얼 그룹 (이미지 + 데코) */
.cash-receipt-visual-group {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

/* 메인 이미지 - 기존 스타일 유지되도록 */
.cash-receipt-visual-group .cash-receipt-image {
	/* 기존 .cash-receipt-image 스타일 상속 */
	display: block;
}

/* 데코레이션 컨테이너 (좌표 기준점) */
.cash-receipt-csv-deco {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none; /* 클릭 통과 (버튼은 auto로) */
}

/* 초록점 (Desktop 좌표 유지) */
.cash-receipt-csv-icon {
	position: absolute;
	left: 530px;
	top: 52px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(54, 219, 112, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 점선 SVG (Desktop 좌표 유지) */
.cash-receipt-csv-line {
	position: absolute;
	left: 580px;
	top: 77px;
}

/* CSV 버튼 (Desktop 좌표 유지) */
.cash-receipt-csv-button {
	position: absolute;
	left: 705px;
	top: 71px;
	width: 212px;
	height: 100px;
	background: white;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 9px 0;
	pointer-events: auto; /* 버튼 클릭 가능 */
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.cash-receipt-csv-button img {
	width: 211.83px; /* 기존 유지 */
	height: 82px;
	object-fit: contain;
}

/* 유틸리티 클래스 */
.mobile-only {
	display: none !important;
}

/* Mobile CSV Visual Group (Tablet & Mobile) */
.cash-receipt-mobile-visual-group {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	/* Use aspect-ratio so the container height scales with the width */
	aspect-ratio: 338 / 237.6;
}

/* Container to maintain aspect ratio relative to the main image (338x237.6) */
.mobile-csv-main-img-container {
	position: relative;
	width: 100%;
	aspect-ratio: 338 / 237.6;
}

/* Mobile CSV Main Image */
.mobile-csv-main-img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	object-fit: cover;
	box-shadow: 15px 20px 25px rgba(0, 0, 0, 0.1);
}

/* Dots and UI inside the container */
.mobile-csv-dot {
	position: absolute;
	top: 5.03%; /* 11.95 / 237.6 */
	width: 1.48%; /* 5 / 338 */
	height: auto;
	aspect-ratio: 1 / 1;
}

.mobile-csv-dot svg {
	width: 100%;
	height: 100%;
}

.red-dot {
	left: 3.72%;
} /* 12.58 / 338 */
.gray-dot {
	left: 6.68%;
} /* 22.59 / 338 */
.green-dot {
	left: 9.64%;
} /* 32.59 / 338 */

/* Dashed lines layer */
.mobile-csv-lines-wrapper {
	position: absolute;
	left: 50%; /* 169 / 338 = 0.5 */
	top: 25.25%; /* 60 / 237.6 */
	width: 41.12%; /* 139 / 338 */
	/* Add aspect ratio check if SVG scales weirdly, but usually SVG handles it */
}

.mobile-csv-lines-wrapper svg {
	width: 100%;
	height: auto;
}

/* Action Icon */
.mobile-csv-action-icon {
	position: absolute;
	left: 86.37%; /* 291.92 / 338 */
	top: 12.77%; /* 30.33 / 237.6 */
	width: 8.88%; /* 30 / 338 */
	aspect-ratio: 1 / 1;
}

.mobile-csv-action-icon svg {
	width: 100%;
	height: 100%;
}

/* Button UI */
.mobile-csv-btn-wrapper {
	position: absolute;
	left: 31.66%; /* 107 / 338 */
	top: 137.63%; /* 327 / 237.6 */
	width: 36.59%; /* 123.67 / 338 */
}

/* Mobile Button Image */
.mobile-csv-btn-img {
	position: relative;
	width: 99.92%; /* 123.57 / 123.67 */
	height: auto;
	z-index: 1;
}

/* 텍스트 그룹 (Desktop 좌표 유지) */
.cash-receipt-text-group {
	position: absolute;
	left: 705px;
	top: 200px;
	display: flex;
	flex-direction: column;
}

.cash-receipt-text-group .cash-receipt-desc {
	width: 495px;
	color: var(--text-secondary);
}

/* SECTION: 하단 CTA */
.section-order-cta {
	background-image: url('../images/product/order/order_cta_bg.png');
}

.order-cta-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	text-align: center;
}

.order-cta-text-group {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.order-cta-title {
	color: white;
}

.order-cta-subtitle {
	color: white;
}

.order-cta-btn-wrapper {
	display: flex;
	align-items: center;
	gap: 33px;
}

.order-cta-btn {
	padding: 18px 32px;
	border-radius: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.order-cta-btn-secondary {
	background: white;
	color: var(--primary-color);
}

.order-cta-btn-primary {
	background: var(--primary-color);
	color: white;
}

/* 태블릿 반응형 (Max-width: 1023px) */

@media (max-width: 1023px) {
	/* 현금영수증 섹션 패딩 조정 */
	.section-cash-receipt {
		padding: 100px 0;
	}

	.cash-receipt-container {
		gap: 120px;
	}

	/* 일반 아이템 (건별/일괄 발급) Stacking */
	.cash-receipt-item {
		flex-direction: column;
		gap: 60px;
		text-align: center;
	}

	.cash-receipt-item.reverse {
		flex-direction: column; /* reverse 해제하고 정방향 스택? 아니면 이미지 위/아래? 보통 텍스트 위 이미지 아래 */
	}

	.cash-receipt-title {
		margin-bottom: 16px;
	}

	.cash-receipt-text {
		align-items: center;
		width: 100%;
	}

	.cash-receipt-image {
		width: 100%;
		height: auto;
		max-width: 600px;
	}

	/* CSV 다운로드 섹션 반응형 */
	.cash-receipt-csv-content {
		height: auto;
		display: flex;
		flex-direction: column-reverse; /* 텍스트가 위로 오도록 변경 */
		gap: 60px;
		align-items: center;
	}

	/* 텍스트 그룹: 상단 배치 (Relative Flow) */
	.cash-receipt-text-group {
		position: static;
		width: 100%;
		text-align: center;
		align-items: center;
	}

	.cash-receipt-text-group .cash-receipt-desc {
		width: 100%;
		max-width: 500px;
	}

	/* Show Mobile Visual Group, Hide Desktop */
	.desktop-only {
		display: none !important;
	}
	.mobile-only {
		display: block !important;
	}

	/* 비주얼 그룹 컨테이너 - margin 조정 */
	.cash-receipt-mobile-visual-group {
		margin: 0 auto 40% auto;
	}

	/* 추가 여백 보정 삭제 (위에서 통합) */

	/* 1. 주문관리 헤더 */
	.section-order-header {
		padding: 20px 0;
	}

	/* 2. Order Hero */
	.order-hero-content {
		padding: 100px 0;
		gap: 20px;
	}

	.order-cta-btn-wrapper {
		flex-direction: column;
		gap: 15px;
	}

	.order-cta-btn {
		width: fit-content;
		min-width: 230px;
	}

	/* 4. Order Overview (주문 내역) */
	.section-order-overview {
		padding: 100px 0;
	}

	.order-overview-cards {
		flex-direction: column;
		align-items: center;
		gap: 60px;
	}

	.order-card {
		width: 650px;
	}

	.order-overview-content {
		gap: 80px;
	}

	/* 카드 디자인 강화 */
	.order-card-background {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		overflow: hidden;
		height: 650px;
		box-shadow: 0 20px 40px rgba(21, 56, 133, 0.15);
	}

	.order-card-image {
		width: 90%;
		object-fit: cover;
	}

	/* 5. Order Waiting (입금 대기) */
	.section-order-waiting {
		padding: 100px 0;
	}

	.order-waiting-content {
		flex-direction: column;
		gap: 60px;
		text-align: center;
	}

	.order-waiting-text {
		align-items: center;
	}

	.order-waiting-image {
		width: 100%;
		height: auto;
		max-width: 600px;
		border-radius: 30px;
	}
}

/* 모바일 반응형 (Max-width: 767px) */

@media (max-width: 767px) {
	.section-cash-receipt {
		padding: 80px 0;
	}

	.cash-receipt-container {
		gap: 80px;
	}

	/* CSV 다운로드 섹션 반응형 */
	.cash-receipt-csv-content {
		gap: 40px; /* 간격 더 넓힘 */
	}
	/* 일반 아이템 (건별/일괄 발급) Stacking */
	.cash-receipt-item {
		gap: 40px;
	}

	/* 모바일 스케일 다운 */
	.cash-receipt-mobile-visual-group {
		transform-origin: center top;
	}

	/* 2. Order Hero */
	.order-hero-content {
		padding: 80px 0;
	}

	/* 3. 주문관리 CTA (style.css 공통 스타일 사용) */

	.order-cta-btn {
		min-width: 210px;
	}

	/* 4. Order Overview (주문 내역) */
	.section-order-overview {
		padding: 80px 0;
	}

	.order-overview-content {
		gap: 60px;
	}

	.order-card {
		width: 100%;
	}

	.order-card-background {
		height: 460px;
		padding: 40px 35px 0;
	}

	.order-card-image {
		width: 90%;
	}

	/* 5. Order Waiting (입금 대기) */
	.section-order-waiting {
		padding: 80px 0;
	}

	.order-waiting-content {
		gap: 40px;
	}

	.order-waiting-image {
		border-radius: 20px;
	}
}
