/*
 * 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;
}
