.wcg-gateway-icon,
.wcg-blocks-label .wcg-gateway-icon,
#payment .payment_methods li img.wcg-gateway-icon,
.wc-block-components-radio-control__label img.wcg-gateway-icon {
	display: inline-block;
	height: 24px;
	width: auto;
	max-width: 46%;
	max-height: 24px;
	margin: 0 8px 0 0;
	padding: 0;
	vertical-align: middle;
	float: none;
	position: static;
	box-shadow: none;
	border: 0;
	background: transparent;
}

.wcg-blocks-label {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 100%;
	white-space: normal;
}

.wc-block-components-radio-control__label:has(.wcg-blocks-label) {
	height: auto;
	max-height: none;
	overflow: visible;
	white-space: normal;
	text-overflow: unset;
}

.wcg-panel {
	container-type: inline-size;
	container-name: wcg-panel;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-top: 8px;
	padding: 14px;
	overflow: visible;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 12px;
}

.wcg-panel--wcg_zelle { border-top: 3px solid #6d1ed4; }
.wcg-panel--wcg_apple_pay { border-top: 3px solid #111; }
.wcg-panel--wcg_wire { border-top: 3px solid #0e2a47; }
.wcg-panel--wcg_chime { border-top: 3px solid #00c853; }
.wcg-panel--wcg_etransfer { border-top: 3px solid #0e6b4f; }
.wcg-panel--wcg_revolut { border-top: 3px solid #111827; }
.wcg-panel--wcg_bnpl { border-top: 3px solid #312e81; }

.wcg-panel__brand {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.wcg-panel__brand strong {
	flex: 1 1 140px;
	min-width: 0;
	font-size: 15px;
}

.wcg-panel__logo,
.wcg-admin-logo {
	height: 32px;
	width: auto;
	max-width: 100%;
	vertical-align: middle;
}

.wcg-admin-logo {
	margin-right: 8px;
}

.wcg-panel__intro,
.wcg-panel__note,
.wcg-ship__text,
.wcg-details dd,
.wcg-amount strong,
.wcg-split__cell strong,
.wcg-balance-note {
	white-space: normal;
	overflow: visible;
	overflow-wrap: break-word;
	max-height: none;
}

.wcg-panel__intro,
.wcg-panel__note {
	margin: 0 0 12px;
	color: #3f3f46;
}

.wcg-panel__note p:last-child {
	margin-bottom: 0;
}

.wcg-amount,
.wcg-split__cell {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 12px;
	padding: 10px 12px;
	background: #fafafa;
	border-radius: 8px;
}

.wcg-amount span,
.wcg-split__cell span {
	color: #71717a;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.wcg-amount strong,
.wcg-split__cell strong {
	font-size: 18px;
	color: #18181b;
}

.wcg-split {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

.wcg-split__cell {
	margin: 0;
}

.wcg-split__cell.is-due {
	background: #eef2ff;
}

.wcg-split__cell.is-due strong {
	color: #312e81;
}

.wcg-balance-note {
	margin: 0 0 12px;
	color: #3f3f46;
}

.wcg-details {
	display: grid;
	gap: 8px;
	margin: 0 0 12px;
}

.wcg-details__row {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr;
	gap: 8px;
	align-items: start;
}

.wcg-details dt {
	margin: 0;
	color: #71717a;
	font-weight: 600;
}

.wcg-details dd {
	margin: 0;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.wcg-copy {
	margin-left: 8px;
	padding: 2px 8px;
	border: 1px solid #d4d4d8;
	border-radius: 999px;
	background: #fff;
	color: #3f3f46;
	font-size: 12px;
	line-height: 1.4;
	cursor: pointer;
}

.wcg-copy:hover,
.wcg-copy:focus {
	border-color: #18181b;
	color: #18181b;
}

.wcg-reference-row label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.wcg-reference-input,
.wcg-reference-form .input-text {
	width: 100%;
	max-width: 420px;
	padding: 8px 10px;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
}

.wcg-reference-form {
	margin-top: 12px;
}

.wcg-notice {
	margin: 0 0 10px;
	padding: 8px 10px;
	border-radius: 8px;
}

.wcg-notice--success {
	background: #ecfdf3;
	color: #166534;
}

.wcg-contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.wcg-contact__button,
.wcg-contact__actions .button {
	display: inline-block;
	padding: 10px 14px;
	border-radius: 8px;
	background: #18181b;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	line-height: 1.2;
}

.wcg-contact__button:hover,
.wcg-contact__button:focus,
.wcg-contact__actions .button:hover,
.wcg-contact__actions .button:focus {
	background: #3f3f46;
	color: #fff;
}

.wcg-ship {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: #fffbeb;
	border: 1px solid #f5e6b8;
	border-radius: 10px;
}

.wcg-ship__title,
.wcg-ship__text {
	margin: 0;
}

.wcg-ship__text {
	margin-top: 6px;
}

.wcg-paid-note {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.wcg-admin-summary {
	margin-top: 12px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 10px;
}

.wcg-admin-summary__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

.wcg-admin-summary__list {
	margin: 0;
	padding-left: 18px;
}

.wcg-tier-table {
	max-width: 820px;
}

@container wcg-panel (max-width: 560px) {
	.wcg-split,
	.wcg-details__row {
		grid-template-columns: 1fr;
	}

	.wcg-contact__button,
	.wcg-contact__actions .button {
		flex: 1 1 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

@media (max-width: 782px) {
	.wcg-split,
	.wcg-details__row {
		grid-template-columns: 1fr;
	}

	.wcg-reference-input,
	.wcg-reference-form .input-text {
		max-width: none;
	}

	.wcg-contact__button,
	.wcg-contact__actions .button {
		flex: 1 1 100%;
		box-sizing: border-box;
		text-align: center;
	}

	.wcg-copy {
		display: inline-block;
		margin: 6px 0 0;
	}

	.wcg-quote-names label {
		display: block;
		margin: 0 0 12px;
	}

	.wcg-quote-names input {
		display: block;
		width: 100%;
		max-width: 100%;
		margin-top: 4px;
		box-sizing: border-box;
	}

	.wcg-tier-table,
	.wcg-tier-table tbody,
	.wcg-tier-table tr,
	.wcg-tier-table td {
		display: block;
		width: 100%;
	}

	.wcg-tier-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.wcg-tier-table tr {
		margin: 0 0 12px;
		padding: 8px 12px;
		border: 1px solid #dcdcde;
		background: #fff;
	}

	.wcg-tier-table td {
		padding: 6px 0;
		border: 0;
	}

	.wcg-tier-table td[data-label]:not([data-label=""])::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		font-weight: 600;
	}

	.wcg-tier-table input.small-text {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
}
