/* Kusto Certo Stripe MB WAY — Checkout Styles */

/* ── Classic checkout form ─────────────────────────────────────────── */

#kcmbway-form {
	margin-top: 10px;
}

#kcmbway-form legend {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
}

#kcmbway-phone {
	font-size: 16px;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 100%;
	max-width: 220px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

#kcmbway-phone:focus {
	border-color: #FF6B00;
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.15);
}

#kcmbway-phone.kcmbway-error {
	border-color: #e2401c;
}

.kcmbway-field-error {
	color: #e2401c;
	font-size: 12px;
	display: block;
	margin-top: 4px;
}

.kcmbway-test-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	padding: 8px 12px;
	margin-bottom: 10px;
	border-radius: 4px;
	font-size: 13px;
}

.kcmbway-thankyou-notice {
	background: #d4edda;
	border: 1px solid #28a745;
	padding: 15px 20px;
	border-radius: 6px;
	margin: 20px 0;
}

.kcmbway-thankyou-notice h3 {
	margin: 0 0 8px;
	font-size: 16px;
	color: #155724;
}

.kcmbway-thankyou-notice p {
	margin: 0;
	color: #155724;
}

/* WooCommerce classic checkout icon */
.payment_method_kcmbway img {
	max-height: 28px;
	vertical-align: middle;
	margin-left: 6px;
}

/* ── Blocks checkout — card borders ────────────────────────────────── */

.wc-block-components-radio-control .wc-block-components-radio-control__option {
	border: 1px solid #e5e5e5 !important;
	border-radius: 8px !important;
	margin-bottom: 8px !important;
	background: #fff !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wc-block-components-radio-control .wc-block-components-radio-control__option:last-child {
	margin-bottom: 0 !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__option:hover {
	border-color: #FF6B00 !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__option:has(input:checked) {
	border-color: #FF6B00 !important;
	background: #fff9f5 !important;
}

/* ── MB WAY blocks label ───────────────────────────────────────────── */

/* Fix MB WAY label: force left-alignment regardless of WC Blocks wrapper */
.wc-block-components-radio-control__option:has( input[value="kcmbway"] ) label,
.wc-block-components-radio-control__option:has( input[value="kcmbway"] ) .wc-block-components-radio-control__label {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center !important;
	text-align: left !important;
}

.wc-block-components-payment-method-label:has( .kcmbway-payment-label ),
.wc-block-components-radio-control__option:has( input[value="kcmbway"] ) .wc-block-components-payment-method-label {
	margin-left: 0 !important;
	flex: 1 !important;
	justify-content: flex-start !important;
}

.kcmbway-payment-label {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	text-align: left !important;
	width: 100% !important;
	min-width: 0;
}

.kcmbway-payment-label__name {
	color: #FF6B00;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.kcmbway-payment-label__icon {
	height: 32px !important;
	width: auto !important;
	display: block !important;
	flex-shrink: 0;
	margin-left: auto;
	border-radius: 4px;
}
