.cad-sslcz-widget {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.cad-sslcz-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.cad-sslcz-description {
	margin: 0 0 20px;
	opacity: 0.8;
	text-align: center;
}

.cad-sslcz-error {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 14px;
}

.cad-sslcz-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
}

.cad-sslcz-row > .cad-sslcz-field {
	flex: 1 1 200px;
	margin-bottom: 0;
}

.cad-sslcz-field-narrow {
	flex: 0 1 110px !important;
}

.cad-sslcz-field {
	margin-bottom: 14px;
}

.cad-sslcz-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
}

.cad-sslcz-field input,
.cad-sslcz-field select,
.cad-sslcz-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 2px solid #ddd;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	background: #fff;
}

.cad-sslcz-field textarea {
	resize: vertical;
}

.cad-sslcz-section {
	margin-bottom: 20px;
}

.cad-sslcz-section h4,
.cad-sslcz-summary h4 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
}

.cad-sslcz-summary {
	background: #eef5fb;
	border-radius: 12px;
	padding: 20px;
}

.cad-sslcz-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.cad-sslcz-preset-btn {
	cursor: pointer;
	border: 2px solid #ccd8e2;
	background: #fff;
	color: #333;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cad-sslcz-preset-btn:hover {
	border-color: #1d6fd6;
}

.cad-sslcz-preset-btn.cad-active {
	background: #c9a24b;
	border-color: #c9a24b;
	color: #fff;
}

.cad-sslcz-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 14px;
}

.cad-sslcz-summary-cause-value {
	text-align: right;
}

.cad-sslcz-payment-methods-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
}

.cad-sslcz-payment-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 16px;
}

.cad-sslcz-payment-method-option {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 2px solid #ccd8e2;
	border-radius: 8px;
	padding: 12px 14px;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cad-sslcz-payment-method-option:has(input:checked),
.cad-sslcz-payment-method-option.cad-selected {
	border-color: #1d6fd6;
	background: #f0f6fe;
}

.cad-sslcz-bank-details {
	display: none;
	margin: 0 0 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid #ccd8e2;
	border-left: 4px solid #1d6fd6;
	border-radius: 8px;
}

.cad-sslcz-bank-details h5 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
}

.cad-sslcz-bank-details-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.cad-sslcz-bank-details-table th,
.cad-sslcz-bank-details-table td {
	text-align: left;
	padding: 6px 0;
	border-bottom: 1px solid #eee;
}

.cad-sslcz-bank-details-table th {
	font-weight: 600;
	color: #555;
	width: 40%;
}

.cad-sslcz-bank-details-table tr:last-child th,
.cad-sslcz-bank-details-table tr:last-child td {
	border-bottom: none;
}

.cad-sslcz-bank-details-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: #666;
}

.cad-sslcz-payment-method-option input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.cad-sslcz-submit-btn {
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 10px;
	background: #1d6fd6;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.cad-sslcz-submit-btn:hover {
	background: #1558ab;
}

.cad-sslcz-submit-btn.cad-loading {
	opacity: 0.7;
	cursor: not-allowed;
}

/*
 * .cad-sslcz-row already wraps naturally (flex-wrap: wrap) once two
 * 200px-basis fields no longer fit side by side on a narrow screen — no
 * flex-direction override needed. (A prior version set
 * `flex-direction: column` here, which flips the main axis so each
 * field's `flex-basis: 200px` — meant as a target *width* — got applied
 * as a minimum *height* instead, producing large empty gaps between
 * fields on mobile.)
 */
@media (max-width: 480px) {
	.cad-sslcz-field-narrow {
		flex-basis: auto !important;
	}
}
