.wcdc-checkout-deposit,
.wcdc-checkout-remaining {
	background: #f7fbfb;
}

.wcdc-deposit-shell {
	margin: 28px 0;
}

.wcdc-deposit-shell.wcdc-is-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.52);
	padding: 24px;
	overflow-y: auto;
	box-sizing: border-box;
}

.wcdc-deposit-shell.wcdc-is-popup.wcdc-open {
	display: grid;
	place-items: center;
}

.wcdc-deposit-panel {
	position: relative;
	width: min(720px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid #d7dee2;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.wcdc-deposit-shell:not(.wcdc-is-popup) .wcdc-deposit-panel {
	box-shadow: none;
}

.wcdc-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #eef2f4;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

html[dir="rtl"] .wcdc-close,
body.rtl .wcdc-close {
	right: auto;
	left: 12px;
}

.wcdc-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 18px 0;
}

.wcdc-summary div,
.wcdc-account {
	border: 1px solid #dce3e7;
	border-radius: 6px;
	padding: 12px;
	background: #f9fbfb;
}

.wcdc-summary span {
	display: block;
	color: #53616a;
	font-size: 13px;
	margin-bottom: 4px;
}

.wcdc-account {
	margin-bottom: 10px;
}

.wcdc-proof-form label {
	display: block;
	margin: 0 0 14px;
}

.wcdc-proof-form label span {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.wcdc-proof-form input,
.wcdc-proof-form select,
.wcdc-proof-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wcdc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.wcdc-form-message {
	margin: 12px 0 0;
}

.wcdc-success {
	color: #067647;
}

.wcdc-error {
	color: #b42318;
}

@media (max-width: 640px) {
	.wcdc-deposit-shell {
		margin: 18px 0;
	}

	.wcdc-deposit-shell.wcdc-is-popup {
		padding: 10px;
		place-items: stretch;
	}

	.wcdc-deposit-panel {
		width: 100%;
		max-height: calc(100vh - 20px);
		padding: 18px;
		border-radius: 6px;
	}

	.wcdc-deposit-panel h2 {
		font-size: 22px;
		padding-inline-end: 42px;
	}

	html[dir="rtl"] .wcdc-deposit-panel h2,
	body.rtl .wcdc-deposit-panel h2 {
		padding-inline-end: 0;
		padding-inline-start: 42px;
	}

	.wcdc-summary {
		grid-template-columns: 1fr;
	}

	.wcdc-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.wcdc-actions .button {
		width: 100%;
		text-align: center;
		justify-content: center;
	}
}
