/**
 * PC Precision — card opzioni prodotto (stile Red Gaming).
 */

/* Mai mostrare caselline nella barra header del sito. */
.main-header .pcp-product-extras,
.whb-header .pcp-product-extras,
.whb-main-header .pcp-product-extras,
.bzotech-header .pcp-product-extras,
.header-top .pcp-product-extras,
#header .pcp-product-extras,
.site-header .pcp-product-extras {
	display: none !important;
}

body.single-product .pcp-product-extras,
body.single-product .pcp-product-extras--placed {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	transform: none !important;
	z-index: 1 !important;
	float: none !important;
}

body.single-product .product-info-action .pcp-product-extras,
body.single-product .product-info-cart .pcp-product-extras,
body.single-product .bzotech-form-cart-single .pcp-product-extras {
	margin: 0.75rem 0 1rem !important;
	width: 100%;
	max-width: 100%;
}

body.single-product .pcp-product-extras,
body.product .pcp-product-extras,
body.pcp-has-product-extras .pcp-product-extras,
.pcp-product-extras {
	--pcp-pe-delivery-bg: #e8f8ef;
	--pcp-pe-delivery-text: #1a1a1a;
	--pcp-pe-delivery-accent: var(--pcp-primary, #2563eb);
	--pcp-pe-service-bg: #eef2f7;
	--pcp-pe-service-text: #1a1a1a;
	--pcp-pe-shipping-bg: #fff8e8;
	--pcp-pe-shipping-text: #1a1a1a;
	--pcp-pe-payment-bg: #f3f4f6;
	--pcp-pe-payment-text: #1a1a1a;
	--pcp-pe-custom-bg: #f3f4f6;
	--pcp-pe-custom-text: #1a1a1a;
	--pcp-pe-border: rgba(26, 26, 26, 0.12);
	--pcp-pe-muted: #5c5c5c;
	margin: 1rem 0;
	border: 1px solid var(--pcp-pe-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
}

body.single-product .pcp-product-extras-mount--visible,
body.pcp-has-product-extras .pcp-product-extras-mount--visible {
	display: block;
	max-width: 100%;
	margin: 1rem 0;
}

body.single-product .pcp-product-extras-mount:not(.pcp-product-extras-mount--visible) {
	display: none;
}

body.single-product .pcp-product-extras--placed,
body.pcp-has-product-extras .pcp-product-extras--placed {
	display: block;
	width: 100%;
	clear: both;
}

body.single-product form.cart .pcp-product-extras,
body.product form.cart .pcp-product-extras,
.pcp-product-extras {
	margin-top: 1rem;
	width: 100%;
}

body.single-product .pcp-product-extras__row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
	width: 100%;
	padding: 0.95rem 1rem;
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--pcp-pe-border);
	background: var(--pcp-row-bg, #f3f4f6);
	color: var(--pcp-row-text, inherit);
	text-align: left;
	font: inherit;
	cursor: default;
	position: relative;
	box-sizing: border-box;
	transition: background-color 0.2s ease, filter 0.2s ease;
}

body.single-product .pcp-product-extras__row:last-of-type {
	border-bottom: 0;
}

body.single-product .pcp-product-extras__row--delivery,
body.single-product .pcp-product-extras__row--highlight {
	--pcp-row-bg: var(--pcp-pe-delivery-bg);
	--pcp-row-text: var(--pcp-pe-delivery-text);
}

body.single-product .pcp-product-extras__row--highlight {
	--pcp-row-bg: var(--pcp-pe-delivery-accent);
	--pcp-row-text: #ffffff;
}

body.single-product .pcp-product-extras__row--service {
	--pcp-row-bg: var(--pcp-pe-service-bg);
	--pcp-row-text: var(--pcp-pe-service-text);
}

body.single-product .pcp-product-extras__row--shipping {
	--pcp-row-bg: var(--pcp-pe-shipping-bg);
	--pcp-row-text: var(--pcp-pe-shipping-text);
}

body.single-product .pcp-product-extras__row--payment {
	--pcp-row-bg: var(--pcp-pe-payment-bg);
	--pcp-row-text: var(--pcp-pe-payment-text);
}

body.single-product .pcp-product-extras__row--custom-1,
body.single-product .pcp-product-extras__row--custom-2 {
	--pcp-row-bg: var(--pcp-pe-custom-bg);
	--pcp-row-text: var(--pcp-pe-custom-text);
}

body.single-product .pcp-product-extras__row--toggle,
body.single-product .pcp-product-extras__row--expandable {
	cursor: pointer;
}

body.single-product .pcp-product-extras__row--toggle:hover,
body.single-product .pcp-product-extras__row--expandable:hover,
body.single-product .pcp-product-extras__row.is-open {
	filter: brightness(0.98);
}

body.single-product .pcp-product-extras__row--toggle[aria-pressed="true"] {
	box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.45);
}

body.single-product .pcp-product-extras__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: #0f172a;
}

body.single-product .pcp-product-extras__row--delivery .pcp-product-extras__icon,
body.single-product .pcp-product-extras__row--highlight .pcp-product-extras__icon {
	color: var(--pcp-pe-delivery-accent);
}

body.single-product .pcp-product-extras__row--service .pcp-product-extras__icon {
	color: var(--pcp-pe-service-text);
}

body.single-product .pcp-product-extras__row--shipping .pcp-product-extras__icon {
	color: var(--pcp-pe-shipping-text);
}

body.single-product .pcp-product-extras__row--payment .pcp-product-extras__icon {
	color: var(--pcp-pe-delivery-accent);
}

body.single-product .pcp-product-extras__icon::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	background-color: currentColor;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}

body.single-product .pcp-product-extras__icon--truck::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M3 6h11v9H3V6zm12 2h2.3l2.7 3v4h-5V8zM3 17a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M3 6h11v9H3V6zm12 2h2.3l2.7 3v4h-5V8zM3 17a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0z'/%3E%3C/svg%3E");
}

body.single-product .pcp-product-extras__icon--shield::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3z'/%3E%3C/svg%3E");
}

body.single-product .pcp-product-extras__icon--shipping::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v1H2V6a2 2 0 0 1 2-2zm18 6H2v8h2a3 3 0 0 0 6 0h4a3 3 0 0 0 6 0h2v-8zM8 19a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm10 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v1H2V6a2 2 0 0 1 2-2zm18 6H2v8h2a3 3 0 0 0 6 0h4a3 3 0 0 0 6 0h2v-8zM8 19a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm10 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
}

body.single-product .pcp-product-extras__icon--card::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 4v2h16V8H4zm2 8h6v-2H6v2z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 4v2h16V8H4zm2 8h6v-2H6v2z'/%3E%3C/svg%3E");
}

body.single-product .pcp-product-extras__icon--info::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

body.single-product .pcp-product-extras__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

body.single-product .pcp-product-extras__title {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--pcp-row-text, #0f172a);
	line-height: 1.35;
}

body.single-product .pcp-product-extras__subtitle {
	display: block;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--pcp-pe-muted);
}

body.single-product .pcp-product-extras__subtitle .woocommerce-Price-amount {
	font-weight: 700;
	color: var(--pcp-row-text, #0f172a);
}

body.single-product .pcp-product-extras__actions {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

body.single-product .pcp-product-extras__info-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: #334155;
	font-size: 0.72rem;
	font-weight: 700;
	font-style: italic;
	line-height: 1;
	cursor: pointer;
}

body.single-product .pcp-product-extras__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
}

body.single-product .pcp-product-extras__chevron::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	border-right: 2px solid #64748b;
	border-bottom: 2px solid #64748b;
	transform: rotate(-45deg);
	margin-top: -2px;
	transition: transform 0.2s ease;
}

body.single-product .pcp-product-extras__row.is-open .pcp-product-extras__chevron::before {
	transform: rotate(45deg);
	margin-top: 2px;
}

body.single-product .pcp-product-extras__info-panel {
	padding: 0.2rem 1rem 1rem 4.35rem;
	background: #fff;
	border-bottom: 1px solid var(--pcp-pe-border);
}

body.single-product .pcp-product-extras__info-panel-inner {
	font-size: 0.82rem;
	line-height: 1.55;
	color: #334155;
}

body.single-product .pcp-product-extras__info-panel-inner p {
	margin: 0 0 0.5rem;
}

body.single-product .pcp-product-extras__info-panel-inner p:last-child {
	margin-bottom: 0;
}

body.single-product .pcp-product-extras__info-close {
	margin-top: 0.55rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid rgba(15, 23, 42, 0.15);
	border-radius: 999px;
	background: #fff;
	color: #0f172a;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
}

body.single-product .pcp-product-installments {
	margin: 0.5rem 0 0.75rem;
	display: grid;
	gap: 0.55rem;
}

body.single-product .pcp-product-installments:empty {
	display: none;
}

body.single-product .summary > .wd-product-info.wd-est-del {
	display: none !important;
}

@media (max-width: 767px) {
	body.single-product .pcp-product-extras__row {
		grid-template-columns: 38px minmax(0, 1fr) auto;
		padding: 0.85rem 0.9rem;
	}

	body.single-product .pcp-product-extras__icon {
		width: 36px;
		height: 36px;
	}

	body.single-product .pcp-product-extras__title {
		font-size: 0.88rem;
	}

	body.single-product .pcp-product-extras__info-panel {
		padding-left: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product .pcp-product-extras__row,
	body.single-product .pcp-product-extras__chevron::before {
		transition: none;
	}
}
