/* Estilos de diseño con foto (Mi Tienda - YA QUEDÓ 0.9.7.0). */

.yq-design-picker label.yq-design-option {
	display: flex;
	align-items: center;
	gap: 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.yq-design-picker label.yq-design-option input {
	flex: none;
	margin: 0;
}

.yq-design-picker label.yq-design-option.is-selected {
	border-color: var(--yq-primary);
	box-shadow: 0 0 0 1px var(--yq-primary);
}

.yq-design-thumb {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.yq-design-name {
	flex: 1 1 auto;
	min-width: 0;
}

/* Recuadro con el estilo elegido */

.yq-design-preview {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	margin: 14px 0 4px;
	padding: 14px;
	border: 1px solid var(--yq-border, #e5e7eb);
	border-radius: 14px;
	background: var(--yq-design-option-bg, #fff);
	color: var(--yq-design-option-text, #101828);
	animation: yq-style-in .25s ease;
}

.yq-design-preview[hidden] {
	display: none;
}

.yq-design-preview--text {
	grid-template-columns: minmax(0, 1fr);
}

.yq-design-preview__zoom {
	position: relative;
	display: block;
	width: 140px;
	height: 140px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	background: #f6f7fb;
	cursor: zoom-in;
}

.yq-design-preview__zoom[hidden] {
	display: none;
}

.yq-design-preview__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.yq-design-preview__hint {
	position: absolute;
	right: 6px;
	bottom: 6px;
	left: 6px;
	padding: 3px 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
}

.yq-design-preview__label {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .65;
}

.yq-design-preview__name {
	display: block;
	font-size: 17px;
	line-height: 1.3;
}

.yq-design-preview__text {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.5;
}

.yq-design-preview__text[hidden] {
	display: none;
}

@media (max-width: 480px) {
	.yq-design-preview {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 12px;
		padding: 12px;
	}

	.yq-design-preview__zoom {
		width: 104px;
		height: 104px;
	}

	.yq-design-preview__hint {
		display: none;
	}
}

/* Foto ampliada */

.yq-style-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: rgba(15, 23, 42, .88);
	cursor: zoom-out;
}

.yq-style-lightbox img {
	max-width: min(92vw, 720px);
	max-height: 78vh;
	border-radius: 14px;
	object-fit: contain;
	background: #fff;
}

.yq-style-lightbox p {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.yq-style-lightbox button {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

@keyframes yq-style-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.yq-design-preview {
		animation: none;
	}
}
