/* Vertex Checkout Rápido — popup */
:root { --vxqc-accent: #f5b301; }

html.vxqc-lock, html.vxqc-lock body { overflow: hidden !important; }

.vxqc-overlay {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .78);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	opacity: 0; visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.vxqc-overlay.is-open { opacity: 1; visibility: visible; }

.vxqc-modal {
	position: relative;
	width: 100%; max-width: 560px;
	height: min(92vh, 900px);
	display: flex; flex-direction: column;
	background: #0d0d0d;
	border: 1px solid var(--vxqc-accent);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
	transform: translateY(16px);
	transition: transform .25s ease;
}
.vxqc-overlay.is-open .vxqc-modal { transform: none; }

.vxqc-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 14px 12px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	color: #fff;
}
.vxqc-titles { display: flex; flex-direction: column; line-height: 1.25; }
.vxqc-title { font-size: 17px; font-weight: 700; color: #fff; }
.vxqc-sub { font-size: 12.5px; color: var(--vxqc-accent); margin-top: 2px; }
.vxqc-close {
	flex: none; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .08); color: #fff;
	font-size: 24px; line-height: 36px; cursor: pointer;
}
.vxqc-close:hover, .vxqc-close:focus-visible { background: var(--vxqc-accent); color: #000; outline: none; }

.vxqc-body { position: relative; flex: 1; min-height: 0; }
.vxqc-body iframe {
	display: block; width: 100%; height: 100%; border: 0;
	background: transparent; opacity: 0; transition: opacity .2s ease;
}
.vxqc-overlay.is-ready .vxqc-body iframe { opacity: 1; }

.vxqc-loader {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	color: #ddd; font-size: 14px;
}
.vxqc-overlay.is-ready .vxqc-loader { display: none; }
.vxqc-spin {
	width: 38px; height: 38px; border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .15);
	border-top-color: var(--vxqc-accent);
	animation: vxqc-spin .8s linear infinite;
}
@keyframes vxqc-spin { to { transform: rotate(360deg); } }

.vxqc-msg {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	padding: 24px; text-align: center; background: #0d0d0d; color: #fff;
}
.vxqc-msg[hidden] { display: none; }
.vxqc-msg-ok {
	padding: 10px 22px; border: 0; border-radius: 6px;
	background: var(--vxqc-accent); color: #000; font-weight: 700; cursor: pointer;
}

/* Botón mientras agrega el producto */
.vxqc-loading { opacity: .7; pointer-events: none; cursor: progress; }

/* Móvil: pantalla completa */
@media (max-width: 640px) {
	.vxqc-overlay { padding: 0; }
	.vxqc-modal { max-width: none; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.vxqc-overlay, .vxqc-modal, .vxqc-body iframe { transition: none; }
	.vxqc-spin { animation-duration: 2s; }
}
