/* GKFC — form email OTP control
   Loaded only by forms carrying an "email_otp" field. The rest of the wizard
   styling lives in the theme, so this file stays deliberately minimal and only
   covers the pieces the theme does not know about. */

.gkfc-form__otp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.gkfc-form__otp-send {
	flex: 0 0 auto;
}

.gkfc-form__otp-send[disabled] {
	opacity: .65;
	cursor: progress;
}

.gkfc-form__otp-note {
	flex: 1 1 12rem;
	min-width: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.gkfc-form__otp-note--error {
	color: #b91c1c;
}

/* Payment QR shown in an HTML field.
   The image is rendered at its natural size and never resampled: this is a
   machine-read code, and browser down-scaling plus sub-pixel smoothing is the
   fastest way to make a scanner fail. pixelated keeps module edges hard if a
   theme does constrain the width. */
.gkfc-qr {
	display: block;
	width: max-content;
	max-width: 100%;
	margin: 16px auto;
	padding: 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.gkfc-qr img {
	display: block;
	width: 438px;
	max-width: 100%;
	height: auto;
	image-rendering: pixelated;
	/* Explicit in the stylesheet as well as the markup: if the file ever
	   carries transparency over a coloured page background, an opaque plate
	   keeps the quiet zone readable. */
	background: #fff;
}

/* Narrow screens shrink the code to fit the viewport. image-rendering:
   pixelated on the <img> keeps the module edges hard when it is down-scaled,
   which is what makes a scaled code still readable to phone scanners. */
@media (max-width: 520px) {
	.gkfc-qr {
		padding: 12px;
	}

	.gkfc-qr img {
		width: 100%;
		max-width: 438px;
		height: auto;
	}
}
