/*
 * RyC Login - public stylesheet
 * ใช้กับหน้าเว็บทั่วไป (ไม่ใช่หน้า wp-login.php ซึ่งใช้ login.css)
 *
 * รวม woo.css และ pwl.css เข้ามาไว้ที่นี่ตั้งแต่ 2.2.0 — สองไฟล์นั้นมี rule จริง
 * รวมกันแค่ 3 บรรทัดและเกือบทั้งหมดซ้ำกับไฟล์นี้อยู่แล้ว แต่กินคนละ HTTP request
 */
.ryc-login-woo-wrapper {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
}

.ryc-login-woo-wrapper .ryc-login-message {
	margin-bottom: 16px;
}

.ryc-login-divider {
	position: relative;
	text-align: center;
	margin: 16px 0;
	height: 1px;
	background: #e2e2e2;
}

.ryc-login-divider span {
	position: relative;
	top: -11px;
	display: inline-block;
	padding: 0 12px;
	background: #fff;
	color: #757575;
	font-size: 13px;
}

.ryc-login-nextend,
.ryc-login-passwordless {
	text-align: center;
}

/* เดิมอยู่ใน pwl.css — เว้นระยะจากบล็อกด้านบนเมื่อแสดงคู่กับปุ่ม social */
.ryc-login-passwordless {
	margin-top: 16px;
}

/* กล่องของ shortcode [ryc_login] ที่วางเองในหน้า/popup ใดก็ได้ */
.ryc-login-shortcode {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
}

/* จัดกึ่งกลางเหมือนกันทั้งกรณีวาง shortcode เองและกรณีผ่านฟอร์ม WooCommerce */
.ryc-login-shortcode .ryc-login-nextend,
.ryc-login-shortcode .ryc-login-passwordless,
.ryc-login-woo-wrapper .ryc-login-nextend,
.ryc-login-woo-wrapper .ryc-login-passwordless {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.ryc-login-shortcode form,
.ryc-login-woo-wrapper form {
	display: inline-block;
	margin: 0 auto;
}

/* ---------------------------------------------------------------------
 * ฟอร์มล็อกอินด้วยรหัส OTP (2.4.0)
 * ------------------------------------------------------------------ */
.ryc-otp {
	max-width: 360px;
	margin: 0 auto;
	text-align: left;
}

.ryc-otp [hidden] {
	display: none !important;
}

.ryc-otp-label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}

.ryc-otp .ryc-otp-email,
.ryc-otp .ryc-otp-code {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 12px;
	font-size: 16px; /* 16px ขึ้นไป iOS จะไม่ซูมหน้าจอตอนแตะช่องกรอก */
}

.ryc-otp .ryc-otp-code {
	font-size: 24px;
	letter-spacing: 8px;
	text-align: center;
	font-family: "Courier New", Courier, monospace;
}

.ryc-otp .ryc-otp-send,
.ryc-otp .ryc-otp-verify {
	display: block;
	width: 100%;
	margin: 0 0 8px;
}

.ryc-otp-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ryc-otp-sent {
	margin: 0 0 4px;
	font-weight: 600;
	color: #1a7f37;
}

.ryc-otp-hint,
.ryc-otp-help,
.ryc-otp-remember-note {
	margin: 0 0 12px;
	font-size: 13px;
	color: #646970;
}

.ryc-otp-signup-note {
	margin: 8px 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #646970;
}

.ryc-otp-remember {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

.ryc-otp-remember label {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: normal;
}

.ryc-otp-remember-legend {
	margin: 0 0 4px;
	padding: 0;
	font-size: 14px;
	font-weight: normal;
}

/* ตัวเลือกจำนวนวันเรียงแถวเดียว (2.6.0) */
.ryc-otp-remember-days {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 6px;
}

.ryc-otp-remember .ryc-otp-remember-days label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.ryc-otp-remember-note {
	display: block;
	margin-top: 4px;
}

.ryc-otp-actions {
	margin: 4px 0 0;
	text-align: center;
	font-size: 14px;
}

.ryc-otp .ryc-otp-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
	box-shadow: none;
}

.ryc-otp .ryc-otp-link:disabled {
	text-decoration: none;
	opacity: 0.6;
	cursor: default;
}

.ryc-otp-turnstile {
	margin: 8px 0;
}

.ryc-otp-msg {
	margin: 8px 0 0;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 14px;
	background: #f0f0f1;
}

.ryc-otp-msg-error {
	background: #fcf0f1;
	color: #8a2424;
}

.ryc-otp-msg-success {
	background: #edfaef;
	color: #1a7f37;
}

/* บล็อก OTP ใน [ryc_login] / ฟอร์ม WooCommerce — ไม่ใช้ flex แบบบล็อกอื่น */
.ryc-login-otp {
	margin-top: 16px;
}

.ryc-login-shortcode .ryc-login-otp,
.ryc-login-woo-wrapper .ryc-login-otp {
	display: block;
}
