@charset "UTF-8";

:root {
	--c-font: #4e4a4a;
	--c-font-form: #0c0e1f;
	--c-primary: #26547c;
	--c-btn: white;
	--c-btn-sec: #0c0e1f;
	--c-btn-disabled: #aeafb4;
	--c-border: #d9d9d9;
	--c-border_2: #ececec; 
	--c-error: red;
	
	--bgc-header: #efefef;
	--bgc-primary: #26547c;
	--bgc-secondary: #eef7fd;
	--bgc-active: #26547c;
	--bgc-negative: #6c6c6c;
	--bgc-disabled: #d7d8da;
	--bgc-radio: #135d83;
	--bgc-opt-disabled: #fafafa;

	--h-header: 50px;
	--h-footer: 54px;
	--h-button: 48px;

	--gap-size: 10px;
}

html {
	height: 100%;
	width: 100%;
	background-color: lightgray;
    overscroll-behavior-y: none;
    touch-action: none;
}

body {
	height: 100%;
	width: 100%;
	max-width: 440px;
	margin: auto;
	background-color: white;
	color: var(--c-font);
	padding-top: var(--h-header);
	padding-bottom: var(--h-footer);
	position: relative;
}

button.btn {
	height: var(--h-button);
	line-height: 24px;
	padding: 0 12px;
	font-size: 16px;
	border-radius: calc(var(--h-button)/2);
}
button.btn.layout {
	display: none;
	opacity: 0 !important;
	cursor: default !important;
}

button.primary,
button.primary:hover:not(:disabled) {
	background-color: var(--bgc-primary);
	color: var(--c-btn);
	border: 2px solid transparent;
}
button.primary:active:not(:disabled) {
	background-color: var(--bgc-active);
	color: var(--c-btn);
}

button.negative,
button.negative:hover:not(:disabled) {
	background-color: var(--bgc-negative);
	color: var(--c-btn);
	border: 2px solid transparent;
}
button.negative:active:not(:disabled) {
	background-color: var(--bgc-negative);
	color: var(--c-btn);
}

button.secondary,
button.secondary:hover:not(:disabled) {
	background-color: var(--bgc-secondary);
	color: var(--c-btn-sec);
	border: 1px solid var(--bgc-primary);
}
button.secondary:active:not(:disabled) {
	color: var(--c-btn-sec);
	border: 1px solid var(--bgc-primary);
}

button.btn:disabled {
	cursor: not-allowed !important;
	opacity: 1 !important;
	background-color: var(--bgc-disabled) !important;
	color: var(--c-btn-disabled) !important;
	border: 2px solid transparent !important;
}
button.btn:disabled:hover {
	background-color: var(--bgc-disabled) !important;
	color: var(--c-btn-disabled) !important;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"] {
	height: 52px;
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	background-color: #eef0f0;
	border: none;
	color: var(--c-font-form);
	font-size: 16px;
	line-height: 24px;
}
input[type="date"],
input[type="time"] {
	padding-block: 0 !important;
}
select {
	height: auto;
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: #eef0f0 url("/img/icons/chevron-down-df453cecca2f9f9adc467afad22309cc.png") no-repeat right 18px center;
	background-size: 20px;
	padding: 14px 16px;
	padding-right: 40px;
	border-radius: 12px;
	border: none;
	color: var(--c-font-form);
	font-size: 16px;
	line-height: 24px;
}
input[type="text"]:read-only,
input[type="date"]:read-only,
input[type="time"]:read-only,
input[type="number"]:read-only,
input[type="password"]:read-only,
select:disabled {
	background: #fafafa !important;
}


/* 自訂 radio button 樣式 */
.radio-box {
	width: 100%;
}
.radio-box input[type="radio"] {
	display: none;
}
label.radio {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	padding-left: 44px;
	border-radius: 12px;
	background-color: #eef0f0;
	color: var(--c-font-form);
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
	width: 100%;
	border: 1px solid transparent;
}
label.radio.has-icon {
	padding-left: 80px;
}
label.radio .radio-btn {
	width: 20px;
	height: 20px;
	box-shadow: 0 0 0 1px #d7d7da;
	border: 3px solid white;
	background-color: #fff;
	border-radius: 50%;
	position: absolute;
	left: 16px;
}
input[type="radio"]:checked + label.radio {	/* 勾選後 */
	background-color: var(--bgc-secondary);
	border: 1px solid var(--bgc-primary);
}
input[type="radio"]:checked + label.radio .radio-btn {	/* 勾選後 */
	background-color: var(--bgc-radio);
}
label.radio .radio-box-icon {
	width: 37px;
	height: 37px;
	position: absolute;
	left: 40px;
}
input[type="radio"]:disabled + label.radio {	/* 禁用後 */
	background-color: var(--bgc-opt-disabled);
}

/* 自訂 checkbox button 樣式 */
.checkbox-box {
	width: 100%;
}
.checkbox-box input[type="checkbox"] {
	display: none;
}
label.checkbox {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	padding-left: 44px;
	border-radius: 12px;
	background-color: #eef0f0;
	color: var(--c-font-form);
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
	width: 100%;
	border: 1px solid transparent;
}
label.checkbox.has-icon {
	padding-left: 80px;
}
label.checkbox .checkbox-btn {
	width: 20px;
	height: 20px;
	box-shadow: 0 0 0 1px #d7d7da;
	border: 3px solid white;
	background-color: #fff;
	border-radius: 5px;
	position: absolute;
	left: 16px;
}
input[type="checkbox"]:checked + label.checkbox {	/* 勾選後 */
	background-color: var(--bgc-secondary);
	border: 1px solid var(--bgc-primary);
}
input[type="checkbox"]:checked + label.checkbox .checkbox-btn {	/* 勾選後 */
	background-color: var(--bgc-radio);
}
label.checkbox .checkbox-box-icon {
	width: 37px;
	height: 37px;
	position: absolute;
	left: 40px;
}
input[type="checkbox"]:disabled + label.checkbox {	/* 禁用時 */
	background-color: var(--bgc-opt-disabled);
}

/* 條文勾選樣式 */
.check-term-box {
	width: 100%;
}
.check-term-box + .check-term-box {
	margin-top: 26px;
}
.check-term-box input[type="checkbox"] {
	display: none;
}
.check-term-box label {
	width: 100%;
	padding-left: 34px;
	color: var(--c-font-form);
	font-size: 16px;
	line-height: 24px;
	position: relative;
}
.check-term-box label::before {
	content: '';
	width: 20px;
	height: 20px;
	border-radius: 3px;
	border: 1px solid #0093c1;
	background-color: white;
	position: absolute;
	top: 2px;
	left: 2px;
}
.check-term-box input[type="checkbox"]:checked + label::before {
	background: #0093c1 url("/img/icons/checked-456f6b4510491135fa7c9304b145cdf7.png") no-repeat center center;
}
.check-term-box input[type="checkbox"] ~ .ipt-info {
	display: none;
}
.check-term-box input[type="checkbox"]:checked ~ .ipt-info {
	display: block;
}




/* 通用型 [S] */
.full-block-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
	width: 100%;
	height: 100%;
	background: white;
	padding: 0;
	position: relative;
}
.full-block-flex-center .inner-block {
	position: relative;
	text-align: center;
	width: 100%;
    max-height: 100%;
    overflow-y: auto;
}
.full-block-flex-center .inner-block .inner-box {
	margin: auto;
}
.fill-block {
	width: 100%;
	height: 100%;
	background: white;
	overflow-y: auto;
}
.gap-8px {
	gap: 8px;
}
/* 通用型 [E] */



/* header [S] */
header {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: var(--h-header);
	display: flex;
	align-items: center;
	gap: 6px;
	background-color: var(--bgc-header);
	padding: 0 10px;
}
header .img-logo {
	height: 32px;
	width: auto;
}
header .title {
	font-size: 16px;
	line-height: 20px;
	padding-left: 9px;
	border-left: 1px solid #231815;
	color: #231815;
	flex: 1 1 auto;
}
header .btns .btn-exit {
	border: none !important;
	background: url(/img/icons/exit-ab8500641b2a1d5bff836cfa5f1080c4.png) center no-repeat;
	width: 26px;
	height: 26px;
	object-fit: contain;
}
/* header [E] */



/* footer [S] */
footer {
	text-align: center;
	font-size: 15px;
	height: var(--h-footer);
	line-height: var(--h-footer);
	color: white;
	background-color: #1a3a57;
	letter-spacing: 1px;
	position: relative;
}
footer .web-ver {
	position: absolute;
	right: 2px;
	bottom: 2px;
	font-size: 12px;
	line-height: 1.5;
	color: white;
}
/* footer [E] */




/* 同意書 [S] */
.consent-outer-block {
    background-color: #c5c5c5;
    width: 100%;
    height: 100%;
    padding: 28px;
}
.consent-inner-block {
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    padding: 0px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}
.consent-inner-block .consent-container {
    overflow-y: hidden;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.consent-inner-block .title {
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    color: #0c0e1f;
    padding: 24px 5px 16px;
    text-align: left;
}
.consent-inner-block .content {
    width: 100%;
    padding: 16px;
    overflow-y: auto;
    background-color: #eef0f0;
    border-radius: 12px;
    flex: 1 1 auto;
}
.consent-inner-block .content pre {
    font-size: 16px;
    line-height: 24px;
    color: #494a57;
}
.consent-inner-block .content pre b {
    margin-bottom: 4px;
}
.consent-outer-block .consent-inner-block .btns {
    padding: 16px 5px;
    display: flex;
    justify-content: space-around;
}
.consent-outer-block .consent-inner-block .btns .btn {
    width: calc(50% - 6px);
}
.consent-inner-block .content .consent-table {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-top: 1px solid black;
    border-left: 1px solid black;
}
.consent-inner-block .content .consent-table .item {
	border-bottom: 1px solid black;
    border-right: 1px solid black;
    padding: 0 5px;
}
.consent-inner-block .content .consent-table .item:nth-child(-n+2) {
	text-align: center;
}
/* 同意書 [E] */


/* more-info [S] */
.more-info {
	width: 32px;
	height: 24px;
	background-image: url(/img/icons/info-cd999b53eb093ee7204f9e94db8d9136.png);
	background-repeat: no-repeat;
	background-position: center right;
	background-size: contain;
	position: absolute;
	cursor: pointer;
}
.more-info-list {
	margin-left: 0;
}
/* more-info [E] */

/* Weiten新增: 相機區域css
/* camera view [S]*/
.camera-area {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.camera-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.camera-shown {
    opacity: 1;
    visibility: visible;
}

#cameraCanvas {
    display: none;
}

#cameraView {
    width: 100%;
    height: auto;
    transform: scaleX(-1);
    display: block;
    object-fit: contain;
    background-color: green;
}
/* camera view [E]*/