.btp-pack-page #glozin-sticky-add-to-cart {
	display: none !important;
}

/* ── Anteprima confezione (colonna galleria) ── */
.btp-pack-preview {
	--btp-border: #e8e8e8;
	--btp-text: #111111;
	--btp-muted: #6b6b6b;
	--btp-bg: #f6f6f6;
	--btp-accent: #1f4d3a;
	--btp-accent-soft: #e8f2ec;
	--btp-drift-pane-size: 340px;
	position: relative;
	width: 100%;
	flex: 1 1 0;
	min-width: 0;
}

.btp-pack-page .btp-pack-preview .glozin-button--product-lightbox {
	display: none !important;
}

.btp-pack-preview__inner {
	position: relative;
	padding: 1.5rem;
	border: 1px solid var(--btp-border);
	border-radius: 15px;
	background: var(--btp-bg);
	box-shadow: 0 18px 50px rgba(17, 17, 17, 0.06);
	overflow: hidden;
	isolation: isolate;
	transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.btp-pack-preview__inner::before,
.btp-pack-preview__inner::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.btp-pack-preview__inner::before {
	z-index: 0;
	background-image: var(--btp-hero-image);
	background-size: cover;
	background-position: center;
	opacity: 0.34;
	transform: scale(1.04);
	transition:
		opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
		transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btp-pack-preview.has-items:not(.is-complete) .btp-pack-preview__inner::before {
	opacity: 0.5;
}

.btp-pack-preview__inner::after {
	z-index: 1;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.8) 100%);
	opacity: 1;
	transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.btp-pack-preview.has-items:not(.is-complete) .btp-pack-preview__inner::after {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.68) 100%);
}

.btp-pack-preview.is-complete .btp-pack-preview__inner::before {
	opacity: 1;
	transform: scale(1);
}

.btp-pack-preview.is-complete .btp-pack-preview__inner::after {
	opacity: 0;
}

.btp-pack-preview.is-complete .btp-pack-preview__inner {
	border-color: #c9dfd2;
	box-shadow: 0 20px 55px rgba(31, 77, 58, 0.12);
}

.btp-pack-preview.is-complete .btp-preview-slot {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.btp-pack-preview.is-complete .btp-preview-slot.is-filled {
	background: rgba(255, 255, 255, 0.94);
}

.btp-pack-preview.is-complete .btp-pack-preview__progress {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
	.btp-pack-preview__inner,
	.btp-pack-preview__inner::before,
	.btp-pack-preview__inner::after {
		transition-duration: 0.01ms;
	}
}

.btp-pack-preview__header,
.btp-pack-preview__grid,
.btp-pack-preview__hint,
.btp-pack-preview__footer {
	position: relative;
	z-index: 2;
}

.btp-pack-preview__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.btp-pack-preview__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--btp-accent);
}

.btp-pack-preview__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--btp-text);
}

.btp-pack-preview__progress {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4.5rem;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--btp-border);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--btp-text);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btp-pack-preview__progress.is-complete {
	background: var(--btp-accent-soft);
	border-color: #c9dfd2;
	color: var(--btp-accent);
}

.btp-pack-preview__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.875rem;
}

.btp-preview-slot {
	position: relative;
	min-height: 15rem;
	padding: 0.55rem;
	border: 1.5px dashed #d7d7d7;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.82);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btp-preview-slot.is-filled {
	border-style: solid;
	border-color: #cfded5;
	background: #fff;
	box-shadow: 0 10px 24px rgba(31, 77, 58, 0.08);
}

.btp-preview-slot__badge {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 999px;
	background: var(--btp-text);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
}

.btp-preview-slot.is-filled .btp-preview-slot__badge {
	background: var(--btp-accent);
}

.btp-preview-slot__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 13rem;
	padding-top: 1.2rem;
	text-align: center;
}

.btp-preview-slot__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 0.75rem;
	border-radius: 999px;
	background: #f1f1f1;
	color: #9a9a9a;
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
}

.btp-preview-slot__media {
	position: relative;
	display: block;
	width: 96%;
	max-width: 100%;
	height: 11.5rem;
	margin: 0 auto 0.4rem;
	border-radius: var(--gz-image-rounded, 10px);
	overflow: hidden;
}

.btp-preview-slot__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin-bottom: 0;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
	transform-origin: center center;
}

.btp-pack-preview--has-zoom .btp-pack-preview__inner {
	overflow: visible;
}

.btp-pack-preview--has-zoom .btp-pack-preview__grid {
	overflow: visible;
}

@media (min-width: 1025px) and (pointer: fine) {
	.btp-preview-slot.is-filled .btp-preview-slot__media {
		cursor: zoom-in;
	}

	.btp-preview-slot.is-filled .btp-preview-slot__media .btp-preview-slot__image {
		transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.btp-preview-slot.is-filled .btp-preview-slot__media:hover .btp-preview-slot__image {
		transform: scale(1.45);
	}

	.btp-preview-slot.is-filled .btp-preview-slot__media.is-drift-zoom:hover .btp-preview-slot__image {
		transform: none;
	}

	.btp-preview-slot.is-filled {
		overflow: visible;
	}

	.btp-preview-slot.is-filled:hover {
		z-index: 5;
	}

	.btp-pack-page .btp-zoom-pane.btp-drift-inline,
	.btp-pack-page .btp-zoom-pane.drift-inline {
		width: var(--btp-drift-pane-size, 340px) !important;
		height: var(--btp-drift-pane-size, 340px) !important;
		border-radius: calc(var(--btp-drift-pane-size, 340px) / 2) !important;
		box-shadow: 0 12px 36px rgba(17, 17, 17, 0.24);
		border: 2px solid rgba(255, 255, 255, 0.95);
		z-index: 9999 !important;
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btp-preview-slot__media .btp-preview-slot__image {
		transition: none !important;
	}

	.btp-preview-slot.is-filled .btp-preview-slot__media:hover .btp-preview-slot__image {
		transform: none;
	}
}

.btp-preview-slot__label {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--btp-text);
	padding: 0 0.35rem;
}

.btp-preview-slot__label--empty {
	color: var(--btp-muted);
	font-weight: 500;
}

.btp-preview-slot__actions {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	display: flex;
	gap: 0.25rem;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.btp-preview-slot.is-filled:hover .btp-preview-slot__actions,
.btp-preview-slot.is-filled:focus-within .btp-preview-slot__actions {
	opacity: 1;
}

.btp-preview-slot__btn {
	border: 1px solid var(--btp-border);
	background: #fff;
	color: var(--btp-text);
	border-radius: 8px;
	width: 1.85rem;
	height: 1.85rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 0.85rem;
	line-height: 1;
}

.btp-preview-slot__btn:hover {
	border-color: var(--btp-accent);
	color: var(--btp-accent);
}

.btp-pack-preview__hint {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	color: var(--btp-muted);
	text-align: center;
}

.btp-pack-preview__footer {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--btp-border);
}

.btp-pack-preview__status {
	font-size: 0.92rem;
	color: var(--btp-muted);
	margin-bottom: 0.75rem;
	line-height: 1.45;
}

.btp-pack-preview__status.is-ready {
	color: var(--btp-accent);
	font-weight: 600;
}

.btp-pack-preview__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: 1rem;
}

.btp-pack-preview__total strong {
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--btp-text);
}

/* ── Configuratore (colonna summary) ── */
.btp-pack-config {
	margin-top: 0.25rem;
}

.btp-pack-config__choices-head {
	margin-bottom: 1rem;
}

.btp-pack-config__heading {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--btp-text, #111);
}

.btp-pack-config__subheading {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--btp-muted, #666);
}

.btp-pack-config__choices-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.btp-choice-card {
	position: relative;
	display: grid;
	grid-template-columns: 4.25rem 1fr auto;
	align-items: center;
	gap: 0.85rem;
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ebebeb;
	border-radius: 12px;
	background: #fff;
	color: #111;
	cursor: pointer;
	text-align: left;
	--gz-button-bg-color-hover: #f4faf7;
	--gz-button-color-hover: #111111;
	--gz-button-border-color-hover: #1f4d3a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btp-pack-config .btp-choice-card:hover:not(:disabled),
.btp-pack-config .btp-choice-card:focus-visible {
	background-color: #f4faf7 !important;
	color: #111 !important;
	border-color: #1f4d3a !important;
	box-shadow: 0 10px 24px rgba(31, 77, 58, 0.1);
	outline: none;
}

.btp-pack-config .btp-choice-card:hover:not(:disabled)::after,
.btp-pack-config .btp-choice-card:focus-visible::after {
	content: none !important;
	display: none !important;
}

.btp-pack-config .btp-choice-card:hover:not(:disabled) .btp-choice-card__label,
.btp-pack-config .btp-choice-card:focus-visible .btp-choice-card__label {
	color: #111;
}

.btp-pack-config .btp-choice-card:hover:not(:disabled) .btp-choice-card__meta,
.btp-pack-config .btp-choice-card:focus-visible .btp-choice-card__meta,
.btp-pack-config .btp-choice-card:hover:not(:disabled) .btp-choice-card__price,
.btp-pack-config .btp-choice-card:focus-visible .btp-choice-card__price,
.btp-pack-config .btp-choice-card:hover:not(:disabled) .btp-choice-card__price .woocommerce-Price-amount,
.btp-pack-config .btp-choice-card:focus-visible .btp-choice-card__price .woocommerce-Price-amount,
.btp-pack-config .btp-choice-card:hover:not(:disabled) .btp-choice-card__price bdi,
.btp-pack-config .btp-choice-card:focus-visible .btp-choice-card__price bdi {
	color: #444 !important;
}

.btp-pack-config .btp-choice-card:hover:not(:disabled) .btp-choice-card__format,
.btp-pack-config .btp-choice-card:focus-visible .btp-choice-card__format {
	background: #e8f2ec;
	color: #1f4d3a;
}

.btp-pack-config .btp-choice-card:hover:not(:disabled) .btp-choice-card__add,
.btp-pack-config .btp-choice-card:focus-visible .btp-choice-card__add {
	background: #1f4d3a;
	color: #fff;
}

.btp-choice-card.is-picked {
	transform: scale(0.985);
	border-color: #1f4d3a;
}

.btp-choice-card.is-shake {
	animation: btp-shake 0.45s ease;
}

.btp-choice-card:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.btp-choice-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 10px;
	background: #f7f7f7;
	overflow: hidden;
}

.btp-choice-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.btp-choice-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.btp-choice-card__label {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	color: #111;
}

.btp-choice-card__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: #666;
}

.btp-choice-card__format {
	display: inline-flex;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: #f2f2f2;
	font-weight: 600;
}

.btp-choice-card__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1;
}

.btp-pack-form {
	margin-top: 1.25rem;
	margin-bottom: 1.5rem;
}

.btp-pack-page .entry-summary .glozin-product-extra-link {
	margin-top: 0;
	padding-top: 0.25rem;
}

.btp-pack__submit {
	width: 100%;
	min-height: 3.25rem;
	font-size: 1rem;
	font-weight: 600;
}

.btp-pack__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@keyframes btp-shake {
	0%,
	100% { transform: translateX(0); }
	20% { transform: translateX(-4px); }
	40% { transform: translateX(4px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(3px); }
}

@media (min-width: 768px) {
	.btp-pack-preview {
		top: 50px;
	}

	.btp-pack-preview__inner {
		padding: 1.75rem;
	}

	.btp-preview-slot {
		min-height: 12.5rem;
	}
}

@media (max-width: 767px) {
	.btp-pack-page .product-gallery-summary {
		gap: 1.25rem !important;
	}

	.btp-pack-preview__inner {
		padding: 1.1rem;
	}

	.btp-preview-slot {
		min-height: 12.5rem;
	}

	.btp-preview-slot__media {
		height: 8.75rem;
		width: 96%;
	}

	.btp-preview-slot__image {
		max-height: 100%;
	}

	.btp-preview-slot__actions {
		opacity: 1;
	}
}
