/* Saxplayalong Upsell Popups */

body.spu-lock { overflow: hidden; }

.spu-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(17, 17, 17, .55);
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility .22s;
}
.spu-overlay.spu-open { opacity: 1; visibility: visible; }

.spu-popup {
	--spu-accent: #1f2937;
	--spu-on-accent: #ffffff;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	color: #1a1a1a;
	border-radius: 14px;
	padding: 28px 24px 20px;
	text-align: center;
	font-size: 15px;
	line-height: 1.45;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.spu-popup *, .spu-popup *::before, .spu-popup *::after { box-sizing: border-box; }

/* Animaciones */
.spu-anim-fade-in-up .spu-popup { transform: translateY(26px); transition: transform .26s ease; }
.spu-anim-fade-in-up.spu-open .spu-popup { transform: none; }
.spu-anim-none, .spu-anim-none .spu-popup { transition: none; }

.spu-popup .spu-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: .65;
	z-index: 2;
}
.spu-popup .spu-close:hover { opacity: 1; }

.spu-badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--spu-accent);
	color: var(--spu-on-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.spu-popup .spu-title { margin: 0 0 6px; padding: 0; font-size: 22px; line-height: 1.2; color: inherit; }
.spu-popup .spu-subtitle { margin: 0; color: inherit; opacity: .75; }

.spu-popup .spu-items { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.spu-popup .spu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	list-style: none;
}
.spu-thumb { width: 120px; flex: 0 0 auto; }
.spu-thumb img { display: block; width: 100%; height: auto; border-radius: 8px; margin: 0; }
.spu-info { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.spu-name { font-weight: 600; }
.spu-price { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; justify-content: center; }
.spu-price del { opacity: .55; }
.spu-price ins { text-decoration: none; font-weight: 700; }
.spu-chip {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--spu-accent);
	color: var(--spu-on-accent);
	font-size: 12px;
	font-weight: 700;
}

.spu-popup .spu-accept {
	display: inline-block;
	margin: 0;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--spu-accent);
	color: var(--spu-on-accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s ease, opacity .15s ease;
}
.spu-popup .spu-accept:hover { filter: brightness(1.12); }
.spu-popup .spu-accept:disabled { opacity: .7; cursor: default; }
.spu-popup .spu-accept.is-done { filter: none; }

.spu-popup .spu-decline {
	display: inline-block;
	margin: 14px 0 0;
	padding: 6px 10px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
	opacity: .7;
}
.spu-popup .spu-decline:hover { opacity: 1; }

.spu-popup .spu-error { margin: 12px 0 0; color: #b32d2e; font-size: 14px; }
.spu-popup .spu-error[hidden] { display: none; }

/* Estilo colorido: cabecera con el color de acento */
.spu-style-colorful { padding-top: 0; }
.spu-style-colorful .spu-head {
	margin: 0 -24px;
	padding: 30px 24px 20px;
	background: var(--spu-accent);
	color: var(--spu-on-accent);
}
.spu-style-colorful .spu-head .spu-title,
.spu-style-colorful .spu-head .spu-subtitle { color: var(--spu-on-accent); }
.spu-style-colorful .spu-badge { background: var(--spu-on-accent); color: var(--spu-accent); }
.spu-style-colorful .spu-close { color: var(--spu-on-accent); }
.spu-style-colorful .spu-accept { box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }

/* Orientación horizontal */
.spu-orient-horizontal { max-width: 640px; text-align: left; }
.spu-orient-horizontal .spu-item { flex-direction: row; align-items: center; text-align: left; }
.spu-orient-horizontal .spu-thumb { width: 96px; }
.spu-orient-horizontal .spu-info { flex: 1 1 auto; align-items: flex-start; }
.spu-orient-horizontal .spu-price { justify-content: flex-start; }
.spu-orient-horizontal .spu-accept { flex: 0 0 auto; }
.spu-orient-horizontal .spu-decline { display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 520px) {
	.spu-popup { padding: 24px 18px 16px; }
	.spu-style-colorful .spu-head { margin: 0 -18px; padding: 28px 18px 18px; }
	.spu-orient-horizontal .spu-item { flex-direction: column; text-align: center; }
	.spu-orient-horizontal .spu-info { align-items: center; }
	.spu-orient-horizontal .spu-price { justify-content: center; }
	.spu-orient-horizontal { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.spu-overlay, .spu-popup { transition: none !important; transform: none !important; }
}
