@charset "UTF-8";

/* ===== Account Pages ===== */
/* Login / Register / My Account module layer */

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.account-page-wrap {
    padding: 50px 16px 48px;
    background: rgb(245, 245, 245);
    min-height: 60vh;
    box-sizing: border-box;
}

.account-page-wrap .container {
    max-width: 1180px;
    margin: 0 auto;
}

.account-box {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    padding: 5px 32px 40px;
}

/* 登入頁雙欄 — 對齊 PNS / MoneyBack 原站（1180 外層、左 512、右 419） */
.account-box--auth-split {
    max-width: 1180px;
    background: transparent;
    padding: 0;
}

.account-box--register {
    max-width: none;
    background: transparent;
    padding: 0;
}

/* 登入 / 註冊 / 忘記密碼 — 外層版心（移動端通欄，桌面居中） */
.page-content-wrap .account-page-wrap--auth-login,
.page-content-wrap .account-page-wrap--register,
.page-content-wrap .account-page-wrap--lost-password,
.page-content-wrap .account-page-wrap--reset-password,
.account-page-wrap--auth-login,
.account-page-wrap--register,
.account-page-wrap--lost-password,
.account-page-wrap--reset-password {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 登入 / 註冊：外層灰底由頁面承擔，內容卡為白底（與 login-stack 一致） */
.account-page-wrap--auth-login,
.account-page-wrap--register {
    background: rgb(245, 245, 245);
    min-height: 0;
}

.page-content-wrap > .container:has(.account-page-wrap--auth-login),
.page-content-wrap > .container:has(.account-page-wrap--register),
.page-content-wrap > .container:has(.account-page-wrap--lost-password),
.page-content-wrap > .container:has(.account-page-wrap--reset-password) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .page-content-wrap > .container:has(.account-page-wrap--auth-login),
    .page-content-wrap > .container:has(.account-page-wrap--lost-password),
    .page-content-wrap > .container:has(.account-page-wrap--reset-password) {
        align-items: center;
    }

    /* 註冊頁：stretch 避免 flex 子項被壓成內容寬（~410px） */
    .page-content-wrap > .container:has(.account-page-wrap--register) {
        align-items: stretch;
    }

    .page-content-wrap > .container:has(.account-page-wrap--register) > .woocommerce {
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.account-page-wrap--auth-login .account-box--auth-split,
.account-page-wrap--register .account-box--register,
.account-page-wrap--lost-password .account-lost-password-layout,
.account-page-wrap--reset-password .account-lost-password-layout {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.account-box--auth-split,
.account-box--register {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.account-register-layout {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    body.ulive-account-guest-register .account-page-wrap--register {
        width: 100%;
        max-width: 100%;
        padding: 50px 16px 48px;
        box-sizing: border-box;
    }

    /* 與忘記密碼外層一致：內容區最大 720px（非固定 518px） */
    .account-page-wrap--register .account-box--register,
    .account-page-wrap--register .account-register-layout,
    .account-page-wrap--register .account-register-stack {
        width: 100%;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .account-page-wrap--register .account-register-stack > .account-auth-card {
        width: 100%;
        max-width: none;
    }

    .account-page-wrap--register .account-form-title.account-form-title--auth,
    .account-page-wrap--register .account-register-login-title {
        font-size: 30px;
    }
}

.account-register-card {
    padding: 32px 36px 36px;
}

.account-register-card .woocommerce-error,
.account-register-card .woocommerce-notices-wrapper ul.woocommerce-error {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.account-register-card .woocommerce-error li {
    padding: 0;
    margin: 0 0 6px;
    color: #e53935;
    font-size: 13px;
    line-height: 1.4;
}

.account-register-card .woocommerce-error li::before {
    display: none;
}

.account-register-desc {
    margin: -12px 0 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.account-register-card .form-checkbox-group--register {
    margin: 20px 0 24px;
    gap: 14px;
}

.account-register-card .form-checkbox--register {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgb(62, 62, 62);
    font-size: 12px;
    line-height: 1.5;
}

.account-register-card .form-checkbox--register input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.account-register-card .form-checkbox--register input[type="checkbox"]:checked {
    border-color: rgb(63, 167, 243);
    background: rgb(63, 167, 243);
}

.account-register-card .form-checkbox--register input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.account-register-card .form-checkbox--register input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(63, 167, 243, 0.45);
    outline-offset: 2px;
}

.account-register-card .form-checkbox--register a {
    color: rgb(63, 167, 243);
    text-decoration: underline;
}

.account-register-card .form-checkbox--register a:hover {
    color: rgb(49, 80, 171);
}

.account-register-card .form-checkbox--register a:hover {
    text-decoration: underline;
}

.account-register-code-group {
    position: relative;
}

.account-register-code-group .form-input--auth {
    padding-right: 138px;
}

.account-register-code-timer {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f0f0f0;
    color: #888;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}

.account-register-code-timer[hidden],
.account-register-code-send[hidden],
.account-register-code-resend[hidden] {
    display: none !important;
}

.account-register-code-send,
.account-register-code-resend {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: rgb(63, 167, 243);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.account-register-code-resend .icon {
    font-size: 14px;
    color: #fff;
}

.account-register-code-send:hover,
.account-register-code-send:focus-visible,
.account-register-code-resend:hover,
.account-register-code-resend:focus-visible {
    background: rgb(47, 150, 226);
    outline: none;
}

.account-register-code-send:disabled,
.account-register-code-resend:disabled {
    opacity: 0.75;
    cursor: wait;
}

.account-register-code-hint {
    margin: -12px 0 16px;
    font-size: 13px;
    line-height: 1.45;
}

.account-register-code-hint.is-error {
    color: #c0392b;
}

.account-register-code-hint.is-success {
    color: #2e7d32;
}

.account-register-test-code {
    margin: -8px 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8e1;
    color: #6d4c00;
    font-size: 13px;
    line-height: 1.45;
}

.account-register-test-code[hidden] {
    display: none !important;
}

.account-register-card .btn-account-submit.btn-account-submit--register,
.account-register-card .btn-account-submit.btn-account-submit--yellow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    height: 50px;
    border: none;
    border-radius: 999px;
    background: rgb(255, 196, 0);
    color: rgb(62, 62, 62);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.account-register-card .btn-account-submit.btn-account-submit--register:hover,
.account-register-card .btn-account-submit.btn-account-submit--yellow:hover {
    background: #f1b900;
    color: rgb(62, 62, 62);
}

.account-register-card .account-divider--login {
    margin: 20px 0 8px;
}

.account-switch.account-switch--register {
    padding: 0;
    margin: 0;
    border-top: none;
    text-align: left;
}

.account-register-login-title,
.account-switch--register .account-register-login-title {
    font-size: 24px;
    font-weight: 700;
    color: #272d36;
    margin: 0 0 8px;
    line-height: 1.3;
}

.account-switch--register .account-switch-sub {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    margin-bottom: 16px !important;
}

.account-register-login-card .btn-account-register.btn-account-register--blue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 224px;
    max-width: 100%;
    height: 50px;
    margin: 4px auto 0;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    box-sizing: border-box;
}

.account-switch--register-back {
    padding-top: 20px;
    margin-top: 8px;
    text-align: center;
}

#register-step2-wrap .form-group--auth.has-error .form-input--auth {
    border-color: #e53935;
}

#register-form-wrap .form-group--auth.has-error .form-input--auth,
#register-form-wrap .form-group--auth.has-error .account-phone-number {
    border-color: #e53935;
}

#register-step2-wrap .form-group--auth.has-error .account-auth-floating-label {
    color: #e53935;
}

#register-form-wrap .form-group--auth.has-error .account-auth-floating-label {
    color: #e53935;
}

.account-register-card#register-step2-wrap .form-group--auth,
.account-register-card#register-form-wrap .form-group--auth,
.account-register-card .form-group--auth {
    padding-top: 0;
    margin-bottom: 16px;
}

.account-register-card#register-step2-wrap .form-group--auth.has-value .account-auth-floating-label,
.account-register-card#register-form-wrap .form-group--auth.has-value .account-auth-floating-label,
.account-register-card#register-step2-wrap .form-group--auth:focus-within .account-auth-floating-label,
.account-register-card#register-form-wrap .form-group--auth:focus-within .account-auth-floating-label {
    opacity: 1;
    transform: translateY(0);
}

.account-register-card#register-step2-wrap .form-group--auth.has-value .form-input--auth,
.account-register-card#register-step2-wrap .form-group--auth:focus-within .form-input--auth {
    padding-top: 21px;
    padding-bottom: 4px;
}

.account-auth-layout {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.account-login-column {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {
    .account-login-column {
        flex: 0 0 480px;
        width: 480px;
        max-width: 480px;
    }
}

.account-login-stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.account-auth-card {
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px 36px 28px;
}

.account-login-stack .account-login-card {
    flex: 1 1 auto;
    padding: 28px 32px 20px;
    border-radius: 0;
    box-shadow: none;
}

/* 註冊頁：與登入 stack 同款白卡（全斷點白底 + 圓角陰影） */
.account-register-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.account-register-stack > .account-auth-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.account-register-stack > .account-register-card {
    padding: 28px 32px 32px;
}

.account-register-stack > .account-register-login-card {
    padding: 24px 32px 28px;
}

/* 登入卡片内 WooCommerce 错误提示：无大框，紧凑红色小字 */
.account-login-card .woocommerce-error,
.account-login-card .woocommerce-notices-wrapper ul.woocommerce-error {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.account-login-card .woocommerce-error li {
    padding: 0;
    margin: 0 0 6px;
    color: #e53935;
    font-size: 13px;
    line-height: 1.4;
}

.account-login-card .woocommerce-error li::before {
    display: none;
}

.account-auth-card .form-group--auth {
    position: relative;
    margin-bottom: 16px;
}

.account-auth-card .form-input--auth {
    height: 50px;
    padding: 14px 44px 6px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

.account-auth-card .form-input--auth:focus {
    border-color: #3793de;
    box-shadow: 0 0 0 1px rgba(55, 147, 222, 0.15);
    outline: none;
}

.account-auth-floating-label {
    position: absolute;
    top: 6px;
    left: 14px;
    z-index: 2;
    max-width: calc(100% - 58px);
    color: #3793de;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group--auth:focus-within .account-auth-floating-label,
.form-group--auth:has(.form-input--auth:not(:placeholder-shown)) .account-auth-floating-label {
    opacity: 1;
    transform: translateY(0);
}

.form-group--auth:focus-within .form-input--auth::placeholder,
.form-group--auth:has(.form-input--auth:not(:placeholder-shown)) .form-input--auth::placeholder {
    color: transparent;
}

.form-group--auth:focus-within .form-input--auth,
.form-group--auth:has(.form-input--auth:not(:placeholder-shown)) .form-input--auth {
    padding-top: 21px;
    padding-bottom: 4px;
}

.password-wrap--auth .toggle-password {
    right: 10px;
    z-index: 2;
}

/* 註冊 / 忘記密碼 — 區號 + 手提電話並排（55px 等高、浮動標籤） */
.account-register-card .account-phone-row,
.account-lost-password-card .account-phone-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.account-register-card .account-phone-cc-dropdown,
.account-lost-password-card .account-phone-cc-dropdown {
    position: relative;
    flex: 0 0 108px;
    width: 108px;
    min-width: 108px;
    height: 55px;
}

.account-register-card .account-phone-cc-native,
.account-lost-password-card .account-phone-cc-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.account-register-card .account-phone-cc-toggle,
.account-lost-password-card .account-phone-cc-toggle {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 55px;
    margin: 0;
    padding: 22px 12px 8px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #999;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
}

.account-register-card .account-phone-cc-value,
.account-lost-password-card .account-phone-cc-value {
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
    line-height: 1.2;
}

.account-register-card .account-phone-cc-chevron,
.account-lost-password-card .account-phone-cc-chevron {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3fa7f3;
    font-size: 18px;
    line-height: 1;
}

.account-register-card .account-phone-cc-chevron:before,
.account-lost-password-card .account-phone-cc-chevron:before {
    font-family: "fontello" !important;
    font-size: 1.15em;
    line-height: 1;
    color: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.account-register-card .account-phone-cc-toggle:hover,
.account-register-card .account-phone-cc-toggle:focus-visible,
.account-lost-password-card .account-phone-cc-toggle:hover,
.account-lost-password-card .account-phone-cc-toggle:focus-visible {
    border-color: #3793de;
    outline: none;
    box-shadow: 0 0 0 1px rgba(55, 147, 222, 0.15);
}

.account-register-card .account-phone-cc-dropdown.is-open .account-phone-cc-toggle,
.account-lost-password-card .account-phone-cc-dropdown.is-open .account-phone-cc-toggle {
    border-radius: 8px;
    border-bottom-color: #d8d8d8;
    box-shadow: none;
}

.account-register-card .account-phone-number-wrap,
.account-lost-password-card .account-phone-number-wrap {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    height: 55px;
}

.account-register-card .form-group--phone-split .account-phone-number.form-input--auth,
.account-lost-password-card .form-group--phone-split .account-phone-number.form-input--auth {
    height: 55px;
    min-height: 55px;
    padding: 17px 14px 17px 14px;
    line-height: 1.2;
    box-sizing: border-box;
}

.account-register-card .form-group--phone-split:focus-within .account-phone-number.form-input--auth,
.account-register-card .form-group--phone-split:has(.account-phone-number:not(:placeholder-shown)) .account-phone-number.form-input--auth,
.account-lost-password-card .form-group--phone-split:focus-within .account-phone-number.form-input--auth,
.account-lost-password-card .form-group--phone-split:has(.account-phone-number:not(:placeholder-shown)) .account-phone-number.form-input--auth {
    padding-top: 22px;
    padding-bottom: 8px;
}

.account-register-card .form-group--phone-split .account-auth-floating-label--cc,
.account-register-card .form-group--phone-split:focus-within .account-auth-floating-label--cc,
.account-register-card .form-group--phone-split:has(.account-phone-number:not(:placeholder-shown)) .account-auth-floating-label,
.account-lost-password-card .form-group--phone-split .account-auth-floating-label--cc,
.account-lost-password-card .form-group--phone-split:focus-within .account-auth-floating-label--cc,
.account-lost-password-card .form-group--phone-split:has(.account-phone-number:not(:placeholder-shown)) .account-auth-floating-label {
    opacity: 1;
    transform: translateY(0);
}

.account-register-card .form-group--phone-split .account-auth-floating-label--cc,
.account-lost-password-card .form-group--phone-split .account-auth-floating-label--cc {
    top: 8px;
    left: 12px;
}

.account-register-card .account-phone-cc-menu,
.account-lost-password-card .account-phone-cc-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.account-register-card .account-phone-cc-option,
.account-lost-password-card .account-phone-cc-option {
    padding: 10px 12px;
    cursor: pointer;
}

.account-register-card .account-phone-cc-option:hover,
.account-register-card .account-phone-cc-option.is-selected,
.account-lost-password-card .account-phone-cc-option:hover,
.account-lost-password-card .account-phone-cc-option.is-selected {
    background: #f5f8ff;
}

.account-register-card .form-group--phone-split .account-phone-number-wrap .account-auth-floating-label,
.account-lost-password-card .form-group--phone-split .account-phone-number-wrap .account-auth-floating-label {
    top: 8px;
    left: 14px;
}

.account-register-card .form-group--phone-split .account-phone-cc-dropdown.has-error .account-phone-cc-toggle,
.account-register-card .form-group--phone-split .account-phone-number.has-error,
.account-lost-password-card .form-group--phone-split .account-phone-cc-dropdown.has-error .account-phone-cc-toggle,
.account-lost-password-card .form-group--phone-split .account-phone-number.has-error {
    border-color: #e53935;
}

/* 重設密碼：僅在輸入框行內定位眼睛；強度提示在 form-group 下方 */
.account-reset-password-form .password-wrap__field {
    position: relative;
}

.account-reset-password-form .password-wrap__field .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 3;
}

.account-reset-password-form .show-password-input {
    display: none !important;
}

.account-reset-password-form .woocommerce-password-strength,
.account-reset-password-form .woocommerce-password-hint {
    display: none !important;
}

.account-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
}

.account-login-options .form-checkbox--remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgb(62, 62, 62);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.account-login-options .form-checkbox--remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

.account-login-options .form-checkbox--remember input[type="checkbox"]:checked {
    background-color: rgb(63, 167, 243);
    border-color: rgb(63, 167, 243);
}

.account-login-options .form-checkbox--remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.account-login-options .form-checkbox--remember input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(63, 167, 243, 0.45);
    outline-offset: 2px;
}

.account-login-options .forgot-password--inline {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: rgb(63, 167, 243);
    text-align: right;
    text-decoration: underline;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.account-auth-form .btn-account-submit.btn-account-submit--yellow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    margin: 30px auto 0;
    border: none;
    border-radius: 999px;
    background: rgb(255, 196, 0);
    color: rgb(62, 62, 62);
    font-weight: 500;
}

.btn-account-submit--yellow {
    margin-top: 0;
    height: 50px;
    border: none;
    border-radius: 999px;
    background: rgb(255, 196, 0);
    color: rgb(62, 62, 62);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.btn-account-submit--yellow:hover {
    background: #f1b900;
    color: rgb(62, 62, 62);
}

.account-login-app-note {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 70px;
    margin: 0;
    padding: 14px 10px;
    border-radius: 0;
    background: #e8f4fc;
    box-sizing: border-box;
}

.account-login-app-note-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.account-login-app-note-icon-img {
    display: block;
    width: auto;
    height: 56px;
    max-width: 72px;
    object-fit: contain;
}

.account-login-app-note-icon-fallback {
    display: block;
    flex-shrink: 0;
}

.account-login-app-note-text {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(62, 62, 62);
}

.account-login-app-note-brand {
    display: inline;
    color: rgb(63, 167, 243);
    font-size: 16px;
    font-weight: 700;
}

.account-register-promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 32px 26px 0;
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .account-register-promo-card {
        flex: 0 0 480px;
        width: 480px;
        max-width: 480px;
    }
}

.account-promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.account-promo-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #272d36;
    line-height: 1.35;
    white-space: nowrap;
}

.account-promo-logo {
    flex: 0 0 auto;
    max-width: 46%;
    text-align: right;
}

.account-promo-logo img {
    display: block;
    max-width: 140px;
    max-height: 44px;
    width: auto;
    height: auto;
    margin-left: auto;
    object-fit: contain;
}

.account-promo-logo-text {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: rgb(49, 80, 171);
    white-space: nowrap;
}

.account-promo-desc {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: #444;
}

.account-promo-benefits {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.account-promo-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    color: #333;
}

.account-promo-benefits li + li {
    margin-top: 1em;
}

.account-promo-benefit-icon {
    font-size: 20px;
    line-height: 1;
}

.account-promo-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    padding-bottom: 0;
}

.account-register-promo-card .btn-account-register--blue,
.btn-account-register.btn-account-register--blue {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 224px;
    height: 50px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background: rgb(49, 80, 171);
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
    margin-bottom: 0;
}

.account-register-promo-card .btn-account-register--blue:hover,
.btn-account-register.btn-account-register--blue:hover {
    background: rgb(38, 62, 145);
    color: #fff !important;
    filter: none;
}

.account-register-promo-card .account-promo-illus {
    flex: 1 1 auto;
    position: static;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: auto;
    pointer-events: none;
    overflow: hidden;
}

.account-promo-illus-blob {
    display: none;
}

.account-promo-illus img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 0 0 auto;
    object-fit: contain;
    position: static;
}

/* 忘記密碼 — 對齊 PNS 原站 */
.page-content-wrap .account-page-wrap--lost-password,
.account-page-wrap--lost-password {
    width: 100%;
    box-sizing: border-box;
}


.account-lost-password-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .account-lost-password-layout {
        align-items: center;
    }
}

.account-lost-password-card {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    overflow: hidden;
}

.account-lost-password-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 32px 28px 28px;
    height: auto;
    overflow: visible;
}

/* 忘記密碼：提示只輸出一次（避免 hidden 步驟先 wc_print_notices 清空 session） */
.account-lost-password-card .account-lost-notices {
    margin: 0 0 14px;
}

.account-lost-password-card .account-lost-notices:empty {
    display: none;
    margin: 0;
}

.account-lost-password-card .woocommerce-error,
.account-lost-password-card .woocommerce-notices-wrapper ul.woocommerce-error,
.account-lost-password-card .woocommerce-info,
.account-lost-password-card .woocommerce-notices-wrapper ul.woocommerce-info {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.account-lost-password-card .woocommerce-error li,
.account-lost-password-card .woocommerce-info li {
    padding: 0;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.45;
}

.account-lost-password-card .woocommerce-error li {
    color: #e53935;
}

.account-lost-password-card .woocommerce-info li {
    color: #3793de;
}

.account-lost-test-code {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #e8f4fd;
    color: #1a6fb5;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.account-lost-password-card .woocommerce-error li::before,
.account-lost-password-card .woocommerce-info li::before {
    display: none;
}

/* 各步驟：非當前步 hidden 不占高度 */
.account-lost-password-main .account-lost-step[hidden] {
    display: none !important;
}

.account-lost-password-main .account-lost-step:not([hidden]) {
    display: block;
    width: 100%;
    padding-bottom: 16px;
    box-sizing: border-box;
}

.account-lost-intro {
    margin: -12px 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.account-lost-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.account-lost-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
    color: #333;
}

.account-lost-option input[type="radio"] {
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: rgb(49, 80, 171);
}

.account-lost-illus {
    flex: 0 0 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 12px 0 0;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.account-lost-illus img {
    display: block;
    max-width: 100%;
    height: auto;
}

.account-lost-back {
    display: inline-block;
    margin-top: 16px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgb(49, 80, 171);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.account-lost-footer-links {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

.account-lost-footer-links a {
    color: rgb(49, 80, 171);
    text-decoration: none;
}

.account-lost-footer-links a:hover {
    text-decoration: underline;
}

/* 電郵重設步驟：移動端通欄，桌面約 518px */
.account-lost-password-layout.is-step-email-layout,
.account-lost-password-layout:has(.account-lost-password-card.is-step-email) {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.account-lost-password-card.is-step-email {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    align-items: flex-start;
}

.account-lost-password-card.is-step-mobile {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .account-lost-password-layout.is-step-email-layout,
    .account-lost-password-layout:has(.account-lost-password-card.is-step-email) {
        max-width: 518px;
    }

    .account-lost-password-card.is-step-email {
        width: 518px;
    }

    .account-lost-password-card.is-step-mobile {
        width: 518px;
    }
}

.account-lost-password-card.is-step-email .account-lost-illus {
    display: none;
}

.account-lost-intro--email {
    margin-bottom: 24px;
    color: #444;
}

.account-lost-email-form .form-group--auth {
    margin-bottom: 24px;
}

.account-lost-email-form .btn-account-submit--yellow,
.account-lost-verify-form .btn-account-submit--yellow {
    width: 100%;
}

/* 覆蓋 .account-auth-form 的 margin:30px auto 0（會把 margin-bottom 清零）；底部留白用表單 padding */
.account-lost-sms-form.account-auth-form .btn-account-submit.btn-account-submit--yellow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
}

.account-lost-sms-form.account-auth-form {
    padding-bottom: 20px;
    box-sizing: border-box;
}

.account-lost-sms-form .form-group--phone-split {
    margin-bottom: 24px;
}

.account-lost-intro--mobile {
    margin-bottom: 20px;
}

/* 手機重設密碼說明步：返回登入按鈕與表單主按鈕同尺寸 */
.account-lost-step--mobile .btn-account-submit--back-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 50px;
    margin: 24px 0 0;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background: rgb(255, 196, 0);
    color: rgb(62, 62, 62);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
}

.account-lost-step--mobile .btn-account-submit--back-login:hover {
    background: #f1b900;
    color: rgb(62, 62, 62);
    text-decoration: none;
}


.account-lost-verify-phone {
    color: rgb(63, 167, 243);
    font-weight: 500;
    word-break: break-all;
}

.account-lost-sms-rate-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #888;
}

.account-lost-inline-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecea;
    color: #e53935;
    font-size: 14px;
    line-height: 1.45;
}

.account-register-inline-error {
    margin: -6px 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecea;
    color: #e53935;
    font-size: 14px;
    line-height: 1.45;
}

.account-register-inline-error[hidden],
.account-register-inline-error:empty {
    display: none !important;
    margin: 0;
    padding: 0;
}

.form-checkbox-group--register + .account-register-inline-error {
    margin-top: 4px;
}

.account-lost-sms-form.is-submitting {
    position: relative;
    pointer-events: none;
}

.account-lost-sms-form.is-submitting .form-group--phone-split {
    opacity: 0.55;
}

.account-lost-sms-form.is-submitting::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 10px;
    background: rgba(45, 45, 45, 0.88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E%3Ccircle cx='6' cy='6' r='4' fill='%233fa7f3'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1s' repeatCount='indefinite' begin='0s'/%3E%3C/circle%3E%3Ccircle cx='18' cy='6' r='4' fill='%233fa7f3'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1s' repeatCount='indefinite' begin='0.2s'/%3E%3C/circle%3E%3Ccircle cx='30' cy='6' r='4' fill='%233fa7f3'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1s' repeatCount='indefinite' begin='0.4s'/%3E%3C/circle%3E%3C/svg%3E") center / 36px 12px no-repeat;
}

.account-lost-password-card.is-step-mobile .account-lost-illus,
.account-lost-password-card.is-step-verify .account-lost-illus {
    display: none;
}

.account-lost-password-layout.is-step-verify-layout,
.account-lost-password-layout:has(.account-lost-password-card.is-step-verify) {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.account-lost-password-layout:has(.account-lost-password-card.is-step-mobile) {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    .account-lost-password-layout:has(.account-lost-password-card.is-step-mobile) {
        max-width: 518px;
    }
}

.account-lost-password-card.is-step-verify {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .account-lost-password-layout.is-step-verify-layout,
    .account-lost-password-layout:has(.account-lost-password-card.is-step-verify) {
        max-width: 518px;
    }

    .account-lost-password-card.is-step-verify {
        width: 518px;
    }
}

.account-lost-password-card.is-step-verify .account-lost-illus {
    display: none;
}

.account-lost-verify-sent {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(62, 62, 62);
}

.account-lost-verify-email {
    color: rgb(63, 167, 243);
    font-weight: 500;
    word-break: break-all;
}

.account-lost-intro--verify {
    margin-bottom: 20px;
}

.account-lost-code-group {
    position: relative;
}

.account-lost-code-group .form-input--auth {
    padding-right: 138px;
}

.account-lost-code-timer {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f0f0f0;
    color: #888;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}

.account-lost-code-timer[hidden] {
    display: none !important;
}

.account-lost-code-resend {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: rgb(63, 167, 243);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.account-lost-code-resend .icon {
    font-size: 14px;
    color: #fff;
}

.account-lost-code-resend[hidden] {
    display: none !important;
}

.account-lost-code-resend:hover,
.account-lost-code-resend:focus-visible {
    background: rgb(47, 150, 226);
    outline: none;
}

.account-lost-password-card .woocommerce-message,
.account-lost-password-card .woocommerce-notices-wrapper ul.woocommerce-message {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.account-lost-password-card .woocommerce-message li {
    padding: 0;
    margin: 0 0 6px;
    color: #2e7d32;
    font-size: 13px;
    line-height: 1.45;
}

.account-lost-password-card .woocommerce-message li::before {
    display: none;
}

.account-lost-verify-footnote {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
}

.account-lost-verify-footnote a {
    color: rgb(63, 167, 243);
    text-decoration: none;
}

.account-lost-verify-footnote a:hover {
    text-decoration: underline;
}

.account-lost-verify-submit--after-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 24px 0 0;
}

/* 重設密碼（驗證碼通過後） */
.account-page-wrap--reset-password .account-lost-password-layout.is-step-reset-layout {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.account-page-wrap--reset-password .account-lost-password-card.is-step-reset {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    .account-page-wrap--reset-password .account-lost-password-layout.is-step-reset-layout {
        max-width: 518px;
    }

    .account-page-wrap--reset-password .account-lost-password-card.is-step-reset {
        width: 518px;
    }
}

.account-reset-password-main {
    padding: 32px 32px 28px;
}

.account-lost-intro--reset {
    margin: -8px 0 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(62, 62, 62);
}

.account-reset-password-form .form-group--auth {
    margin-bottom: 16px;
}

.account-reset-password-form .btn-account-submit--reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
}

.account-reset-password-form .btn-account-submit--reset:disabled,
.account-reset-password-form .btn-account-submit--reset.disabled {
    background: #e0e0e0;
    color: #fff;
    cursor: not-allowed;
}

/* 重設密碼：自訂密碼要求與即時回饋（取代 WC 雙行提示） */
.account-password-feedback {
    margin-top: 8px;
}

.account-password-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

.account-password-checklist__item {
    color: #888;
}

.account-password-checklist__item.is-met {
    color: #2e7d32;
}

.account-password-checklist__item.is-unmet {
    color: #e65100;
}

.account-password-status {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.account-password-status.is-valid {
    color: #2e7d32;
}

.account-password-status.is-invalid {
    color: #e65100;
}

.account-password-match {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.account-password-match.is-valid {
    color: #2e7d32;
}

.account-password-match.is-invalid {
    color: #e53935;
}

.account-page-wrap--reset-password .woocommerce-ResetPassword {
    margin: 0;
}

.account-page-wrap--reset-password .woocommerce-error,
.account-page-wrap--reset-password .woocommerce-message,
.account-page-wrap--reset-password .woocommerce-info {
    margin-bottom: 16px;
}

.account-page-wrap--lost-password #altEmail_container,
.account-page-wrap--lost-password .altEmail_container,
.account-page-wrap--lost-password .wpa_hidden_field,
.account-page-wrap--reset-password #altEmail_container,
.account-page-wrap--reset-password .altEmail_container,
.account-page-wrap--reset-password .wpa_hidden_field {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
}

@media (max-width: 1024px) {
    .account-auth-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        min-height: 0;
        width: 100%;
        max-width: 100%;
    }

    .account-login-column,
    .account-register-promo-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .account-promo-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-promo-logo {
        max-width: 100%;
        text-align: left;
    }

    .account-promo-logo img {
        margin-left: 0;
    }

    /* 登入页推广区：移动端保持标题与右侧 Logo 同一行（勿用全局 column 叠放） */
    .account-page-wrap--auth-login .account-promo-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .account-page-wrap--auth-login .account-promo-title {
        flex: 0 1 auto;
    }

    .account-page-wrap--auth-login .account-promo-logo {
        flex: 0 0 auto;
        max-width: none;
        text-align: right;
    }

    .account-page-wrap--auth-login .account-promo-logo img {
        width: 92px;
        height: 36px;
        max-width: 92px;
        max-height: 36px;
        margin-left: auto;
        object-fit: contain;
    }

    .account-promo-footer {
        gap: 12px;
    }

    .btn-account-register--blue {
        width: 180px;
        margin-bottom: 0;
    }

    .account-lost-password-card {
        flex-direction: column;
    }

    .account-lost-illus {
        flex: none;
        padding: 0 16px 16px;
    }

    /* 登入 / 註冊 / 忘記密碼 / 重設密碼：移動端白卡通欄 */
    .page-content-wrap > .container:has(.account-page-wrap--auth-login),
    .page-content-wrap > .container:has(.account-page-wrap--register),
    .page-content-wrap > .container:has(.account-page-wrap--lost-password),
    .page-content-wrap > .container:has(.account-page-wrap--reset-password) {
        align-items: stretch;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .account-page-wrap--auth-login {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .account-page-wrap--register {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .account-page-wrap--register .account-register-stack {
        gap: 12px;
        background: transparent;
        overflow: visible;
    }

    .account-page-wrap--register .account-register-stack > .account-auth-card {
        background: #fff;
    }

    .account-page-wrap--register .account-register-stack .account-register-card {
        padding: 24px 20px 28px;
    }

    .account-page-wrap--register .account-register-stack .account-register-login-card {
        padding: 24px 20px 28px;
    }

    .account-page-wrap--register .account-form-title.account-form-title--auth {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .account-page-wrap--register .account-register-login-title {
        font-size: 24px;
    }

    .account-page-wrap--register .account-auth-form .btn-account-submit.btn-account-submit--yellow,
    .account-page-wrap--register .account-auth-form .btn-account-submit.btn-account-submit--register {
        width: 100%;
        max-width: none;
        margin-top: 16px;
    }

    /* 忘記密碼三步（選擇 / 電郵 / 驗證碼）：與登入頁一致 20px 上下、15px 左右 */
    .account-page-wrap--lost-password {
        padding: 20px 15px;
        min-height: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .account-page-wrap--lost-password .account-lost-password-layout {
        gap: 12px;
        max-width: 100%;
        width: 100%;
    }

    .account-page-wrap--lost-password .account-lost-password-card {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        overflow: visible;
        background: #fff;
        flex-shrink: 0;
    }

    .account-page-wrap--lost-password .account-lost-password-main {
        padding: 24px 20px 32px;
        flex-shrink: 0;
        height: auto;
        overflow: visible;
    }

    /* 移動端隱藏底部插畫，避免「選擇方式」步驟卡片內大片留白 */
    .account-page-wrap--lost-password .account-lost-illus {
        display: none;
    }

    .account-page-wrap--lost-password .account-lost-password-card.is-step-email,
    .account-page-wrap--lost-password .account-lost-password-card.is-step-verify,
    .account-page-wrap--lost-password .account-lost-password-card.is-step-mobile {
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .account-page-wrap--lost-password .account-lost-footer-links {
        margin: 0;
        padding: 0;
    }

    .account-page-wrap--lost-password .account-form-title.account-form-title--auth {
        font-size: 24px;
    }

    /* 重設密碼（同時帶 --lost-password + --reset-password）：與忘記密碼流一致 */
    .account-page-wrap--reset-password {
        padding: 20px 15px;
        min-height: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .account-page-wrap--reset-password .account-lost-password-layout.is-step-reset-layout {
        gap: 12px;
        max-width: 100%;
        width: 100%;
    }

    .account-page-wrap--reset-password .account-lost-password-card.is-step-reset {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        background: #fff;
    }

    .account-page-wrap--reset-password .account-reset-password-main,
    .account-page-wrap--reset-password .account-lost-password-card.is-step-reset .account-lost-password-main {
        padding: 24px 20px 28px;
    }

    .account-page-wrap--reset-password .account-lost-footer-links {
        margin: 0;
        padding: 0;
    }

    .account-page-wrap--reset-password .account-form-title.account-form-title--auth {
        font-size: 24px;
    }

    .account-page-wrap--auth-login .account-box--auth-split,
    .account-page-wrap--lost-password .account-lost-password-layout,
    .account-page-wrap--reset-password .account-lost-password-layout {
        max-width: 100%;
        width: 100%;
    }

    .account-page-wrap--register .account-box--register,
    .account-page-wrap--register .account-register-layout,
    .account-page-wrap--register .account-register-stack {
        max-width: 100%;
        width: 100%;
    }

    .account-box--auth-split {
        width: 100%;
        max-width: 100%;
    }

    /* 登入雙欄：移動端改單欄，兩卡分離留白 + 圓角 */
    .account-page-wrap--auth-login .account-auth-layout {
        max-width: 100%;
        width: 100%;
        gap: 12px;
    }

    .account-page-wrap--auth-login .account-login-column,
    .account-page-wrap--auth-login .account-register-promo-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .account-page-wrap--auth-login .account-login-stack {
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        width: 100%;
        background: #fff;
    }

    .account-page-wrap--auth-login .account-login-stack .account-login-card {
        padding: 24px 20px 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .account-page-wrap--auth-login .account-login-app-note {
        padding: 14px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .account-page-wrap--auth-login .account-register-promo-card.account-auth-card {
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 24px 20px 28px;
        overflow: hidden;
    }

    .account-page-wrap--auth-login .account-form-title.account-form-title--auth {
        font-size: 24px;
    }

    .account-page-wrap--auth-login .account-promo-title {
        font-size: 24px;
    }

    .account-page-wrap--auth-login .account-auth-form .btn-account-submit.btn-account-submit--yellow {
        width: 100%;
        max-width: none;
    }

    .account-register-layout,
    .account-lost-password-layout,
    .account-lost-password-layout.is-step-email-layout,
    .account-lost-password-layout:has(.account-lost-password-card.is-step-email),
    .account-lost-password-layout.is-step-verify-layout,
    .account-lost-password-layout:has(.account-lost-password-card.is-step-verify),
    .account-page-wrap--reset-password .account-lost-password-layout.is-step-reset-layout {
        align-items: stretch;
        max-width: 100%;
        width: 100%;
    }

    .account-register-card.account-auth-card,
    .account-register-login-card.account-auth-card {
        width: 100%;
        max-width: 100%;
    }

    .account-switch--register p {
        font-size: 20px;
    }

    /* 未登入帳戶頁：強制通欄（覆蓋 flex 收縮與固定寬度） */
    body.ulive-account-guest-auth .page-content-wrap > .container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.ulive-account-guest-auth .page-content-wrap .woocommerce {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.ulive-account-guest-auth .account-page-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    /* 登入頁：與屏幕上下 20px、左右 15px */
    body.ulive-account-guest-login .account-page-wrap,
    body.ulive-account-guest-login .account-page-wrap--auth-login {
        padding: 20px 15px !important;
    }

    body.ulive-account-guest-register .account-page-wrap,
    body.ulive-account-guest-register .account-page-wrap--register {
        padding: 20px 15px !important;
    }

    body.ulive-account-guest-lost-password .account-page-wrap,
    body.ulive-account-guest-lost-password .account-page-wrap--lost-password,
    body.ulive-account-guest-lost-password .account-page-wrap--reset-password {
        padding: 20px 15px !important;
        min-height: 0 !important;
    }

    body.ulive-account-guest-auth:not(.ulive-account-guest-login):not(.ulive-account-guest-lost-password):not(.ulive-account-guest-register) .account-page-wrap {
        padding: 0 0 24px !important;
    }

    body.ulive-account-guest-auth .account-box--auth-split,
    body.ulive-account-guest-auth .account-box--register,
    body.ulive-account-guest-auth .account-auth-layout,
    body.ulive-account-guest-auth .account-login-column,
    body.ulive-account-guest-auth .account-login-stack,
    body.ulive-account-guest-auth .account-register-promo-card,
    body.ulive-account-guest-auth .account-register-layout,
    body.ulive-account-guest-auth .account-register-stack,
    body.ulive-account-guest-auth .account-register-card,
    body.ulive-account-guest-auth .account-register-login-card,
    body.ulive-account-guest-auth .account-lost-password-layout,
    body.ulive-account-guest-auth .account-lost-password-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    body.ulive-account-guest-lost-password .account-lost-password-main {
        flex: 0 0 auto !important;
        height: auto !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .account-page-wrap--auth-login .account-login-stack .account-login-card {
        padding: 20px 16px 16px;
    }

    .account-page-wrap--auth-login .account-login-app-note {
        padding: 12px 10px;
    }

    .account-page-wrap--auth-login .account-register-promo-card.account-auth-card {
        padding: 20px 16px 24px;
    }

    .account-page-wrap--register .account-register-stack .account-register-card,
    .account-page-wrap--register .account-register-stack .account-register-login-card {
        padding: 20px 16px 24px;
    }

    .account-lost-password-card.is-step-email .account-lost-password-main,
    .account-lost-password-card.is-step-verify .account-lost-password-main,
    .account-lost-password-card.is-step-mobile .account-lost-password-main {
        padding: 20px 16px 28px;
    }

    .account-page-wrap--reset-password .account-reset-password-main {
        padding: 20px 16px 24px;
    }
}

.account-form-wrap {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.account-form-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: #272d36;
    margin-bottom: 50px;
}

.account-form-title.account-form-title--auth {
    margin-bottom: 27px;
    font-size: 28px;
    font-weight: 700;
}

.account-form-subtitle {
    color: #999;
    font-size: 13px;
    margin: -40px 0 28px;
    line-height: 1.6;
}

.account-form-desc {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 20px;
    margin-top: -10px;
}

.register-back-link {
    display: inline-block;
    color: #3793de;
    font-size: 14px;
    text-decoration: none;
    margin-top: 6px;
}

a.register-back-link:hover {
    color: rgb(38, 62, 145);
    text-decoration: underline;
}

/* Step 2 底部「返回上一步」居中 */
#register-step2-wrap .account-switch {
    text-align: center;
    padding-top: 20px;
}

.field-error {
    color: #e53935;
    font-size: 12px;
    margin: 6px 0 0;
    line-height: 1.4;
}

.form-input.has-error {
    border-color: #e53935;
}

/* Step 2 注册表单 floating label：焦点或输入有值时在输入框上方显示 label 文字 */
#register-step2-wrap .form-group {
    position: relative;
    padding-top: 14px;
    margin-bottom: 6px;
}

.floating-label {
    position: absolute;
    top: 0;
    left: 2px;
    font-size: 12px;
    line-height: 1.2;
    font-family: var(--font-primary);
    color: #999;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    margin: 0;
}

#register-step2-wrap .form-group:focus-within .floating-label,
#register-step2-wrap .form-group.has-value .floating-label {
    opacity: 1;
    transform: translateY(0);
}

/* 默认 label 灰色；仅当输入内容格式不合法时标红 */
#register-step2-wrap .floating-label {
    font-family: var(--font-primary);
    color: #999;
}

#register-step2-wrap .form-group.has-error .floating-label {
    color: #e53935;
}

/* Form fields */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #2C2A8E;
    margin-bottom: 4px;
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 8px 26px 8px 0;
    border: none;
    border-bottom: 0.8px solid #e2e8f0;
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-primary);
    color: #272d36;
    outline: none;
    transition: var(--transition);
    background: transparent;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #272d36;
    box-shadow: none;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--text-dark);
}

.forgot-password {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #3493fb;
    margin-top: 20px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #3493fb;
}

.account-login-options .forgot-password.forgot-password--inline {
    font-size: 14px;
    font-weight: 400;
    color: rgb(63, 167, 243);
    margin-top: 0;
    text-decoration: underline;
}

.account-login-options .forgot-password.forgot-password--inline:hover {
    color: rgb(63, 167, 243);
    text-decoration: underline;
}

/* Submit button */
.btn-account-submit {
    width: 100%;
    padding: 0 12px;
    height: 46px;
    background: #333;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: 0.8px solid #333;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 24px;
    letter-spacing: 0.5px;
}

.btn-account-submit:hover {
    background: #222;
}

.btn-account-submit.btn-account-submit--yellow {
    border: none;
    border-radius: 999px;
    background: rgb(255, 196, 0);
    color: rgb(62, 62, 62);
    font-weight: 500;
}

.btn-account-submit.btn-account-submit--yellow:hover {
    background: #f1b900;
    color: rgb(62, 62, 62);
}

.account-auth-form .btn-account-submit.btn-account-submit--yellow:hover {
    background: #f1b900;
    color: rgb(62, 62, 62);
}

/* Divider */
.account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: #333;
    font-size: 16px;
}

.account-divider::before,
.account-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Social login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-facebook-login {
    width: 36px;
    height: 36px;
    background: transparent;
    color: rgb(49, 80, 171);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}

.social-login--auth .btn-facebook-login svg {
    width: 32px;
    height: 32px;
}

.account-divider--login {
    margin: 14px 0 6px;
    font-size: 12px;
    color: #999;
}

.account-divider--login::before,
.account-divider--login::after {
    background: #e0e0e0;
}

.social-login--auth {
    margin-bottom: 0;
    justify-content: center;
    min-height: 40px;
}

.btn-facebook-login svg {
    width: 40px;
    height: 40px;
}

/* 覆蓋 pns-theme 全局 a:hover 的黃色，登入/註冊頁 Facebook 圖標懸停用深藍 */
a.btn-facebook-login:hover:not([disabled]),
button.btn-facebook-login:hover:not([disabled]) {
    color: rgb(38, 62, 145);
    opacity: 1;
}

.btn-facebook-login[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.ulive-fb-terms-hint {
    margin: 8px 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #e53935;
    text-align: center;
}

.account-register-card .form-checkbox--register.is-terms-required {
    color: #e53935;
}

.account-register-card .form-checkbox--register.is-terms-required input[type="checkbox"] {
    border-color: #e53935;
    outline: 2px solid rgba(229, 57, 53, 0.25);
    outline-offset: 1px;
}

/* Switch links */
.account-switch {
    text-align: left;
    padding-top: 40px;
    border-top: none;
    margin-top: 20px;
}

.account-switch.account-switch--register {
    padding: 0;
    margin: 0;
}

.account-switch p {
    font-size: 32px;
    font-weight: 700;
    color: #272d36;
    margin-bottom: 20px;
}

.account-switch-sub {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    margin-bottom: 14px !important;
}

.btn-account-register {
    display: block;
    width: 100%;
    padding: 0 12px;
    height: 46px;
    line-height: 44px;
    border: 0.8px solid #333;
    color: #333;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    box-sizing: border-box;
}

.btn-account-register:not(.btn-account-register--blue):hover {
    background: #333;
    color: #fff;
}

.btn-account-register.btn-account-register--blue {
    border: none;
    border-radius: 999px;
}

.btn-account-register.btn-account-register--blue:hover {
    background: rgb(38, 62, 145);
    color: #fff !important;
    filter: none;
}

.account-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.account-link:hover {
    text-decoration: underline;
}

.account-link-sep {
    color: var(--border-medium);
    margin: 0 10px;
}

/* Checkboxes */
.form-checkbox-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #333;
    width: 16px;
    height: 16px;
}

.form-checkbox a {
    color: #999;
    text-decoration: underline;
}

.required {
    color: var(--primary-color);
}

/* My Account logged-in layout */
.myaccount-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.myaccount-nav {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    align-self: start;
}

.myaccount-nav h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 0;
    color: var(--text-medium);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--primary-color);
    font-weight: 600;
}

.myaccount-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
    .account-form-wrap {
        padding: 24px 20px;
    }

    .myaccount-wrap {
        grid-template-columns: 1fr;
    }
}

/* ===== Account Page (legacy tail) ===== */
/* Account Page */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 0;
    color: var(--text-medium);
    transition: var(--transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--primary-color);
}

.woocommerce-account .woocommerce-MyAccount-content {
    padding: 20px;
}
