:root {
    --bz-error-text-color: #FE7171;
    --bz-gold-color: #BCA570;
    --bz-gray-200: #E4E4E4;
    --bz-gray-300: #AEAEAE;
    --bz-black-color: black;
    --bz-white-color: white;
    --bz-orange-color: #FF6746;
}

body {
    font-family: 'PingFang TC', sans-serif;
    font-size: 14px;
    background: white;
    scroll-behavior: smooth;
    /*letter-spacing: 1.75px;*/
    font-style: normal;
    font-weight: 500;
}

/** initial bootstrap start **/
*, *::before, *::after {
    /*box-sizing: initial;*/
}

select, input {
    background-color: #ffffff;
}

.forbidden {
    color: var(--bz-error-text-color);
    max-width: 550px;
    margin: 10px;
}

select:disabled:read-only, input:disabled:read-only, input:read-only {
    background-color: #ECECEC;
}

select:focus, input:focus {
    outline: 0;
}

input[type=date],
input[type=time] {
    border: none;
    box-sizing: border-box;
    outline: 0;
    padding-left: .75rem;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    margin: 0;
}

input[type=date]::placeholder,
input[type=time]::placeholder {
    font-family: 'PingFang TC';
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
}

input[type=date]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator {
    background: none;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}


input[type=date]::-webkit-datetime-edit,
input[type=time]::-webkit-datetime-edit {
    text-align: center;
    width: 100%;
}

.btn {
    border-radius: 2px;
}

.row > * {
    flex-shrink: initial;
    width: initial;
    max-width: initial;
    padding-right: initial;
    padding-left: initial;
    margin-top: initial;
}

.row {
    flex-wrap: nowrap;
    margin-top: initial;
    margin-right: initial;
    margin-left: initial;
}

legend {
    float: initial;
    width: initial;
    padding: initial;
    margin-bottom: initial;
    font-size: initial;
    line-height: initial;
}

.modal-header {
    border-bottom: initial;
    flex-direction: column;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 3px;
}

.modal-body {
    /**
    * 20230713 又把 max-height: 60vh 打開了，不知道為什麼之前關閉的
    * 關閉的話 modal 會變全長，導致會員使用條款的 modal 變超長
    */
    /*max-height: 76vh;*/
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 1rem 2rem;
}

.modal-footer {
    border-top: initial;
}

.modal-footer .check-agreement {
    display: none;
}

.check-agreement label {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.check-agreement input {
    width: 24px;
    height: 24px;
    margin-right: 26px;
    border: 1px solid black;
}

input[type=checkbox]:checked {
    accent-color: #919191;
}

.modal-footer.active a {
    display: none;
}

.modal-footer.active .check-agreement {
    display: flex;
    flex-direction: column;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

/** initial bootstrap end **/
a {
    text-decoration: none;
}

a:link, a:visited {
    color: #BCA570;
}

/* width */
::-webkit-scrollbar {
    width: 2px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #AEAEAE;
}

input::placeholder {
    color: #AEAEAE;
    font-size: 14px;
}

.login-container, .register-container {
    /*height: 100vh;*/
}

.login-container, .register-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 10vh;
}

.container {
    display: flex;
    width: 100%;
    border: 1px solid #AEAEAE;
    flex-direction: column;
    align-items: center;
    max-width: 440px;
    padding-right: initial;
    padding-left: initial;
}

.container .brand {
    display: flex;
    margin-top: 30px;
}

.brand .logo {
    background-image: url("./images/logo.png");
    background-size: 100%;
    width: 100px;
    height: 40px;
}

.container .title {
    font-size: 20px;
    display: flex;
    margin-top: 14px;
    text-align: center;
}

.navigation-tab {
    width: 370px;
    display: flex;
    margin-top: 22px;
}

.navigation-tab div {
    line-height: 20px;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.navigation-tab .phone, .navigation-tab .email {
    background: #E4E4E4;
    border-radius: 2px;
    padding: 3px 14px;
    color: #AFAFAF;
}

.navigation-tab .phone.active, .navigation-tab .email.active {
    background: #BCA570;
    color: white;
}

.navigation-tab .phone {
    margin: 0 8px 0 0;
}

.navigation-tab .email {
    margin: 0 0 0 8px;
}

.navigation-tab .phone:hover, .navigation-tab .email:hover {
    color: white;
}

.navigation-content {
    width: 370px;
    background: white;
    z-index: 2;
}

.navigation-content .phone, .navigation-content .email {
    display: none;
    flex-direction: column;
}

.navigation-content .phone.active, .navigation-content .email.active {
    display: flex;
    position: relative;
}

.error {
    display: none;
    margin: auto 0 auto auto;
    color: #FE7171;
}

.error.active {
    display: block;
}

.row {
    width: 100%;
    border: 1px solid #AEAEAE;
    border-radius: 2px;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.row:has(input[type="tel"]:focus), .row:has(input[type="password"]:focus), .row:has(input[type="text"]:focus), .row:has(input[type="email"]:focus) {
    border: 2px solid #BCA570;
}

.label {
    display: flex;
    color: #333;
    margin-top: 24px;
    width: 100%;
}

.register-container .label {
    /*margin-top: 12px;*/
}

.navigation-content .phone .account div:nth-child(2) {
    color: #AEAEAE;
    margin: 0 10px 0 4px;
}

.navigation-content .phone .account .code-select {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.navigation-content .phone .account .code-select .code {
    letter-spacing: 1.75px;
    margin-left: 18px;
    white-space: nowrap;
}

.navigation-content .input {
    width: 100%;
    padding: 0 16px;
    position: relative;
}

.navigation-content .account .input {
    /*padding: 0 16px 0 0;*/
}

.second-wrap {
    margin-right: auto;
    color: #AEAEAE;
}

.second-wrap .second {
    color: #FE7171;
}

.second-wrap .resend, .second-wrap .countdown {
    display: none;
}

.second-wrap .resend.active, .second-wrap .countdown.active {
    display: block;
}

.navigation-content .email .account .input {
    padding: 0 16px;
}

.navigation-content .phone .account input, .navigation-content .email .account input, .navigation-content .phone .password input, .navigation-content .email .password input {
    width: 100%;
    border: 0;
    height: 55px;
    padding-right: 16px;
}

.select-dropdown {
    display: none;
    max-width: 370px;
    max-height: 408px;
    overflow: hidden;
    top: 74px;
    position: absolute;
    left: 0;
    right: 0;
    border: 1px solid #AEAEAE;
    border-radius: 2px;
    background: white;
    z-index: 999;
}

.select-dropdown .dropdown {
    overflow-y: scroll;
    height: 357px;
}

.dropdown .option.active {
    display: flex;
}

.dropdown .option {
    height: 50px;
    align-items: center;
    justify-content: flex-start;
    margin: 0 18px;
    border-bottom: 1px solid #DBDBDB;
    cursor: pointer;
    display: none;
}

.dropdown .option:hover {
    background-color: #F3F3F3;
}

.dropdown .option .country-code {
    margin-left: auto;
}

.dropdown .option .radio {
    width: 26px;
    height: 19px;
    background: #D9D9D9;
    border-radius: 1px;
    margin-right: 18px;
}

.select-dropdown .search {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 18px;
}

.select-dropdown .search input {
    padding: 15px 24px 15px 43px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #aeaeae;
    color: #333;
}

.button {
    margin-top: 18px;
    border: 0;
}

.button button {
    width: 100%;
    height: 55px;
    background: #BCA570;
    border-radius: 2px;
    border: 0;
    color: white;
    font-family: 'PingFang TC', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 1.75px;
}

.button button:hover {
    background: #D7C6A1;
}

.button button:disabled {
    background: #D7D7D7;
}

.row.forget {
    height: 40px;
    border: initial;
    display: flex;
    justify-content: flex-end;
    letter-spacing: 1.75px;
}

.row.forget a, .row.forget a:visited {
    color: #AEAEAE;
}

.row.forget a:hover {
    color: #333333;
}

.row.or {
    border: initial;
    height: initial;
    margin: 1rem 0;
}

.register-container .row.or fieldset {
    margin-top: 3px;
}

.agreement {
    margin-top: 18px;
    border: 0;
}

.agreement a, #agreement-warning a {
    color: #000;
    text-decoration: underline;
}

.agreement label {
    font-weight: 400;
    display: flex;
}

input[name=taiwan_id] {
    text-transform: uppercase;
}

.agreement input {
    width: 18px;
    height: 18px;
    margin-right: 15px;
}

.other {
    margin-bottom: 32px;
}

#agreement-warning .modal-header, #esun-warning .modal-header, .breeze-modal .modal-header {
    color: #FE7171;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#mobile-authorize .modal-body, #agreement-warning .modal-body, #esun-warning .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-authorize .modal-footer, #agreement-warning .modal-footer, #esun-warning .modal-footer, .breeze-modal .modal-footer {
    border-top: initial;
    max-width: 500px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

#agreement-warning .modal-footer button, .breeze-modal .modal-footer button, #esun-warning .modal-footer button, #esun-warning .modal-footer a, #mobile-authorize .modal-footer button, .breeze-modal .modal-footer a {
    padding: 12px 16px;
    flex-shrink: 1;
    flex-basis: 50%;
}

#esun-warning .modal-footer a, .breeze-modal .modal-footer a {
    background: black;
    color: white;
}

#esun-warning .modal-footer a:hover, #esun-warning .modal-footer a:active, .breeze-modal .modal-footer a:active, .breeze-modal .modal-footer a:hover {
    background: #7B7B7B;
}

#mobile-authorize .modal-footer {
}

#setup-password .modal-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#setup-password .modal-body .input {
    width: 100%;
    padding: 0 16px;
    position: relative;
}

#setup-password .modal-body input {
    width: 100%;
    border: 0;
    height: 55px;
    padding-right: 16px;
}

#mobile-authorize .modal-body {
    flex-direction: column;
}

#mobile-authorize .modal-body label {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#mobile-authorize .modal-body label > span {
    display: flex;
    justify-content: space-between;
}

#mobile-authorize .modal-body label input {
    height: 55px;
    border: 1px solid #AEAEAE;
    border-radius: 2px;
    padding: 0 18px;
}

#mobile-authorize .modal-body a {
    margin-right: auto;
    margin-top: 16px;
}

#fill-info-modal .row {
    border: initial;
}

#fill-info-modal input, #fill-info-modal select {
    max-width: 370px;
    height: 50px;
    border: 1px solid #AEAEAE;
    padding: 0 18px;
    border-radius: 2px;
}

#fill-info-modal .btn-group {
    flex-shrink: 1;
}

#fill-info-modal .btn-group button {
    height: 50px;
    border: 0;
    flex-shrink: 1;
    flex-basis: 50%;
}

#fill-info-modal .btn-group button:nth-child(1) {
    margin-right: 6px;
}

#fill-info-modal .btn-group button:nth-child(2) {
    margin-left: 6px;
}

#fill-info-modal .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
}

#fill-info-modal .row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

#fill-info-modal label {
    display: flex;
}

#fill-info-modal label.active {
    display: none;
}

#fill-info-modal label:has(.error-message.active) input, #fill-info-modal label:has(.error-message.active) select {
    border: 1px solid #FE7171;
}

#prefer-branches-modal .row {
    width: 100%;
    height: 55px;
    min-height: 45px;
    cursor: pointer;
}

#prefer-branches-modal .row label {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
}

#prefer-branches-modal .row input {
    width: 20px;
    height: 20px;
    border: 1px solid #AEAEAE;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

#prefer-branches-modal .row input:checked::after {
    content: '✓';
    color: #AEAEAE;
    width: 18px;
    height: 18px;
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#prefer-branches-modal button:active {
    border: 0;
    color: initial;
}

.btn.btn-cancel {

}

.btn.btn-cancel:hover {
    background-color: #F6F6F6;
}

.btn.btn-go {
    color: white;
    background: #333333;
    border-radius: 2px;
}

.btn.btn-go:hover, .btn.btn-go:active {
    background: #7B7B7B;
}

.row.or fieldset {
    width: 100%;
    border: 0;
    border-top: 1px solid #AEAEAE;
    color: #aeaeaa;
}

.row.or fieldset legend {
    text-align: center;
    padding: 0 12px;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #C9C9C9;
    max-width: 370px;
    width: 100%;
}

footer .first, footer .login {
    text-align: center;
    border-radius: 2px;
    /*padding: 8px 10px 22px 10px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .first .ubot, footer .login .breeze {
    margin-bottom: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .first:hover {
    background-color: #F8F8F8;
}

footer .other {
    display: flex;
    width: 100%;
    justify-content: space-around;
    border: 0;
    margin-top: 20px;
}

footer .register {
    border: 0;
    width: initial;
    margin-bottom: 32px;
}

footer .register:hover {
    background-color: #F8F8F8;
}

.register-submit {
    display: none;
}

/* 註冊頁*/

.rule {
    color: #AEAEAE;
    margin-left: 4px;
}

.rule li {
    margin-left: -18px;
}

.rule li.active {
    color: #BCA570;
    display: flex;
    margin-left: -42px;

}

.rule li.active:before {
    content: '';
    display: inline-block;
    height: 24px;
    width: 24px;
    background-image: url(images/ok.png);
    background-size: 100%;
}

.label:has(.error.active) + .row.password {
    border: 2px solid #FE7171;
    border-radius: 2px;
}

.language-desktop {
    display: flex;
    margin: 16px;
    color: #AFAFAF;
}

.language-desktop a {
    color: #aeaeae;
}

.language-desktop .chinese.active a, .language-desktop .english.active a {
    color: #333;
}

.language-desktop .separated {
}

.language-desktop .english {
}

.language-mobile {
    position: relative;
    display: none;
}

.language .current {
    display: flex;
    align-items: center;
}

.language-mobile .select {
    position: absolute;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    top: -104px;
    left: -120px;
    background: white;
    display: none;
}

.language-mobile .select div {
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-mobile .select div a {
    color: #333333;
    font-weight: 300;
    display: block;
    width: 100%;
    line-height: 50px;
    text-align: center;
}

.language-mobile .select div.active {
    background-color: #BCA570;
}

.language-mobile .select div:hover {
    background-color: #F4F4F4;
}

#agreement-modal .modal-footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

a.go-bottom {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333333;
}

a.go-bottom:hover {
    color: #9D9D9D;
}

/** icon **/
.icon {
    background-image: url("images/icons.png");
    background-size: 660px;
    width: 26px;
    height: 26px;
    display: block;
    background-repeat: no-repeat;
}

.icon-dropdown {
    background-position: -2px -16px;
}

.icon-shield {
    background-position: -543px -16px;
}

.icon-eye {
    position: absolute;
    right: 22px;
    top: 14px;
    background-position: -102px -18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.icon-eye:hover {
    background-position: -102px -76px;
    width: 30px;
    height: 30px;
}

.icon-eye.active {
    background-position: -160px -18px;
}

.icon-eye:hover.active {
    background-position: -160px -76px;
}

.navigation-content .phone .account .code-select:hover .icon-dropdown {
    background-position: -2px -74px;
}

.icon-search {
    position: absolute;
    background-image: url(images/search.png);
    background-size: 100%;
    left: 0;
    top: 14px;
    width: 20px;
    height: 20px;
}

.icon-ubot {
    cursor: pointer;
    background-image: url('images/bank.png');
    display: block;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-size: 100%;
}

.icon-breeze {
    cursor: pointer;
    background-image: url(images/breeze.png);
    display: block;
    width: 30px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: 100%;
}

.icon-ubot:hover, .icon-breeze:hover {
    background-color: #EEEEEE;
}

.icon-read {
    background-position: -480px -11px;
    width: 34px;
    height: 34px;
    padding-bottom: 12px;
}

.icon-warning {
    background-position: -632px -15px;
    margin-right: 10px;
}

a.go-bottom:hover .icon-read {
    background-position: -480px -69px;
}

/* component*/
.text-gray {
    color: #AEAEAE;
}

.btn-confirm, .btn-confirm:hover {
    border: 1px solid #333333;
    width: 250px;
    height: 45px;
    border-radius: 0;
}

.check-agreement .btn-confirm:active {
    background-color: #333333;
    border: 1px solid #333333;
    color: white;
}

.btn.btn-confirm:disabled {
    border: 1px solid #c1c1c1;
}

/***/

.progress {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    z-index: 999999999;
    position: fixed;
    background: transparent;
    top: 0;
    flex-direction: column;
    border-radius: 0;
}

.progress .overlay {
    background: #000000b3;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.circles {
    display: flex
}

.circle {
    width: 14px;
    height: 14px;
    border-radius: 15px;
    background: #BCA570;
    animation: pulse 0.7s infinite linear;
    margin: 2px;
    transform: scale(0);
}

.circle:nth-child(1) {
    animation-delay: 0s;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
}

.circle-text {
    color: #BCA570;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.05em;
    z-index: 9;
}

@keyframes pulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

.del-progress-container {
    display: flex;
    justify-content: space-between;
    width: 370px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.del-progress-container .step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.delete-account .container {
    min-height: 700px;
}

.del-progress-container .split {
    color: var(--bz-gray-300);
    height: 1px;
    width: 70px;
}

.del-progress-container .step.one {
}

.del-progress-container .step.two {
}

.del-progress-container .step.three {
}

.del-progress-container .step .ball {
    width: 32px;
    height: 32px;
    background: var(--bz-gray-200);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 32px;
    color: var(--bz-gray-300);
    margin-bottom: 13px;
}

.del-progress-container .step .number {
}

.del-progress-container .step .text {
    color: var(--bz-gray-300);
    text-align: center;
}

.del-progress-container .step.active .ball {
    background: var(--bz-gold-color);
    color: var(--bz-white-color);
}

.del-progress-container .step.active .text {
    color: var(--bz-black-color);
}

.delete-account .complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 90px auto;
}

.delete-account .complete div {
    margin: 16px;
}

.verification-error {
    display: none;
}

.verification-error.active {
    display: block;
}

#breeze-close-view {
}

#delete-confirm-info .modal-footer, #delete-confirm-modal .modal-footer {
    display: flex;
}

#delete-confirm-info .modal-footer .btn, #delete-confirm-modal .modal-footer .btn {
    flex-grow: 1;
    width: 176px;
    height: 50px;
}

#delete-confirm-info .modal-footer .btn.btn-go, #delete-confirm-modal .modal-footer .btn.btn-go {
    background: var(--bz-orange-color);
}

#delete-confirm-info .modal-dialog, #delete-confirm-modal .modal-dialog {
    display: flex;
    height: 94%;
    align-items: center;
}

#delete-confirm-info .modal-dialog .modal-content, #delete-confirm-modal .modal-dialog .modal-content {
    max-height: 380px;
}

@media (max-width: 950px) {

}

@media (max-width: 900px) {

}

@media (max-width: 800px) {
}

@media (max-width: 576px) {
    .login-container, .register-container {
        height: initial;
        top: inherit;
    }

    .container {
        border: initial;
        max-width: initial;
    }

    .navigation-content, .navigation-tab, .del-progress-container {
        width: 90vw;
    }

    .language-desktop {
        display: none;
    }

    .language-mobile {
        display: block;
        z-index: 1;
    }

    #fill-info-modal input, #fill-info-modal select {
        max-width: initial;
    }
}

@media (min-width: 576px) {
    #fill-info-modal .row .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}