body.pidecositas-qb-open {
	overflow: hidden;
}

.pidecositas-qb[hidden] {
	display: none;
}

.pidecositas-qb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.pidecositas-qb__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 28, 0.55);
}

.pidecositas-qb__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(960px, 100%);
	max-height: min(860px, calc(100vh - 48px));
	overflow: hidden;
	background: #fff;
	color: #111827;
	border-radius: 18px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.pidecositas-qb__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(243, 244, 246, 0.95);
	color: #111827;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.pidecositas-qb__close:hover,
.pidecositas-qb__close:focus-visible {
	background: #e5e7eb;
}

.pidecositas-qb__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 0;
}

.pidecositas-qb__status,
.pidecositas-qb__error {
	margin: 48px 24px;
	text-align: center;
}

.pidecositas-qb__error {
	color: #b42318;
}

.pidecositas-qb__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	min-height: min(560px, calc(100vh - 48px));
	align-items: stretch;
}

.pidecositas-qb__media {
	position: relative;
	min-height: 100%;
	background: #f3f4f6;
}

.pidecositas-qb__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	object-position: center;
}

.pidecositas-qb__info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	padding: 36px 32px 28px;
	min-height: 100%;
}

.pidecositas-qb__copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pidecositas-qb__title {
	margin: 0;
	padding-right: 36px;
	font-size: clamp(1.2rem, 1.8vw, 1.55rem);
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.pidecositas-qb__price {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
}

.pidecositas-qb__price del {
	margin-right: 0.4rem;
	opacity: 0.55;
	font-weight: 500;
	font-size: 0.9em;
}

.pidecositas-qb__price ins {
	text-decoration: none;
	color: #c62828;
}

.pidecositas-qb__price .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pidecositas-qb__desc {
	margin: 4px 0 0;
	color: #4b5563;
	font-size: 0.95rem;
	line-height: 1.45;
}

.pidecositas-qb__footer {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: auto;
	padding-top: 8px;
}

.pidecositas-qb__qty {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.pidecositas-qb__qty-label {
	flex: 1 1 auto;
}

.pidecositas-qb__qty input {
	width: 88px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 1rem;
	text-align: center;
}

.pidecositas-qb__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.pidecositas-qb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	width: 100%;
}

.pidecositas-qb__btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.pidecositas-qb__btn--add {
	background: #0f766e;
	color: #fff;
}

.pidecositas-qb__btn--buy {
	background: #111827;
	color: #fff;
}

.pidecositas-qb__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
	color: #0f766e;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pidecositas-qb__hint {
	margin: 0;
	grid-column: 1 / -1;
	color: #4b5563;
	font-size: 0.92rem;
}

@media (max-width: 720px) {
	.pidecositas-qb {
		align-items: flex-end;
		padding: 0;
	}

	.pidecositas-qb__dialog {
		width: 100%;
		max-height: min(92vh, 100%);
		margin: 0;
		border-radius: 18px 18px 0 0;
	}

	.pidecositas-qb__grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.pidecositas-qb__media {
		max-height: 38vh;
	}

	.pidecositas-qb__media img {
		min-height: 0;
		height: 38vh;
		max-height: 280px;
		object-fit: cover;
	}

	.pidecositas-qb__info {
		gap: 14px;
		padding: 14px 16px 18px;
	}

	.pidecositas-qb__title {
		padding-right: 40px;
		font-size: 1.05rem;
		line-height: 1.25;
	}

	.pidecositas-qb__price {
		font-size: 1.15rem;
	}

	.pidecositas-qb__desc {
		font-size: 0.88rem;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.pidecositas-qb__footer {
		gap: 10px;
		padding-top: 0;
	}

	.pidecositas-qb__qty {
		padding: 8px 10px;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #f9fafb;
	}

	.pidecositas-qb__qty input {
		width: 72px;
		height: 40px;
		background: #fff;
	}

	.pidecositas-qb__actions {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.pidecositas-qb__btn {
		min-height: 44px;
		font-size: 0.84rem;
		padding: 0 10px;
	}

	.pidecositas-qb__close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
		font-size: 24px;
		background: rgba(255, 255, 255, 0.92);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	}

	.pidecositas-qb__more {
		padding-bottom: env(safe-area-inset-bottom, 0);
	}
}

@media (max-width: 420px) {
	.pidecositas-qb__actions {
		grid-template-columns: 1fr;
	}

	.pidecositas-qb__media img {
		height: 32vh;
		max-height: 220px;
	}
}
