/* 1.0.65zj：註冊表單「手機號碼／出生日期／性別」桌機版面，以及登入／註冊 Google 按鈕。
 * 這份檔案在 fe65zg.css 之後載入。註冊版面只限 .fz65b-reg，不改 Easy Login 其他欄位，也不改寄送地址的格子。 */

/* =====================================================================
 * 註冊新增欄位：桌機寬度時，手機號碼幾乎佔滿一列，出生日期／性別被擠到剩下的 20px 縫
 * 原因：Easy Login 的 .xoo-aff-group 是 float:left; width: calc(100% - 20px)。
 * 手機號碼那一列用了這個 class。緊接著的 .fz65b-reg__two 是 display:grid，會建立 BFC，
 * 於是被擠進 float 留下的那條縫，標籤就一個字換一行、輸入框只剩約 25px。
 * 獨立整頁（.fz65v-auth__form）在 65zg 已把 float 取消，但桌機彈窗（有側欄 LOGO）沒套到。
 * ===================================================================== */
html body.fz65zj .fz65b-reg {
	display: block;
	float: none !important;
	clear: both;
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
}
html body.fz65zj .fz65b-reg::after {
	content: "";
	display: table;
	clear: both;
}

/* 手機號碼：.fz65b-reg 的直接子層，必須整列，不可再 float。 */
html body.fz65zj .fz65b-reg > .fz65b-reg__row,
html body.fz65zj .fz65b-reg > .xoo-aff-group.fz65b-reg__row {
	float: none !important;
	clear: both;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}

/* 出生日期／性別：只針對 .fz65b-reg 底下、不在地址欄裡的那一組兩欄。 */
html body.fz65zj .fz65b-reg > .fz65b-reg__two {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 14px;
	float: none !important;
	clear: both;
	width: 100% !important;
	max-width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}

/* 寄送地址的格子維持原本的 2 欄（含郵遞區號那列的固定寬）。 */
html body.fz65zj .fz65b-reg .fz65b-reg__addr {
	display: block;
	float: none !important;
	clear: both;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
html body.fz65zj .fz65b-reg .fz65b-reg__addr .fz65b-reg__two {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 14px;
	width: 100% !important;
	max-width: 100%;
	float: none !important;
	clear: both;
	box-sizing: border-box;
}
html body.fz65zj .fz65b-reg .fz65b-reg__addr .fz65b-reg__two--zip {
	grid-template-columns: 8.5em minmax(0, 1fr);
}

html body.fz65zj .fz65b-reg .fz65b-reg__two > .fz65b-reg__row,
html body.fz65zj .fz65b-reg .fz65b-reg__two > .xoo-aff-group {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}
html body.fz65zj .fz65b-reg .fz65b-reg__label {
	display: block;
	white-space: nowrap;
	writing-mode: horizontal-tb;
	word-break: keep-all;
	overflow-wrap: normal;
}
html body.fz65zj .fz65b-reg .fz65b-reg__row .xoo-aff-input-group,
html body.fz65zj .fz65b-reg .fz65b-reg__row input,
html body.fz65zj .fz65b-reg .fz65b-reg__row select {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	box-sizing: border-box;
}

/* 窄螢幕：出生日期／性別改上下排列。寄送地址的格子不動。 */
@media (max-width: 400px) {
	html body.fz65zj .fz65b-reg > .fz65b-reg__two {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =====================================================================
 * Google 按鈕（第 5 章目標：「或使用其他方式」分隔線 + 全寬按鈕）
 * 外觀對齊我們的外框按鈕：全寬、高 48px、圓角 4px、黑框白底，保留 Google 的 G 圖示。
 * ===================================================================== */
html body.fz65zj .fz65zj-nsl {
	width: 100%;
	max-width: 100%;
	margin: 16px 0 0;
	clear: both;
	box-sizing: border-box;
}
html body.fz65zj .fz65zj-nsl__div {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 16px;
	color: #737373;
	font-size: 13px;
	line-height: 1;
	text-align: center;
}
html body.fz65zj .fz65zj-nsl__div span { white-space: nowrap; }
html body.fz65zj .fz65zj-nsl__div::before,
html body.fz65zj .fz65zj-nsl__div::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #bdbdbd;
}

html body.fz65zj .fz65zj-nsl .nsl-container,
html body.fz65zj .fz65zj-nsl .nsl-container-buttons,
html body.fz65zj .fz65zj-nsl .nsl-container-buttons a[data-plugin="nsl"] {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box;
}
html body.fz65zj .fz65zj-nsl .nsl-button,
html body.fz65zj .fz65zj-nsl .nsl-button-default,
html body.fz65zj .fz65zj-nsl .nsl-button-google {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 48px;
	height: auto !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	box-sizing: border-box;
	background: #fff !important;
	color: #111 !important;
	border: 1.5px solid #111 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
}
/* 65zm：Nextend 給容器左右 6px 內距、svg 寬度 auto，被 24px 容器一壓只剩 12px，icon 變很小。改成固定 22px、無內距。 */
html body.fz65zj .fz65zj-nsl .nsl-button-svg-container {
	flex: 0 0 22px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: content-box;
}
html body.fz65zj .fz65zj-nsl .nsl-button-svg-container svg {
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	max-width: none !important;
	max-height: none !important;
	flex: 0 0 auto;
}
/* 65zm：Google、LINE 兩顆按鈕上下排列；LINE 也用白底黑框，與 Google 一致，icon 用 LINE 官方綠色。 */
html body.fz65zj .fz65zj-nsl__btn + .fz65zj-nsl__btn { margin-top: 10px; }
html body.fz65zj .fz65zj-nsl .nsl-button-line {
	background: #fff !important;
	color: #111 !important;
}
html body.fz65zj .fz65zj-nsl .nsl-button-label-container {
	margin: 0 0 0 10px !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2 !important;
	color: #111 !important;
	text-transform: none;
}
html body.fz65zj .fz65zj-nsl .nsl-button-label-container b,
html body.fz65zj .fz65zj-nsl .nsl-button-label-container strong {
	font-weight: 700;
}
/* 65zm：Google 的 svg 圖形四周自帶留白（實際只佔 18/24），放大到 26px，視覺上與 LINE icon 一樣大。 */
html body.fz65zj .fz65zj-nsl .nsl-button-google .nsl-button-svg-container,
html body.fz65zj .fz65zj-nsl .nsl-button-google .nsl-button-svg-container svg {
	flex-basis: 26px !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px;
}
html body.fz65zj .fz65zj-nsl .nsl-button-google .nsl-button-svg-container { margin: -2px !important; }
