/**
 * Carlo Rino Product Info Popup — Figma "Product Description 1" (node 752:5313)
 *
 * Right-sliding panel with accordion sections. Pattern matches wishlist-popup.
 */

/* ── Overlay ────────────────────────────────────────────── */

.cr-product-info-popup {
	display: block !important;
	position: fixed !important;
	inset: 0 !important;
	z-index: 999998 !important;
	visibility: hidden !important;
	opacity: 0 !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.cr-product-info-popup--open {
	visibility: visible !important;
	opacity: 1 !important;
}

.cr-product-info-popup__overlay {
	position: absolute !important;
	inset: 0 !important;
	background: rgba(0, 0, 0, 0.4) !important;
	cursor: pointer !important;
}

/* ── Panel ────────────────────────────────────────────── */

.cr-product-info-popup__panel {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 39rem !important;
	max-width: 100vw !important;
	background: var(--cr-white, #fff) !important;
	border-radius: 0.25rem 0 0 0.25rem !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	box-shadow: -0.25rem 0 1.5rem rgba(0, 0, 0, 0.1) !important;
	transform: translateX(100%) !important;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cr-product-info-popup--open .cr-product-info-popup__panel {
	transform: translateX(0) !important;
}

/* ── Header ───────────────────────────────────────────── */

.cr-product-info-popup__header {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 1.25rem !important;
	padding: 1.25rem 1.25rem 1.25rem 4rem !important;
	position: relative !important;
	z-index: 2 !important;
	flex-shrink: 0 !important;
	backdrop-filter: blur(0.312rem) !important;
	-webkit-backdrop-filter: blur(0.312rem) !important;
	background: rgba(255, 255, 255, 0.8) !important;
	border-bottom: 0.062rem solid var(--cr-border, #e7e7e7) !important;
}

.cr-product-info-popup__title {
	flex: 1 !important;
	margin: 0 !important;
	font-family: var(--cr-font-heading, 'Lora', Georgia, serif) !important;
	font-weight: 400 !important;
	font-size: 1.5rem !important;
	line-height: 1.32 !important;
	color: var(--cr-black, #333) !important;
	text-align: center !important;
}

.cr-product-info-popup__close {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 1.5rem !important;
	height: 1.5rem !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	cursor: pointer !important;
	color: var(--cr-black, #333) !important;
	flex-shrink: 0 !important;
	position: absolute !important;
	right: 1.25rem !important;
	top: 1.25rem !important;
}

.cr-product-info-popup__close .cr-icon {
	display: block !important;
	width: 1.5rem !important;
	height: 1.5rem !important;
}

/* ── Body ─────────────────────────────────────────────── */

.cr-product-info-popup__body {
	flex: 1 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	padding: 6rem 1.5rem 1.25rem !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	-webkit-overflow-scrolling: touch !important;
}

/* ── Accordion ────────────────────────────────────────── */

.cr-product-info-popup__accordion {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
}

.cr-product-info-popup__item {
	border-bottom: 0.062rem solid var(--cr-border, #e7e7e7) !important;
}

.cr-product-info-popup__trigger {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 0.5rem !important;
	width: 100% !important;
	padding: 0.75rem 0 !important;
	border: none !important;
	background: none !important;
	cursor: pointer !important;
	font-family: var(--cr-font-body, 'Quicksand', 'Segoe UI', sans-serif) !important;
	font-weight: 400 !important;
	font-size: 1rem !important;
	line-height: 1.52 !important;
	color: var(--cr-black, #333) !important;
	text-align: left !important;
	box-shadow: none !important;
}

.cr-product-info-popup__trigger:hover {
	color: var(--cr-pink, #e81f76) !important;
}

.cr-product-info-popup__trigger-label {
	flex: 1 1 auto !important;
	word-break: break-word !important;
}

.cr-product-info-popup__trigger-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	width: 1.5rem !important;
	height: 1.5rem !important;
}

.cr-product-info-popup__trigger-icon svg {
	display: block !important;
	width: 1.5rem !important;
	height: 1.5rem !important;
}

.cr-product-info-popup__trigger-icon--up {
	display: none !important;
}

.cr-product-info-popup__item.is-expanded .cr-product-info-popup__trigger-icon--down {
	display: none !important;
}

.cr-product-info-popup__item.is-expanded .cr-product-info-popup__trigger-icon--up {
	display: flex !important;
}

.cr-product-info-popup__content[hidden] {
	display: none !important;
}

.cr-product-info-popup__content-inner {
	padding: 0.75rem 0 0.75rem 1rem !important;
	font-family: var(--cr-font-body, 'Quicksand', 'Segoe UI', sans-serif) !important;
	font-weight: 400 !important;
	font-size: 1rem !important;
	line-height: 1.52 !important;
	color: var(--cr-black, #333) !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 1.25rem !important;
}

.cr-product-info-popup__content-inner p {
	margin: 0 !important;
}

.cr-product-info-popup__attributes {
	width: 100% !important;
	border-collapse: collapse !important;
	border: none !important;
}

.cr-product-info-popup__attributes th,
.cr-product-info-popup__attributes td {
	padding: 0.5rem 0.5rem 0.5rem 0 !important;
	text-align: left !important;
	font-size: 0.875rem !important;
	line-height: 1.4 !important;
	border: none !important;
	border-bottom: 0.062rem solid var(--cr-border, #e7e7e7) !important;
	vertical-align: top !important;
}

.cr-product-info-popup__attributes tr:last-child th,
.cr-product-info-popup__attributes tr:last-child td {
	border-bottom: none !important;
}

.cr-product-info-popup__attributes th {
	font-weight: 500 !important;
	color: var(--cr-grey, #888) !important;
	white-space: nowrap !important;
	width: 9rem !important;
	padding-right: 0.75rem !important;
}

.cr-product-info-popup__attributes td {
	color: var(--cr-black, #333) !important;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 576px) {
	.cr-product-info-popup__panel {
		width: 100vw !important;
		border-radius: 0 !important;
	}

	.cr-product-info-popup__header {
		padding-left: 3rem !important;
	}

	.cr-product-info-popup__body {
		padding: 5.5rem 1rem 1.25rem !important;
	}
}
