.zsw-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.zsw-heading {
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
}

.zsw-form,
.zsw-summary,
.zsw-success-panel {
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.zsw-summary {
	margin-bottom: 1.25rem;
}

.zsw-summary p {
	margin: 0 0 0.4rem;
}

.zsw-change {
	margin-top: 0.75rem !important;
	font-size: 0.9rem;
}

.zsw-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.zsw-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.zsw-field--full {
	grid-column: 1 / -1;
}

.zsw-field select,
.zsw-field input {
	font-weight: 400;
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.4;
	background: #fff;
}

.zsw-field input:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}

.zsw-field input[readonly] {
	background: #f4f4f5;
}

.zsw-actions {
	margin-top: 0.5rem;
}

.zsw-btn {
	display: inline-block;
	background: #111827;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0.75rem 1.4rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.zsw-btn:hover {
	background: #000;
}

.zsw-notice {
	border-radius: 8px;
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.zsw-notice--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.zsw-notice--success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.zsw-notice--pending {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.zsw-success-panel {
	text-align: center;
	font-size: 1.05rem;
}

/* Card brand: logo only. The select stays in the DOM so detection can set VISA or MASTER. */
.zsw-wrap .wpwl-container-card .wpwl-label-brand,
.zsw-wrap .wpwl-container-card select.zsw-brand-select,
.zsw-wrap .wpwl-container-card select.wpwl-control-brand {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.zsw-wrap .wpwl-container-card .wpwl-group-brand {
	margin-bottom: 0.75rem;
}

.zsw-wrap .wpwl-container-card .wpwl-brand {
	display: block;
	float: none;
	opacity: 1;
}

.zsw-wrap .wpwl-form,
.zsw-wrap form.paymentWidgets {
	margin-top: 0.5rem;
}

@media (max-width: 600px) {
	.zsw-row {
		grid-template-columns: 1fr;
	}

	.zsw-form,
	.zsw-summary,
	.zsw-success-panel {
		padding: 1.1rem;
	}
}
