@import url("mobile-member-header.css?v=20260611-i18n6");

html.h8-legacy-rwd-active,
html.h8-legacy-rwd-active body {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background: #eef2f7 !important;
    color: #10213a;
    font-family: Arial, "Microsoft JhengHei", sans-serif;
    -webkit-text-size-adjust: 100%;
}

html.h8-legacy-rwd-active body > *:not(.h8-legacy-page) {
    display: none !important;
}

.h8-legacy-page {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh;
    margin: 0 auto;
    padding: 86px 10px 96px;
    background: #f7f9fc;
}

@media (min-width: 720px) {
    .h8-legacy-page {
        width: min(calc(100vw - 32px), 920px) !important;
        max-width: 920px !important;
    }
}

.h8-legacy-page .h8-mobile-header {
    left: 0;
    right: 0;
    width: 100vw;
    transform: none;
}

.h8-legacy-page .h8-mobile-header-inner {
    width: 100vw !important;
    max-width: 100vw !important;
}

.h8-legacy-page .h8-mobile-brand img {
    width: 112px;
}

.h8-legacy-page .h8-header-actions {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    position: fixed;
    top: 14px;
    right: 50px;
    z-index: 130;
}

.h8-legacy-page .h8-member-chip {
    position: fixed;
    top: 14px;
    right: 50px;
    z-index: 130;
    max-width: 220px;
}

.h8-legacy-page .h8-header-actions a,
.h8-legacy-page .h8-header-actions button {
    min-width: 92px;
    color: #b51b23;
    background: #fff7f7;
    border-color: #f3c5c5;
}

@media (min-width: 720px) {
    .h8-legacy-page .h8-mobile-header {
        left: 50%;
        right: auto;
        width: min(calc(100vw - 32px), 920px);
        transform: translateX(-50%);
    }

    .h8-legacy-page .h8-mobile-header-inner {
        width: 100% !important;
        max-width: 920px;
    }

    .h8-legacy-page .h8-mobile-brand img {
        width: 124px;
    }

    .h8-legacy-page .h8-header-actions,
    .h8-legacy-page .h8-member-chip {
        position: static;
    }
}

.h8-legacy-page-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 33, 58, .06);
}

.h8-legacy-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #fff;
    color: #263a55;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.h8-legacy-page-head div {
    min-width: 0;
}

.h8-legacy-page-head span {
    display: block;
    color: #b51b23;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.h8-legacy-page-head strong {
    display: block;
    overflow: hidden;
    color: #10213a;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h8-legacy-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 33, 58, .06);
}

.h8-legacy-content {
    padding: 12px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.h8-legacy-content,
.h8-legacy-content * {
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.h8-legacy-content table {
    width: 100% !important;
    height: auto !important;
    border-collapse: collapse;
}

.h8-legacy-content img {
    max-width: 100% !important;
    height: auto !important;
}

.h8-legacy-content img[src*="xggrzl"] {
    display: none !important;
}

.h8-legacy-content input[type="text"],
.h8-legacy-content input[type="password"],
.h8-legacy-content input[type="email"],
.h8-legacy-content input[type="tel"],
.h8-legacy-content select,
.h8-legacy-content textarea {
    width: 100% !important;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cfd9e7;
    border-radius: 8px;
    background: #fff;
    color: #10213a;
    font: inherit;
}

.h8-legacy-content textarea {
    min-height: 120px;
}

.h8-legacy-content input[type="button"],
.h8-legacy-content input[type="submit"],
.h8-legacy-content button,
.h8-legacy-content .pre,
.h8-legacy-content .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #b51b23;
    border-radius: 8px;
    background: #b51b23;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
}

.h8-record-page {
    display: grid;
    gap: 12px;
}

.h8-record-search,
.h8-record-summary,
.h8-record-card,
.h8-record-empty,
.h8-faq-card {
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 33, 58, .05);
}

.h8-record-search {
    padding: 12px;
}

.h8-record-search > strong {
    display: block;
    margin-bottom: 10px;
    color: #10213a;
    font-size: 16px;
}

.h8-record-search form {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    color: #65758b;
    font-size: 13px;
}

.h8-record-search input[type="submit"] {
    width: 100%;
    margin-top: 2px;
}

.h8-record-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.h8-record-summary div {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    background: #f8fafc;
}

.h8-record-summary span,
.h8-record-fields dt {
    display: block;
    color: #65758b;
    font-size: 12px;
    font-weight: 800;
}

.h8-record-summary strong {
    display: block;
    margin-top: 4px;
    color: #b51b23;
    font-size: 15px;
    word-break: break-word;
}

.h8-record-list {
    display: grid;
    gap: 10px;
}

.h8-record-card {
    overflow: hidden;
}

.h8-record-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid #e6edf5;
    background: #f8fafc;
}

.h8-record-card-head strong {
    color: #10213a;
    font-size: 14px;
}

.h8-record-card-head span {
    color: #b51b23;
    font-size: 13px;
    font-weight: 900;
}

.h8-record-fields {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

.h8-record-fields dt,
.h8-record-fields dd {
    min-width: 0;
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid #eef3f8;
    line-height: 1.45;
}

.h8-record-fields dd {
    color: #10213a;
    font-weight: 700;
}

.h8-record-fields dt:nth-last-child(2),
.h8-record-fields dd:last-child {
    border-bottom: 0;
}

.h8-record-empty {
    padding: 18px 12px;
    color: #65758b;
    text-align: center;
}

.h8-record-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    color: #65758b;
    font-size: 13px;
}

.h8-faq-page {
    display: grid;
    gap: 12px;
}

.h8-faq-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
}

.h8-faq-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #fff;
    color: #263a55;
    font-size: 13px;
    font-weight: 900;
    white-space: normal !important;
    text-align: center;
}

@media (min-width: 720px) {
    .h8-faq-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.h8-faq-list {
    display: grid;
    gap: 10px;
}

.h8-faq-card {
    padding: 14px;
    background: #fff;
}

.h8-faq-card h2 {
    margin: 0 0 10px;
    color: #b51b23;
    font-size: 17px;
    line-height: 1.35;
}

.h8-faq-answer {
    color: #263a55;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.h8-faq-answer p {
    margin: 0 0 10px;
}

.h8-faq-answer,
.h8-faq-answer * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
}

.h8-faq-answer br + br {
    display: none;
}

.h8-legacy-content input[type="image"] {
    width: auto !important;
    max-height: 42px;
}

.h8-legacy-content a {
    color: #b51b23;
    font-weight: 800;
}

.h8-legacy-content p,
.h8-legacy-content font,
.h8-legacy-content span,
.h8-legacy-content strong,
.h8-legacy-content b,
.h8-legacy-content a {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
}

.h8-legacy-content td {
    line-height: 1.55;
    word-break: break-word;
}

.h8-legacy-content form {
    display: block;
    width: 100%;
}

.h8-legacy-message {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #f2c58f;
    border-radius: 8px;
    background: #fff8ed;
    color: #8a3a00;
    font-weight: 800;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .h8-legacy-content > table[height="361"] > tbody > tr > td {
        display: block !important;
        width: 100% !important;
    }

    .h8-legacy-content > table[height="361"] table {
        width: 100% !important;
    }

    .h8-legacy-content > table[height="361"] img[src*="/wt/"] {
        display: none !important;
    }

    .h8-legacy-content table,
    .h8-legacy-content tbody,
    .h8-legacy-content tr,
    .h8-legacy-content td {
        max-width: 100% !important;
    }

    .h8-legacy-content td {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}
