/* Arte en Flor - Ventas Cruzadas (Modal)
   Colores de marca: verde oscuro #1e3d1a, verde #2d5a27, dorado #b8922a, crema #faf7f2 */

.aef-csm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(26, 26, 26, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	padding: 16px;
}

.aef-csm-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

body.aef-csm-no-scroll {
	overflow: hidden;
}

.aef-csm-modal {
	background: #faf7f2;
	border-radius: 16px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
	position: relative;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	transform: translateY(12px);
	transition: transform 0.25s ease;
	font-family: 'DM Sans', sans-serif;
}

.aef-csm-overlay.is-visible .aef-csm-modal {
	transform: translateY(0);
}

.aef-csm-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	color: #5a5a5a;
	cursor: pointer;
}

.aef-csm-close:hover {
	color: #1e3d1a;
}

.aef-csm-added {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.aef-csm-added img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #e2d9cf;
	flex-shrink: 0;
}

.aef-csm-added h3 {
	font-family: 'Playfair Display', serif;
	font-weight: 400;
	color: #2d5a27;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 4px;
}

.aef-csm-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #d4ead0;
	color: #1e3d1a;
	font-size: 0.75rem;
}

.aef-csm-added p {
	margin: 0;
	color: #1a1a1a;
	font-size: 0.92rem;
}

.aef-csm-cross-sells-wrap h4 {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #b8922a;
	font-weight: 600;
	margin: 0 0 12px;
}

.aef-csm-cross-sells {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 22px;
}

.aef-csm-item {
	background: #fff;
	border: 1px solid #e2d9cf;
	border-radius: 10px;
	padding: 8px;
	text-align: center;
}

.aef-csm-item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 6px;
	display: block;
}

.aef-csm-item-name {
	font-size: 0.74rem;
	color: #1a1a1a;
	margin: 0 0 2px;
	line-height: 1.3;
	min-height: 2.4em;
}

.aef-csm-item-price {
	font-size: 0.76rem;
	font-weight: 600;
	color: #2d5a27;
	margin: 0 0 6px;
}

.aef-csm-item-add {
	width: 100%;
	padding: 6px;
	font-size: 0.7rem;
	font-weight: 600;
	border-radius: 8px;
	border: 1.5px solid #2d5a27;
	background: #fff;
	color: #2d5a27;
	cursor: pointer;
	transition: all 0.15s;
	font-family: 'DM Sans', sans-serif;
}

.aef-csm-item-add:hover {
	background: #2d5a27;
	color: #fff;
}

.aef-csm-item-add:disabled {
	opacity: 0.6;
	cursor: default;
}

.aef-csm-actions {
	display: flex;
	gap: 10px;
}

.aef-csm-btn {
	flex: 1;
	text-align: center;
	padding: 12px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
	border: none;
	font-family: 'DM Sans', sans-serif;
}

.aef-csm-btn-ghost {
	background: none;
	border: 1.5px solid #e2d9cf;
	color: #5a5a5a;
}

.aef-csm-btn-ghost:hover {
	border-color: #2d5a27;
	color: #2d5a27;
}

.aef-csm-btn-solid {
	background: #b8922a;
	color: #fff;
}

.aef-csm-btn-solid:hover {
	background: #a07820;
	color: #fff;
}

@media (max-width: 480px) {
	.aef-csm-modal {
		padding: 20px;
	}
}
