/**
 * Car Showcase for Elementor v2 - Full Details Modal Styles
 */

.cse2-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.cse2-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%) scale(0.96);
	width: 90%;
	max-width: 760px;
	max-height: 88vh;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	box-sizing: border-box;
}

/* Open State */
.cse2-modal-open .cse2-modal-backdrop {
	opacity: 1;
	visibility: visible;
}

.cse2-modal-open .cse2-modal {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

body.cse2-body-modal-locked {
	overflow: hidden !important;
}

/* Modal Header */
.cse2-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	background: #ffffff;
}

.cse2-modal-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cse2-modal-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 3px 10px;
	border-radius: 20px;
	background: #f1f5f9;
	color: #334155;
	width: fit-content;
}

.cse2-modal-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
}

.cse2-modal-close-btn {
	background: #f1f5f9;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	flex-shrink: 0;
	font-size: 22px;
	line-height: 1;
	padding: 0;
}

.cse2-modal-close-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Modal Body */
.cse2-modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Modal Image Banner */
.cse2-modal-banner {
	width: 100%;
	max-height: 320px;
	border-radius: 12px;
	overflow: hidden;
	background: #f8fafc;
}

.cse2-modal-banner img {
	width: 100%;
	height: 100%;
	max-height: 320px;
	object-fit: cover;
	display: block;
}

/* Full Details Content */
.cse2-modal-details-content {
	font-size: 15px;
	line-height: 1.85;
	color: #334155;
	white-space: pre-line;
	word-break: break-word;
}

.cse2-modal-details-content p {
	margin: 0 0 1em 0;
}

/* Modal Footer */
.cse2-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #f1f5f9;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.cse2-modal-btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #1753c5;
	color: #ffffff !important;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
	box-shadow: 0 4px 14px rgba(23, 83, 197, 0.3);
}

.cse2-modal-btn-cta:hover {
	background: #0f3d99;
	transform: translateY(-1px);
	color: #ffffff !important;
}

@media (max-width: 640px) {
	.cse2-modal {
		width: 95%;
		max-height: 92vh;
		border-radius: 16px;
	}

	.cse2-modal-header {
		padding: 16px 18px;
	}

	.cse2-modal-title {
		font-size: 18px;
	}

	.cse2-modal-body {
		padding: 18px;
		gap: 16px;
	}

	.cse2-modal-footer {
		padding: 14px 18px;
		flex-direction: column;
	}

	.cse2-modal-btn-cta {
		width: 100%;
		text-align: center;
	}
}
