/**
 * Upsell personalizacji — mockup screen-product.jsx
 */

.pi-upsells {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 24px 0 8px;
	width: 100%;
}

.pi-upsell-box {
	padding: 18px;
	border: 1px solid var(--pi-line);
	background: transparent;
	transition: border-color 0.25s var(--pi-ease), background 0.25s var(--pi-ease);
}

.pi-upsell-box.is-active {
	border-color: var(--pi-gold);
	background: var(--pi-gold-glaze);
}

.pi-upsell-box__toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	margin: 0;
}

.pi-upsell-box__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pi-upsell-box__check {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 1px solid var(--pi-ink);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s var(--pi-ease);
}

.pi-upsell-box.is-active .pi-upsell-box__check {
	background: var(--pi-ink);
}

.pi-upsell-box.is-active .pi-upsell-box__check::after {
	content: "";
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--pi-bg);
	border-bottom: 2px solid var(--pi-bg);
	transform: rotate(-45deg) translateY(-1px);
}

.pi-upsell-box__content {
	flex: 1;
	min-width: 0;
}

.pi-upsell-box__content--pack {
	display: flex;
	gap: 14px;
	align-items: center;
}

.pi-upsell-box__thumb {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	overflow: hidden;
	background: var(--pi-bg-warm);
}

.pi-upsell-box__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pi-upsell-box__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.pi-upsell-box__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--pi-ink);
}

.pi-upsell-box__price {
	font-size: 14px;
	font-weight: 600;
	color: var(--pi-gold-deep);
	white-space: nowrap;
}

.pi-upsell-box__help {
	display: block;
	margin-top: 4px;
}

.pi-upsell-box__body {
	margin-top: 14px;
	padding-left: 30px;
}

.pi-upsell-box__body[hidden] {
	display: none !important;
}

.pi-upsell-box__text {
	width: 100%;
	background: var(--pi-paper);
}

.pi-upsell-box__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
	font-size: 12px;
	color: var(--pi-muted);
}

.pi-upsell-box__fonts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin-top: 8px;
}

.pi-upsell-box__font input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pi-upsell-box__font-label {
	display: block;
	padding: 10px 6px;
	border: 1px solid var(--pi-line);
	background: var(--pi-paper);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s var(--pi-ease);
}

.pi-upsell-box__font.is-active .pi-upsell-box__font-label,
.pi-upsell-box__font-label:hover {
	border-color: var(--pi-ink);
}

.pi-upsell-box__font-label--serif {
	font-family: var(--pi-serif);
	font-size: 13px;
}

.pi-upsell-box__font-label--script {
	font-family: var(--pi-script);
	font-size: 18px;
}

.pi-upsell-box__font-label--sans {
	font-family: var(--pi-sans);
	font-size: 13px;
}

.pi-upsell-box__preview {
	margin-top: 12px;
	padding: 16px;
	background: var(--pi-paper);
	border: 1px dashed var(--pi-gold);
	text-align: center;
}

.pi-upsell-box__preview-text {
	margin: 6px 0 0;
	color: var(--pi-gold-deep);
}

.pi-upsell-box__preview-text--serif {
	font-family: var(--pi-serif);
	font-size: 20px;
}

.pi-upsell-box__preview-text--script {
	font-family: var(--pi-script);
	font-size: 30px;
	line-height: 1.1;
}

.pi-upsell-box__preview-text--sans {
	font-family: var(--pi-sans);
	font-size: 18px;
}
