.single-product form.cart:has(.nv-product-extras) {
	max-width: none !important;
	width: 100% !important;
}

.nv-product-extras {
	--nv-brown: #6F5B49;
	--nv-pink: #FC67A6;
	--nv-line: #CFC3B6;
	--nv-soft: #EFEAE4;
	--nv-pink-tint: #FDEEF3;
	color: var(--nv-brown);
	display: grid;
	gap: 16px;
	margin: 16px 0;
	width: 100%;
}

.single-product form.cart > .nv-product-extras {
	flex: 1 0 100% !important;
}

.nv-extra-toggle {
	align-items: center;
	border: 1px solid var(--nv-line);
	box-sizing: border-box;
	cursor: pointer;
	display: flex !important;
	gap: 14px;
	min-height: 80px;
	padding: 20px 24px;
}

.nv-extra-toggle input {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.nv-extra-toggle__box {
	background: transparent;
	border: 1px solid var(--nv-line);
	box-sizing: border-box;
	flex: 0 0 26px;
	height: 26px;
	position: relative;
	width: 26px;
}

.nv-extra-toggle input:checked + .nv-extra-toggle__box {
	background: var(--nv-brown);
	border-color: var(--nv-brown);
}

.nv-extra-toggle input:checked + .nv-extra-toggle__box::after {
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	height: 11px;
	left: 9px;
	position: absolute;
	top: 5px;
	transform: rotate(45deg);
	width: 5px;
}

.nv-extra-toggle input:focus-visible + .nv-extra-toggle__box,
.nv-extra-qty__button:focus-visible,
.nv-greeting-types button:focus-visible,
.nv-greeting-record:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
}

.nv-extra-toggle__label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: uppercase;
}

.nv-extra-upgrade {
	align-items: center;
	border: 1px solid var(--nv-line);
	background: var(--nv-soft);
	box-sizing: border-box;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: 0;
	padding: 12px 16px;
}

.nv-extra-upgrade__title {
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: #251f18;
}

.nv-extra-upgrade__copy p {
	color: var(--nv-brown);
	font-size: 14.5px;
	line-height: 1.3;
	margin: 2px 0 0;
	max-width: 345px;
}

.nv-extra-upgrade__action {
	align-items: center;
	display: flex;
	gap: 12px;
}

.nv-extra-qty--upgrade {
	height: 42px;
	width: 92px;
}

.nv-extra-upgrade .nv-extra-price-chip {
	display: none;
}

.nv-extra-price-chip {
	align-items: center;
	background: var(--nv-pink-tint);
	border-radius: 999px;
	color: var(--nv-pink);
	display: inline-flex;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	min-height: 30px;
	padding: 0 13px;
	white-space: nowrap;
}

.nv-extra-price-chip .woocommerce-Price-amount,
.nv-extra-price-chip .woocommerce-Price-currencySymbol {
	color: inherit;
}

.nv-extra-panel {
	border: 1px solid var(--nv-brown);
	box-sizing: border-box;
}

.nv-extra-panel summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	font-weight: 400;
	justify-content: space-between;
	list-style: none;
	min-height: 72px;
	padding: 14px 24px;
}

.nv-extra-panel summary::-webkit-details-marker {
	display: none;
}

.nv-extra-panel summary img {
	height: 18px;
	transition: transform 180ms ease;
	width: 24px;
}

.nv-extra-panel:not([open]) summary img {
	transform: rotate(-90deg);
}

.nv-extra-panel--greeting summary > span {
	align-items: center;
	display: flex;
	gap: 14px;
}

.nv-extra-panel--greeting summary .nv-extra-price-chip {
	font-family: inherit;
	font-size: 13px;
}

.nv-extra-panel__body {
	padding: 0 24px 24px;
}

.nv-gift-row {
	align-items: center;
	display: grid;
	gap: 20px;
	grid-template-columns: 100px minmax(0, 1fr) 106px;
	min-height: 140px;
	padding: 12px 0;
}

.nv-gift-row + .nv-gift-row {
	border-top: 1px solid var(--nv-line);
}

.nv-gift-row__media {
	height: 100px;
	width: 100px;
}

.nv-gift-row__media img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.nv-gift-row__name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	line-height: 1.25;
}

.nv-gift-row__price {
	color: #111;
	font-size: 17px;
	font-weight: 600;
	margin-top: 7px;
}

.nv-extra-qty {
	align-items: center;
	border: 1px solid var(--nv-line);
	border-radius: 4px;
	background: #ffffff;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 30px 1fr;
	height: 42px;
	justify-self: end;
	width: 92px;
}

.nv-extra-qty__button {
	background: transparent;
	border: 0;
	color: var(--nv-brown);
	cursor: pointer;
	font: inherit;
	height: 100%;
	min-width: 0;
	padding: 0;
}

.nv-extra-qty input[type="number"] {
	appearance: textfield;
	font-size: 16px;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #111;
	font: inherit;
	font-weight: 600;
	height: 100%;
	min-width: 0;
	padding: 0;
	text-align: center;
	width: 34px;
}

.nv-extra-qty input::-webkit-inner-spin-button,
.nv-extra-qty input::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}

.nv-greeting-types {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nv-greeting-types button,
.nv-greeting-record {
	background: var(--nv-soft);
	border: 1px solid transparent;
	color: var(--nv-brown);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.55;
	min-height: 86px;
	padding: 14px;
	text-transform: uppercase;
}

.nv-greeting-types button.is-selected {
	border-color: var(--nv-brown);
	background: #fff;
}

.nv-greeting-editor {
	border-top: 1px solid var(--nv-line);
	margin-top: 20px;
	padding-top: 20px;
}

.nv-greeting-editor[hidden],
.nv-recorder-modal[hidden] {
	display: none;
}

.nv-greeting-editor label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}

.nv-greeting-editor textarea {
	border: 1px solid var(--nv-line);
	box-sizing: border-box;
	font: inherit;
	min-height: 120px;
	padding: 14px;
	resize: vertical;
	width: 100%;
}

.nv-greeting-editor__hint,
.nv-greeting-status {
	font-size: 13px;
	margin: 7px 0 0;
}

.nv-greeting-record {
	min-height: 48px;
	padding: 10px 18px;
}

.nv-greeting-upload {
	font-weight: 400 !important;
	margin-top: 16px;
}

.nv-greeting-upload input {
	display: block;
	margin-top: 8px;
	width: 100%;
}

.nv-recorder-modal {
	align-items: center;
	background: rgba(28, 18, 14, 0.68);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 999999;
}

.nv-recorder-modal__dialog {
	background: #fff;
	box-sizing: border-box;
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 28px;
	width: min(520px, 100%);
}

.nv-recorder-modal__dialog h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	font-weight: 400;
	margin: 0 0 8px;
}

.nv-recorder-modal video,
.nv-recorder-modal audio {
	background: #111;
	margin: 16px 0;
	max-height: 320px;
	width: 100%;
}

.nv-recorder-modal__actions {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 20px;
}

.nv-recorder-modal__actions button {
	background: var(--nv-brown);
	border: 1px solid var(--nv-brown);
	color: #fff;
	cursor: pointer;
	font: inherit;
	min-height: 46px;
	padding: 10px;
}

.nv-recorder-modal__actions button:last-child {
	background: #fff;
	color: var(--nv-brown);
	grid-column: 1 / -1;
}

.nv-recorder-modal__actions button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

@media (max-width: 680px) {
	.nv-product-extras {
		gap: 14px;
		margin: 22px 0;
	}

	.nv-extra-toggle {
		gap: 11px;
		min-height: 68px;
		padding: 16px;
	}

	.nv-extra-toggle__box {
		flex-basis: 22px;
		height: 22px;
		width: 22px;
	}

	.nv-extra-toggle input:checked + .nv-extra-toggle__box::after {
		left: 7px;
		top: 3px;
	}

	.nv-extra-toggle__label {
		font-size: 12px;
	}

	.nv-extra-upgrade {
		align-items: start;
		gap: 16px;
		grid-template-columns: 1fr;
		padding: 18px 16px;
	}

	.nv-extra-upgrade__title {
		font-size: 20px;
	}

	.nv-extra-upgrade__action {
		justify-content: space-between;
		width: 100%;
	}

	.nv-extra-price-chip {
		font-size: 12px;
		margin-left: auto;
		min-height: 27px;
		padding: 0 10px;
	}

	.nv-extra-panel summary {
		font-size: 24px;
		min-height: 64px;
		padding: 12px 16px;
	}

	.nv-extra-panel__body {
		padding: 0 16px 16px;
	}

	.nv-gift-row {
		gap: 12px;
		grid-template-columns: 76px minmax(0, 1fr) 82px;
		min-height: 112px;
	}

	.nv-gift-row__media {
		height: 76px;
		width: 76px;
	}

	.nv-gift-row__name {
		font-size: 17px;
	}

	.nv-gift-row__price {
		font-size: 15px;
	}

	.nv-extra-qty {
		grid-template-columns: 1fr 28px 1fr;
		height: 58px;
		width: 82px;
	}

	.nv-extra-qty input[type="number"] {
		width: 28px;
	}

	.nv-greeting-types {
		gap: 8px;
	}

	.nv-greeting-types button {
		font-size: 11px;
		min-height: 78px;
		padding: 8px;
	}
}

@media (max-width: 420px) {
	.nv-gift-row {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.nv-gift-row__media {
		height: 64px;
		width: 64px;
	}

	.nv-extra-qty {
		grid-column: 2;
		justify-self: start;
	}

	.nv-greeting-types {
		grid-template-columns: 1fr;
	}

	.nv-greeting-types button {
		min-height: 54px;
	}
}
