/* Full-width warranty selector placed above the quantity/add-to-cart row. */
.single-product .dvw-warranty-box {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	clear: both;
	margin: 14px 0 12px;
	padding: 13px;
	border: 1px solid #e1e4e8;
	border-radius: 12px;
	background: #fff;
}

.single-product .dvw-warranty-box legend {
	width: auto;
	max-width: 100%;
	margin: 0 7px;
	padding: 0 7px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
	color: #222;
}

.single-product .dvw-warranty-options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	width: 100%;
}

.single-product .dvw-warranty-option {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	gap: 10px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #d7dbe0;
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.single-product .dvw-warranty-option:hover {
	border-color: #aeb5bd;
}

.single-product .dvw-warranty-option.is-selected,
.single-product .dvw-warranty-option:has(input:checked) {
	border-color: #1f2937;
	box-shadow: 0 0 0 1px #1f2937 inset;
	background: #fafafa;
}

.single-product .dvw-warranty-option input[type="radio"] {
	position: static;
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 0;
	padding: 0;
	flex: 0 0 16px;
}

.single-product .dvw-warranty-option-content {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: baseline;
	min-width: 0;
	gap: 2px 8px;
	line-height: 1.7;
	text-align: right;
}

.single-product .dvw-warranty-option-content strong,
.single-product .dvw-warranty-option-content small {
	display: inline;
	margin: 0;
	padding: 0;
	word-break: normal;
	overflow-wrap: anywhere;
}

.single-product .dvw-warranty-option-content strong {
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
}

.single-product .dvw-warranty-option-content small {
	font-size: 11px;
	font-weight: 400;
	color: #6b7280;
	opacity: 1;
}

/* Fallback: even if JavaScript is delayed and the box is temporarily inside a flex form. */
.single-product form.cart > .dvw-warranty-box {
	flex: 0 0 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	order: -100;
}

@media (max-width: 767px) {
	.single-product .dvw-warranty-box {
		margin: 12px 0 10px;
		padding: 11px;
	}

	.single-product .dvw-warranty-option {
		padding: 9px 10px;
	}

	.single-product .dvw-warranty-option-content {
		display: grid;
		gap: 1px;
	}

	.single-product .dvw-warranty-option-content strong {
		font-size: 13px;
	}

	.single-product .dvw-warranty-option-content small {
		font-size: 11px;
	}
}
