/**
 * Gift Wrapper Plus product options.
 *
 * The matching markup lives in
 * woocommerce/wcgwp/v6/product/checkbox.php.
 */

body.single-product .wcgwp-product {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 10px 0 22px;
	padding: 18px;
	border: 1px solid var(--sm-color-line);
	border-radius: 4px;
	background: transparent;
}

body.single-product .wcgwp-product-options {
	display: grid;
	width: 100%;
	gap: 0;
}

body.single-product .wcgwp-product .wcgwp-checkbox-wrapper {
	width: 100%;
	margin: 0;
}

body.single-product .wcgwp-product .sm-wcgwp-heading {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

body.single-product .wcgwp-product .sm-wcgwp-heading__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin-top: 1px;
	color: var(--sm-color-blue);
}

body.single-product .wcgwp-product .sm-wcgwp-heading__svg {
	width: 16px;
	height: 16px;
}

body.single-product .wcgwp-product .sm-wcgwp-heading__copy {
	display: grid;
	gap: 1px;
	min-width: 0;
}

body.single-product .wcgwp-product .sm-wcgwp-heading__copy strong {
	color: var(--sm-color-navy);
	font-family: var(--sm-font-heading, "Barlow Condensed", sans-serif);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.035em;
	line-height: 1.15;
}

body.single-product .wcgwp-product .sm-wcgwp-heading__copy small {
	color: var(--sm-color-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

body.single-product .wcgwp-product .wcgwp-option {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr) 22px;
	align-items: center;
	gap: 15px;
	width: 100%;
	min-height: 84px;
	margin: 0;
	padding: 7px 16px 7px 7px;
	border: 0;
	border-top: 1px solid var(--sm-color-line);
	border-bottom: 1px solid var(--sm-color-line);
	border-radius: 0;
	color: var(--sm-color-ink);
	background: transparent;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease;
}

body.single-product .wcgwp-product .wcgwp-checkbox-wrapper + .wcgwp-checkbox-wrapper {
	margin-top: -1px;
}

body.single-product .wcgwp-product .wcgwp-option:hover,
body.single-product .wcgwp-product .wcgwp-option:focus-within,
body.single-product .wcgwp-product .wcgwp-option:has(.wcgwp-checkbox:checked) {
	background: rgba(0, 87, 181, 0.025);
}

body.single-product .wcgwp-product .sm-wcgwp-thumb {
	display: block;
	width: 68px;
	height: 68px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--sm-color-mist);
}

body.single-product .wcgwp-product .wcgwp-option__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

body.single-product .wcgwp-product .wcgwp-option__content {
	display: grid;
	align-content: center;
	gap: 3px;
	min-width: 0;
}

body.single-product .wcgwp-product .wcgwp-option__title {
	color: var(--sm-color-ink);
	font-family: var(--sm-font-heading, "Barlow Condensed", sans-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.15;
}

body.single-product .wcgwp-product .wcgwp-option__title a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

body.single-product .wcgwp-product .wcgwp-option__price {
	color: var(--sm-color-blue);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

body.single-product .wcgwp-product .wcgwp-option__price .amount {
	color: var(--sm-color-blue);
	font-weight: 700;
	white-space: nowrap;
}

body.single-product .wcgwp-product .wcgwp-option__price .woocommerce-price-suffix {
	display: block;
	margin-top: 1px;
	color: var(--sm-color-muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
}

body.single-product .wcgwp-product .wcgwp-option__control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

body.single-product .wcgwp-product .wcgwp-checkbox {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--sm-color-blue);
}

body.single-product .wcgwp-product .wcgwp-note-container {
	display: grid;
	gap: 8px;
	margin-top: 4px;
}

body.single-product .wcgwp-product .wcgwp-note-container label {
	margin: 0;
	color: var(--sm-color-navy);
	font-weight: 700;
}

body.single-product .wcgwp-product .wcgwp-note {
	min-height: 96px;
}

body.single-product .wcgwp-product .sm-wcgwp-total[hidden] {
	display: none;
}

body.single-product .wcgwp-product .sm-wcgwp-total {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-top: 14px;
}

body.single-product .wcgwp-product .sm-wcgwp-total__copy {
	display: grid;
	gap: 1px;
}

body.single-product .wcgwp-product .sm-wcgwp-total__copy strong {
	color: var(--sm-color-navy);
	font-family: var(--sm-font-heading, "Barlow Condensed", sans-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}

body.single-product .wcgwp-product .sm-wcgwp-total__copy small {
	color: var(--sm-color-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
}

body.single-product .wcgwp-product .sm-wcgwp-total__price {
	color: var(--sm-color-blue);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

@media (max-width: 480px) {
	body.single-product .wcgwp-product {
		padding: 12px;
	}

	body.single-product .wcgwp-product .wcgwp-option {
		grid-template-columns: 58px minmax(0, 1fr) 20px;
		gap: 11px;
		min-height: 74px;
		padding: 7px 11px 7px 7px;
	}

	body.single-product .wcgwp-product .sm-wcgwp-thumb {
		width: 58px;
		height: 58px;
	}

	body.single-product .wcgwp-product .wcgwp-option__title {
		font-size: 17px;
	}

	body.single-product .wcgwp-product .sm-wcgwp-total {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}
}
