/* Narges Category Warranty - frontend */
.ncw-warranty {
	--ncw-gold: #b8860b;
	--ncw-gold-light: #fff4cc;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	color: #5e4300;
	border: 1px solid #d5a51e;
	background: linear-gradient(135deg, #fff8df 0%, #f5d978 48%, #fff1bd 100%);
	box-shadow: 0 2px 8px rgba(184, 134, 11, .22), inset 0 1px 0 rgba(255,255,255,.85);
	border-radius: 9px;
	line-height: 1.7;
	direction: rtl;
	text-align: right;
	font-size: 14px;
	font-weight: 700;
	text-shadow: 0 1px 0 rgba(255,255,255,.55);
	overflow-wrap: anywhere;
}
.ncw-warranty *, .ncw-warranty *::before, .ncw-warranty *::after { box-sizing: border-box; }
.ncw-warranty--single { margin: 14px 0; padding: 10px 13px; }
.ncw-warranty--compact {
	margin: 0;
	padding: 6px 9px;
	gap: 6px;
	border-radius: 13px 0 13px 0;
	font-size: 12px;
	line-height: 1.5;
	white-space: nowrap;
	max-width: none;
	flex-shrink: 0;
}
.ncw-warranty__icon {
	display: inline-flex;
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	align-items: center;
	justify-content: center;
	color: var(--ncw-gold);
}
.ncw-warranty--compact .ncw-warranty__icon { flex-basis: 16px; width: 16px; height: 16px; }
.ncw-warranty__icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ncw-warranty__text { min-width: 0; white-space: nowrap; }

/* Prevent a flash in the original hook position while the badge is moved into the controls. */
.product-info .product-price-buttons > .ncw-warranty--compact { display: none; }
.product-buttons .ncw-warranty--compact {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
	padding: 4px 6px;
	gap: 4px;
	font-size: 10px;
	line-height: 1.35;
	white-space: nowrap;
}
.product-buttons .ncw-warranty--compact .ncw-warranty__icon { flex-basis: 13px; width: 13px; height: 13px; }
.product-buttons .cart-button { flex: 1 1 auto; min-width: 0; }
.product-buttons .cart-button .add_to_cart_button { max-width: 100%; }

/* Keep the single-product price and warranty together from their first visible frame. */
.summary > .ncw-warranty--single { display: none; }
.ncw-price-warranty-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px 12px;
	direction: rtl;
	margin: 0 0 12px;
}
.ncw-price-warranty-row > .price { margin: 0 !important; }
.ncw-price-warranty-row > .ncw-warranty--single {
	display: inline-flex;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 6px 9px;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
}
.product-wrapper.ncw-warranty-hover .product-buttons .ncw-warranty--compact {
	opacity: 0;
	visibility: hidden;
	transform: translateY(5px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.product-wrapper.ncw-warranty-hover:hover .product-buttons .ncw-warranty--compact,
.product-wrapper.ncw-warranty-hover:focus-within .product-buttons .ncw-warranty--compact {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
@media (max-width: 767px) {
	.ncw-warranty--single { width: auto; margin: 0; }
	.ncw-price-warranty-row { gap: 6px 8px; margin-bottom: 10px; }
	.ncw-price-warranty-row > .ncw-warranty--single { font-size: 11px; padding: 5px 7px; }
	.product-buttons .ncw-warranty--compact { font-size: 9px; padding: 3px 5px; }
	.product-wrapper.ncw-warranty-hover .product-buttons .ncw-warranty--compact { opacity: 1; visibility: visible; transform: none; }
}
