@charset "UTF-8";

/**
 * 그냥이차 사용자 사이트 유지보수 스타일
 *
 * 원본 스타일시트는 수정하지 않고, 변경·개선 스타일만 이 파일에서 관리합니다.
 * 기존 사용자 사이트 스타일시트보다 나중에 불러와야 합니다.
 */

/* 랭킹 - 모바일 월 렌트료 가독성 개선 */
@media all and (max-width: 767px) {
	.ranking-slide-active .text-box .price {
		margin-top: 0;
		font-size: 15px;
		line-height: 1.35;
		color: var(--primary-color);
		font-weight: 700;
		letter-spacing: -0.02em;
		white-space: nowrap;
		font-variant-numeric: tabular-nums;
	}
}

/* Quill 콘텐츠 글자 크기 */
.ql-size-small {
	font-size: 0.75em !important;
}

.ql-size-large {
	font-size: 1.5em !important;
}

.ql-size-huge {
	font-size: 2.5em !important;
}

/* Quill 콘텐츠 정렬 */
.ql-align-center {
	text-align: center !important;
}

.ql-align-right {
	text-align: right !important;
}

.ql-align-justify {
	text-align: justify !important;
}

/* Quill 콘텐츠 방향 */
.ql-direction-rtl {
	direction: rtl !important;
	text-align: inherit !important;
}

/**
 * 이용후기 목록
 */

/* 메인 이용후기는 기존 Swiper와 이미지 구조를 유지하고 후기 내용 높이만 보정합니다. */
.main-review .main-review-slide .desc {
	height: 2.6em;
	min-height: 2.6em;
	line-height: 1.3;
}

/* 이용후기 목록의 각 카드를 그리드 셀 높이에 맞춥니다. */
.gallery-list-type03.main-review-slide .gallery-item {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* 목록 후기 텍스트 영역이 카드 전체 너비와 남은 높이를 사용하도록 합니다. */
.gallery-list-type03.main-review-slide .text-box {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.gallery-list-type03.main-review-slide .desc {
	height: 2.6em;
	min-height: 2.6em;
	line-height: 1.3;
}

.gallery-list-type03.main-review-slide .name-box {
	width: 100%;
	min-width: 0;
	margin-top: auto;
}

.gallery-list-type03.main-review-slide .name-box .name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gallery-list-type03.main-review-slide .name-box .date {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
}

.gallery-list-type03.main-review-slide .img-box {
	flex: 0 0 auto;
	width: 100%;
}

/* 1차 후기 목록 카드의 제조사와 차량명을 한 줄로 정렬합니다. */
:is(
	.main-review-slide > .swiper-wrapper > .swiper-slide,
	.gallery-list-type03.main-review-slide > .gallery-item
) > .text-box {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto minmax(0, 1fr) auto;
	column-gap: 8px;
}

:is(
	.main-review-slide > .swiper-wrapper > .swiper-slide,
	.gallery-list-type03.main-review-slide > .gallery-item
) > .text-box > .label {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	max-width: 120px;
	align-self: baseline;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

:is(
	.main-review-slide > .swiper-wrapper > .swiper-slide,
	.gallery-list-type03.main-review-slide > .gallery-item
) > .text-box > .title {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	align-self: baseline;
}

:is(
	.main-review-slide > .swiper-wrapper > .swiper-slide,
	.gallery-list-type03.main-review-slide > .gallery-item
) > .text-box > .tag-box {
	grid-column: 1 / -1;
	grid-row: 2;
}

/* 첫 번째 태그(상품 구분)는 숨기고 두 번째 태그는 유지합니다. */
:is(
	.main-review-slide > .swiper-wrapper > .swiper-slide,
	.gallery-list-type03.main-review-slide > .gallery-item
) > .text-box > .tag-box > .tag:first-child {
	display: none;
}

:is(
	.main-review-slide > .swiper-wrapper > .swiper-slide,
	.gallery-list-type03.main-review-slide > .gallery-item
) > .text-box > .desc {
	grid-column: 1 / -1;
	grid-row: 3;
	align-self: start;
}

:is(
	.main-review-slide > .swiper-wrapper > .swiper-slide,
	.gallery-list-type03.main-review-slide > .gallery-item
) > .text-box > .name-box {
	grid-column: 1 / -1;
	grid-row: 4;
}

/*
 * 렌트 상세 이용후기 목록
 * 긴 태그는 라벨 높이를 유지하면서 한 줄 말줄임 처리합니다.
 * Swiper 내부 구조에 의존하지 않고 후기 슬라이더의 식별 속성으로 범위를 제한합니다.
 */
.review-slide[data-slide="review-slide"] .text-box > .tag-box {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.review-slide[data-slide="review-slide"]
.text-box > .tag-box > .tag:not(:first-child) {
	display: block;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/**
 * 이용후기 상세 레이어
 */

/* modal-body 한 곳에서만 스크롤하고 footer는 하단에 유지합니다. */
.modal-review .modal-box {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	overflow: hidden;
}

.modal-review .modal-body {
	flex: 1 1 auto;
	min-height: 0;
	margin-top: 30px;
	padding-top: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: #d9d9d9 transparent;
	-webkit-overflow-scrolling: touch;
}

.modal-review .modal-body::-webkit-scrollbar {
	width: 4px;
}

.modal-review .modal-body::-webkit-scrollbar-track {
	background: transparent;
}

.modal-review .modal-body::-webkit-scrollbar-thumb {
	border-radius: 99px;
	background: #d9d9d9;
}

.modal-review .modal-footer {
	position: relative;
	left: auto;
	bottom: auto;
	flex: 0 0 auto;
	padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* 제조사·차량명을 제목으로, 나머지 필드를 메타정보로 구분합니다. */
.modal-review .modal-review-info {
	display: block;
	margin: 20px 0 0;
}

.modal-review .modal-review-heading {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-width: 0;
}

.modal-review .modal-review-heading .label {
	flex: 0 0 auto;
	white-space: nowrap;
}

.modal-review .modal-review-title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	border-bottom: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.modal-review .modal-review-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	margin: 12px 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #d9d9d9;
}

.modal-review .modal-review-meta .tag-box {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.modal-review .modal-review-meta .name-box {
	flex: 0 0 auto;
	max-width: 100%;
	margin-left: auto;
}

/* 후기 본문의 고정 높이와 내부 스크롤을 제거합니다. */
.modal-review .modal-review-desc {
	height: auto;
	min-height: 0;
	overflow: visible;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* 가로형은 영역을 채우고 세로형은 블러 배경과 함께 노출합니다. */
.modal-review .modal-review-slide .swiper-slide .img-box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	isolation: isolate;
	background: #f5f5f5;
}

.modal-review .modal-review-slide .swiper-slide .img-box .review-image-bg {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: blur(12px) brightness(.82);
	transform: scale(1.07);
	pointer-events: none;
	user-select: none;
}

.modal-review .modal-review-slide .swiper-slide .img-box.is-portrait .review-image-bg {
	display: block;
}

.modal-review .modal-review-slide .swiper-slide .img-box .review-image-main {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	user-select: none;
}

.modal-review .modal-review-slide .swiper-slide .img-box.is-portrait .review-image-main {
	object-fit: contain;
}

.modal-review .modal-review-slide .swiper-pagination {
	z-index: 2;
}

/* 이전/다음 버튼이 모두 있는 경우에만 중앙 구분점을 유지합니다. */
.modal-review [data-role="review-detail-navigation"]:not(:has(> .btn.prev))::after,
.modal-review [data-role="review-detail-navigation"]:not(:has(> .btn.next))::after {
	content: none;
}

@media all and (max-width: 767px) {
	/* 이용후기 1차 목록 */
	:is(
		.main-review-slide > .swiper-wrapper > .swiper-slide,
		.gallery-list-type03.main-review-slide > .gallery-item
	) > .text-box {
		column-gap: 6px;
	}

	:is(
		.main-review-slide > .swiper-wrapper > .swiper-slide,
		.gallery-list-type03.main-review-slide > .gallery-item
	) > .text-box > .label {
		max-width: 90px;
	}

	/* 이용후기 상세 */
	.modal-review .modal-box {
		max-height: calc(100vh - 100px);
		max-height: calc(100dvh - 100px);
	}

	.modal-review .modal-body {
		margin-top: 20px;
		padding-top: 0;
	}

	.modal-review .modal-review-info {
		margin-top: 12px;
	}

	/* 모바일에서도 제조사와 차량명을 한 줄로 유지합니다. */
	.modal-review .modal-review-heading {
		display: flex;
		align-items: baseline;
		flex-wrap: nowrap;
		gap: 6px;
		min-width: 0;
	}

	.modal-review .modal-review-heading .label {
		flex: 0 0 auto;
		max-width: 40%;
		min-width: 0;
		margin-bottom: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.modal-review .modal-review-title {
		flex: 1 1 auto;
		min-width: 0;
		margin: 0;
		padding: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		overflow-wrap: normal;
		word-break: normal;
		white-space: nowrap;
	}

	.modal-review .modal-review-meta {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin: 10px 0 15px;
		padding-bottom: 12px;
	}

	.modal-review .modal-review-meta .tag-box {
		width: 100%;
	}

	.modal-review .modal-review-slide .swiper-slide .img-box.is-portrait .review-image-bg {
		filter: blur(10px) brightness(.85);
		transform: scale(1.06);
	}

	.modal-review .modal-review-info .name-box {
		align-self: flex-start;
		max-width: 100%;
		height: auto;
		min-height: 32px;
		margin-left: 0;
		padding-top: 8px;
		padding-bottom: 8px;
		line-height: 1.3;
		white-space: normal;
	}

	.modal-review .modal-review-desc {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.modal-review .modal-footer {
		padding: 12px 20px max(12px, env(safe-area-inset-bottom));
	}

	.modal-review .modal-review-pagination .btn {
		height: 44px;
		min-height: 44px;
	}
}

/**
 * 렌트 상세 - 모바일 금융 견적 상품 유형 및 계약 조건 정렬
 * 데스크톱은 기존 이용조건 카드의 상품 유형 라벨을 유지합니다.
 */
.rent-view [data-rentcar-capital-result] .capital-product-badge {
	display: none;
}

.rent-view [data-rentcar-capital-result] .capital-condition-row {
	display: flex;
	align-items: center;
	min-width: 0;
}

@media all and (max-width: 767px) {
	/* 모바일에서는 이용조건 카드 헤더를 숨겨 불필요한 상단 여백까지 제거합니다. */
	.rent-view [data-rentcar-condition-card] > .card-head {
		display: none;
	}

	/* 모바일에서는 상품 유형을 금융 견적 조건 행의 좌측에 노출합니다. */
	.rent-view .condition-product-badge {
		display: none;
	}

	.rent-view [data-rentcar-capital-result] .capital-content {
		row-gap: 12px;
		column-gap: 0;
	}

	.rent-view [data-rentcar-capital-result] .capital-price {
		flex: 0 0 100%;
	}

	.rent-view [data-rentcar-capital-result] .capital-condition-row {
		align-items: flex-start;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
	}

	.rent-view [data-rentcar-capital-result] .capital-product-badge {
		display: inline-flex;
		flex: 0 0 auto;
		justify-content: center;
		height: 32px;
		padding: 0 8px;
		border-color: #fff;
		background-color: #fff;
		box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
		color: var(--primary-color);
		font-size: var(--font-size-12);
		font-weight: 700;
		line-height: 1;
		white-space: nowrap;
	}

	.rent-view [data-rentcar-capital-result] .capital-condition-row .condition-badge {
		flex: 1 1 auto;
		justify-content: flex-end;
		min-width: 0;
		gap: 4px;
	}

	.rent-view [data-rentcar-capital-result] .capital-condition-row .condition-badge .badge {
		height: 32px;
		padding: 0 5px 0 20px;
		background-position: left 2px center;
		background-size: 16px;
		font-size: var(--font-size-12);
		white-space: nowrap;
	}

	.rent-view [data-rentcar-capital-result] .capital-condition-row .condition-badge .badge.deposit {
		min-width: 0;
	}
}


/**
 * 메인 - 실시간 견적 슬라이드 가변 데이터 레이아웃
 *
 * API 결과가 1~2건이어도 Swiper 컨테이너가 콘텐츠 폭으로 축소되지 않도록
 * 메인 flex 영역의 남은 너비를 항상 사용합니다.
 * 슬라이드 개수/Swiper 설정은 변경하지 않아 기존 반응형·자동재생·네비게이션 동작을 유지합니다.
 */
.main-live .main-live-slide {
	flex: 1 1 0;
	min-width: 0;
}


/**
 * 렌트카 브랜드 목록 - 브랜드 이미지 안전 영역
 *
 * 제조사별 원본 이미지 크기와 비율이 달라도 버튼 크기와 브랜드명이 밀리지 않도록
 * 로고의 최대 너비/높이만 제한하고 원본 비율은 유지합니다.
 */
.rent-list.brand .rent-brand-box .btn {
	gap: 5px;
	overflow: hidden;
}

.rent-list.brand .rent-brand-box .btn .img {
	display: block;
	width: auto;
	height: auto;
	max-width: 48px;
	max-height: 38px;
	object-fit: contain;
	object-position: center;
	flex: 0 1 auto;
}

@media all and (max-width: 767px) {
	.rent-list.brand .rent-brand-box .btn {
		gap: 4px;
	}

	.rent-list.brand .rent-brand-box .btn .img {
		max-width: 42px;
		max-height: 32px;
	}
}


/**
 * 렌트카 필터 - 제조사 이미지 안전 영역
 *
 * 필터 팝업은 공통 브랜드 목록보다 작은 70px 버튼을 사용하므로
 * 이미지 원본 크기와 비율에 관계없이 로고가 텍스트/버튼 영역을 침범하지 않도록
 * 팝업 범위에서만 최대 크기를 제한합니다.
 */
.modal-filter-brand .rent-brand-box .btn {
	gap: 4px;
	overflow: hidden;
}

.modal-filter-brand .rent-brand-box .btn .img {
	display: block;
	width: auto;
	height: auto;
	max-width: 38px;
	max-height: 30px;
	object-fit: contain;
	object-position: center;
	flex: 0 1 auto;
}


/**
 * 메인 - iM캐피탈 장기렌터카 상품정보 상시 고지
 *
 * 공통 container, Pretendard, font-size 변수와 기존 footer의 중립 색상 체계를 재사용합니다.
 * 메인 전용 고지 영역으로 범위를 제한해 공통 footer 및 서브 화면에는 영향을 주지 않습니다.
 */
.main-product-notice {
	padding: 50px 0;
	border-bottom: 1px solid #e8e8e8;
	background: #f9f9f9;
	color: #555;
}

.main-product-notice-head {
	margin-bottom: 24px;
}

.main-product-notice-head .title {
	font-size: var(--font-size-20);
	font-weight: 700;
	color: #222;
}

.main-product-notice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.main-product-notice-group,
.main-product-notice-caution {
	min-width: 0;
}

.main-product-notice .group-title {
	margin-bottom: 14px;
	font-size: var(--font-size-16);
	font-weight: 600;
	color: #333;
}

.main-product-notice .info-list,
.main-product-notice .notice-list {
	font-size: var(--font-size-14);
	line-height: 1.6;
	color: #777;
}

.main-product-notice .info-row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 12px;
}

.main-product-notice .info-row + .info-row {
	margin-top: 8px;
}

.main-product-notice .info-row dt {
	font-weight: 600;
	color: #555;
}

.main-product-notice .info-row dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: break-word;
	word-break: keep-all;
}

.main-product-notice .notice-list li {
	position: relative;
	padding-left: 12px;
	word-break: keep-all;
}

.main-product-notice .notice-list li::before {
	content: "·";
	position: absolute;
	left: 0;
	top: 0;
}

.main-product-notice .notice-list li + li {
	margin-top: 6px;
}

.main-product-notice-caution {
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid #e3e3e3;
}

.main-product-notice-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin-top: 24px;
	font-size: var(--font-size-13);
	font-weight: 500;
	line-height: 1.5;
	color: #777;
}

@media all and (max-width: 767px) {
	.main-product-notice {
		padding: 35px 0;
	}

	.main-product-notice-head {
		margin-bottom: 20px;
	}

	.main-product-notice-head .title {
		font-size: var(--font-size-18);
	}

	.main-product-notice-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.main-product-notice .group-title {
		margin-bottom: 12px;
		font-size: var(--font-size-15);
	}

	.main-product-notice .info-row {
		grid-template-columns: 105px minmax(0, 1fr);
		gap: 10px;
	}

	.main-product-notice-caution {
		margin-top: 24px;
		padding-top: 20px;
	}

	.main-product-notice-footer {
		flex-direction: column;
		gap: 4px;
		margin-top: 20px;
	}
}
