/* Bayna draws Pay deposit / Full payment on the product. Hide it — split is from order total. */
.deposits-frontend-wrapper {
	display: none !important;
}

.bn-deposit-summary__box {
	margin-block: 0.5rem 0.75rem;
	padding: 0.85rem 1rem;
	border: 2px solid #c4bdd0;
	border-radius: 6px;
	background: #dcd7e3;
	color: #000 !important;
}

.bn-deposit-summary__title,
.bn-deposit-summary__now,
.bn-deposit-summary__later,
.bn-deposit-summary__box p,
.bn-deposit-summary__box strong {
	margin: 0 0 0.35rem;
	color: #000 !important;
	font-size: 1.05rem;
	line-height: 1.4;
	font-style: normal;
}

.bn-deposit-summary__now {
	font-size: 1.2rem;
}

.bn-deposit-pay-mode {
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
}

.bn-deposit-pay-mode legend {
	padding: 0;
	color: #000 !important;
	font-size: 1.05rem;
	font-weight: 700;
	font-style: normal;
}

.bn-deposit-pay-mode__opts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.35rem;
	margin-top: 0.45rem;
}

.bn-deposit-pay-mode label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	color: #000 !important;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
}

.bn-deposit-pay-mode input[type="radio"] {
	accent-color: #5b4a7a;
	width: 1.1em;
	height: 1.1em;
	margin: 0;
}

.bn-deposit-order-overview {
	margin-block: 0 1.25rem;
	padding: 1rem 1.1rem;
	border: 2px solid #c4bdd0;
	border-radius: 6px;
	background: #dcd7e3;
	color: #000 !important;
}

.bn-deposit-order-overview li,
.bn-deposit-order-overview span,
.bn-deposit-order-overview strong {
	color: #000 !important;
}

.woocommerce-order-overview__deposit,
.woocommerce-order-overview__balance {
	color: #000 !important;
}

.bn-deposit-summary__box--full {
	border-color: #c4bdd0;
	background: #dcd7e3;
}

html[data-wp-dark-mode-active] .bn-deposit-summary__box,
html[data-wp-dark-mode-active] .bn-deposit-summary__box--full {
	border-color: #c4bdd0 !important;
	background: #dcd7e3 !important;
	color: #000 !important;
}

html[data-wp-dark-mode-active] .bn-deposit-pay-mode legend,
html[data-wp-dark-mode-active] .bn-deposit-pay-mode label,
html[data-wp-dark-mode-active] .bn-deposit-summary__title,
html[data-wp-dark-mode-active] .bn-deposit-summary__now,
html[data-wp-dark-mode-active] .bn-deposit-summary__later,
html[data-wp-dark-mode-active] .bn-deposit-summary__box p,
html[data-wp-dark-mode-active] .bn-deposit-summary__box strong {
	color: #000 !important;
}

.bn-deposit-receipt {
	margin-block: 1.25rem;
	padding: 1rem 1.1rem;
	border: 1px solid #8a6d3b;
	border-radius: 6px;
	background: #fffbeb;
	color: #000;
}

.bn-deposit-receipt[hidden] {
	display: none;
}

.bn-deposit-receipt legend,
.bn-deposit-receipt__help,
.bn-deposit-receipt__status,
.bn-deposit-receipt label,
.bn-deposit-receipt input[type="file"] {
	color: #000 !important;
}

.bn-deposit-receipt legend {
	padding-inline: 0.35rem;
	font-weight: 600;
}

.bn-deposit-receipt__help,
.bn-deposit-receipt__status,
.bn-deposit-receipt__error {
	margin-block: 0.4rem 0.6rem;
	font-size: 1rem;
	line-height: 1.45;
}

.bn-deposit-receipt__status {
	font-weight: 600;
}

.bn-deposit-receipt__dots::after {
	content: '';
	animation: bn-deposit-dots 1.2s steps(4, end) infinite;
}

@keyframes bn-deposit-dots {
	0% {
		content: '';
	}
	25% {
		content: '.';
	}
	50% {
		content: '..';
	}
	75%,
	100% {
		content: '...';
	}
}

@media (prefers-reduced-motion: reduce) {
	.bn-deposit-receipt__dots::after {
		animation: none;
		content: '...';
	}
}

.bn-deposit-receipt input[type="file"] {
	display: block;
	width: 100%;
	max-width: 28rem;
	min-height: 48px;
	padding: 0.5rem 0;
	font-size: 1rem;
}

.bn-deposit-receipt input[type="file"]:focus-visible {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

.bn-deposit-receipt input[type="file"]:user-invalid {
	border: 1px solid #d93025;
	background: #fce8e6;
}

.bn-deposit-receipt__error {
	display: none;
	color: #8b1a12;
}

.bn-deposit-receipt.is-invalid .bn-deposit-receipt__error[hidden] {
	display: none;
}

.bn-deposit-receipt.is-invalid .bn-deposit-receipt__error:not([hidden]) {
	display: block;
}

@media (prefers-color-scheme: dark) {
	.bn-deposit-receipt {
		background: #3d2e12;
		border-color: #c4a35a;
		color: #f8f4ea;
	}

	.bn-deposit-receipt input[type="file"]:user-invalid {
		background: #4a1c18;
		border-color: #f0a8a0;
	}

	.bn-deposit-receipt__error {
		color: #f0a8a0;
	}
}

html[data-wp-dark-mode-active] .bn-deposit-receipt {
	background: #3d2e12 !important;
	border-color: #c4a35a !important;
	color: #f8f4ea !important;
}

html[data-wp-dark-mode-active] .bn-deposit-receipt legend,
html[data-wp-dark-mode-active] .bn-deposit-receipt__help,
html[data-wp-dark-mode-active] .bn-deposit-receipt__status,
html[data-wp-dark-mode-active] .bn-deposit-receipt label,
html[data-wp-dark-mode-active] .bn-deposit-receipt input[type="file"] {
	color: #f8f4ea !important;
}

html[data-wp-dark-mode-active] .bn-deposit-receipt__error {
	color: #f0a8a0 !important;
}
