@media screen and (max-width: 991.98px) {
  /*台新天地*/
  body {
    padding-top: 60px;
    font-size: 16px;
    line-height: 28px;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .bg-header {
    width: 100%;
    height: 60px;
  }
  .navbar {
    margin-top: -60px;
  }
  .ts-logo {
    width: 220px;
    position: relative;
    top: -1px;
  }
  .bg-md-black {
    background-color: rgba(0, 0, 0, 0.7);
  }
  .pt-1 {}
  .navbar-nav {
  margin-top: 4px;
  }
  .nav-item {
  padding: 0px 0;
  border-bottom: 1px solid #666;
  }
  /*內容*/
  .navbar-nav {
  display: block;
  }
  .btn-side {
    width: 100%;
    height: 60px;
    text-align: center;
    border-radius: 0px;
    position: fixed;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
  }
  .btn-side span {
    line-height: 40px;
  }

  .container {
    max-width: 100%;
  }

  /*漢堡選單展開樣式*/
  .menu-bar.navbar {
    min-height: 0;
    height: 0;
    padding: 0;
    align-items: stretch;
  }
  .menu-bar .navbar-collapse {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100% !important;
    max-height: none;
    margin: 0;
    z-index: 1040;
    border-top: 0;
  }
  .menu-bar .menu {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
  }
  .menu-bar .menu .nav.nav-tabs {
    flex-direction: column;
    width: 100%;
  }
  .menu-bar .menu .nav-item {
    width: 100%;
    flex: 0 0 auto;
    border-bottom: 1px solid #666;
  }
  .menu-bar .menu .nav-link {
    width: 100%;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0;
    text-align: center;
    font-size: 18px;
  }
  .menu-bar .menu .nav-link:visited {
    color: #fff !important;
  }
  .menu-bar .menu .nav-link:hover,
  .menu-bar .menu .nav-link:focus {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.12);
  }
  .menu-bar .menu .nav-link:hover:visited,
  .menu-bar .menu .nav-link:focus:visited {
    color: #fff !important;
  }
  .menu-bar .menu .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
  }

  /*客戶權益：有漢堡選單時改用常駐下拉選單*/
  .menu-link-with-icon .rights-main-caret {
    display: none;
  }
  .rights-panel-toggle {
    display: none;
  }
  #myTabContent,
  #rights,
  #rights .box,
  #rights .box-rights {
    overflow: visible;
  }
  .rights-select-wrap {
    display: block;
    position: sticky;
    top: 60px;
    z-index: 1020;
    width: 100%;
    margin-bottom: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: #fff;
    box-sizing: border-box;
  }
  .rights-select-wrap.is-stuck {
    background-color: transparent;
    border-bottom: 0;
    box-shadow: none;
  }
  .rights-select-wrap.is-stuck::before {
    content: '';
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: var(--rights-select-h, 70px);
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
    pointer-events: none;
  }
  .rights-select-wrap.is-stuck.is-open::before {
    height: auto;
    bottom: 0;
    pointer-events: auto;
  }
  .rights-select {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    z-index: 20;
    box-sizing: border-box;
  }
  .rights-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
  }
  .rights-select-toggle .bi-caret-down-fill,
  .rights-select-toggle .bi-caret-up-fill {
    font-size: 0.85em;
  }
  .rights-select-toggle .bi-caret-up-fill {
    display: none;
  }
  .rights-select-toggle.show .bi-caret-down-fill {
    display: none;
  }
  .rights-select-toggle.show .bi-caret-up-fill {
    display: inline-block;
  }
  .rights-select-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: block !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    border-width: 0;
    z-index: 21;
    transition: max-height 0.35s ease, opacity 0.35s ease, visibility 0.35s, margin 0.35s ease, border-width 0.35s ease;
  }
  .rights-select-menu.show {
    max-height: calc(5.5 * (1.5em + 24px));
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
    border-width: 1px;
  }
  .rights-select-scroll {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: calc(5.5 * (1.5em + 24px) - 2px);
    overflow-y: auto;
  }
  .rights-select-scroll::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
  }
  .rights-select-scroll::-webkit-scrollbar-track {
    background-color: transparent;
  }
  .rights-select-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }
  .rights-select-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
    pointer-events: none;
  }
  .rights-select-menu.at-bottom::after {
    display: none;
  }
  .rights-select-menu .dropdown-item {
    padding: 12px 16px;
    font-weight: bold;
  }
  .rights-select-menu .dropdown-item.active {
    background-color: var(--rightsBlue);
    color: #fff;
  }
  .rights-content-box {
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
  }
  
  
  .box {
padding: 40px 20px;
}
  h4 {
    font-size: 20px;
  }
  #announcement,
  #announcement p,
  #announcement li,
  #announcement strong,
  #announcement b,
  #announcement a {
    font-size: 16px;
    line-height: 28px;
  }
  .txt-tile {
    font-size: 18px;
    scroll-margin-top: 140px;
  }
  .txt-tile-anchor-nav {
    gap: 6px 16px;
    margin-bottom: 16px;
  }
  h4 + .txt-tile-anchor-nav {
    margin-top: -12px;
  }
  .txt-tile-anchor-btn {
    font-size: 18px;
    white-space: normal;
  }
  .txt-tile-toggle {
    margin-top: 24px;
    padding-bottom: 10px;
  }
  .txt-tile-section:first-child .txt-tile-toggle {
    margin-top: 16px;
  }
  .txt-tile-section-body {
    padding-top: 12px;
    overflow: visible;
  }

  /* 原 18px 內文改為 16px（漢堡選單、.txt-tile 維持 18px） */
  .txt-18,
  h6,
  .box-qrcode p,
  .table-striped,
  .branch td,
  .txt-table td {
    font-size: 16px;
    line-height: 28px;
  }
  .warning strong {
    font-size: 16px !important;
  }
  .txt-table-2,
  .txt-table-2 td {
    font-size: 15px;
    line-height: 24px;
  }
  .id-code-map .id-code-letter,
  .id-code-map .id-code-num {
    line-height: 24px;
  }
  .txt-ps {
    font-size: 13px;
    line-height: 20px;
  }

  /* 基本公告事項：QR 改為「一、」列表文字，不顯示圖 */
  #rights-item1 .box-qrcode {
    counter-reset: qr-item;
    margin-top: 0;
    margin-left: 36px;
    padding-left: 0;
  }
  #rights-item1 .box-qrcode li {
    display: block;
    width: auto;
    margin-bottom: 0;
    text-align: left;
    vertical-align: baseline;
    font-size: 16px;
    line-height: 28px;
    counter-increment: qr-item;
  }
  #rights-item1 .box-qrcode li::before {
    content: counter(qr-item, cjk-ideographic) "、";
    display: inline-block;
    width: 36px;
    margin-left: -36px;
    white-space: nowrap;
  }
  #rights-item1 .box-qrcode img,
  #rights-item1 .box-qrcode br {
    display: none;
  }
  #rights-item1 .box-qrcode p {
    display: inline;
    text-align: left;
    margin: 0;
    font-size: 16px;
    line-height: 28px;
  }
  #rights-item1 .box-qrcode li a {
    position: static;
    display: inline;
    color: #d70c18;
    font-weight: normal;
  }
  #rights-item1 .box-qrcode li a:hover,
  #rights-item1 .box-qrcode li a:hover p {
    font-weight: normal;
    color: #d70c18;
  }
  #rights-item1:has(.box-qrcode li:hover) .box-qrcode li:not(:hover) a::after {
    content: none;
  }
  /* 十一、十二、比照其他頁改用較寬編號（.txt-list-fourth） */
  #rights-item1 .box-qrcode.txt-list-fourth {
    counter-reset: qr-item 10;
    margin-left: 45px;
  }
  #rights-item1 .box-qrcode.txt-list-fourth li::before {
    width: 60px;
    margin-left: -60px;
    text-align: right;
  }
  /* 線上服務改為 (一)、(二)，比照 .txt-list-second */
  #rights-item1 .box-qrcode.txt-list-second {
    counter-reset: qr-sub;
    margin-left: 72px;
  }
  #rights-item1 .box-qrcode.txt-list-second li {
    counter-increment: qr-sub;
  }
  #rights-item1 .box-qrcode.txt-list-second li::before {
    content: "(" counter(qr-sub, cjk-ideographic) ")";
    width: 36px;
    margin-left: -36px;
    text-align: left;
  }

  /* 客戶權益：合併前／合併後改為左右切換頁籤 */
  .rights-compare-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
  }
  .rights-compare-tab {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    cursor: pointer;
  }
  .rights-compare-tab.is-active {
    background-color: #fff;
    border-color: #F0989D;
    color: #d70c18;
  }
  .rights-compare-wrap.is-before .compare-col-after,
  .rights-compare-wrap.is-after .compare-col-before {
    display: none;
  }
  .rights-compare-wrap {
    max-width: 100%;
  }
  .rights-compare-wrap.has-item-col > table.txt-table > tbody {
    table-layout: auto;
    width: 100%;
  }
  .rights-compare-wrap.has-item-col td.compare-col-keep {
    width: 1%;
    white-space: nowrap;
    word-break: keep-all;
    line-height: 1.45;
  }
  /* 左欄需容納 Mastercard、Facebook 等英文單字整詞 */
  .rights-compare-wrap.has-item-col:has(table.txt-table-en-col) > table.txt-table > tbody {
    table-layout: auto;
  }
  .rights-compare-wrap.has-item-col:has(table.txt-table-en-col) td.compare-col-keep,
  table.txt-table-en-col td.list-title-grey {
    width: 30%;
    max-width: 30%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .rights-compare-wrap.has-item-col:has(table.txt-table-en-col) td.compare-col-before,
  .rights-compare-wrap.has-item-col:has(table.txt-table-en-col) td.compare-col-after {
    width: 70%;
  }
  /* 服務項目欄（非灰底白字、非紅底白字、非粉紅表頭）：置左上；不強制斷行，寬度不夠才自動換行 */
  .txt-table tr:not(.list-title-pink):not(.list-title-red) > td.compare-col-keep:not(.list-title-grey):not(.list-title-red):not(.bg-grey) {
    text-align: left !important;
    vertical-align: top !important;
    white-space: nowrap;
    word-break: keep-all;
  }
  .txt-table tr:not(.list-title-pink):not(.list-title-red) > td.compare-col-keep:not(.list-title-grey):not(.list-title-red):not(.bg-grey) br {
    display: none;
  }
  /* 深灰／紅／粉紅底與據點標題列：上下左右置中（含非 .txt-table 的粉紅表頭） */
  tr.list-title-pink > td,
  tr.list-title-pink > th,
  td.list-title-pink,
  th.list-title-pink,
  .txt-table tr.list-title-red > td,
  .txt-table td.list-title-red,
  .txt-table-2 tr.list-title-red > td,
  .txt-table-2 td.list-title-red,
  .txt-table td.list-title-grey,
  .txt-table tr.list-title-grey > td,
  .txt-table-2 td.list-title-grey,
  .txt-table-2 tr.list-title-grey > td,
  .txt-table td.list-title-pink,
  .txt-table tr.list-title-pink > td,
  .txt-table-2 td.list-title-pink,
  .txt-table-2 tr.list-title-pink > td,
  .branch-title-g,
  .branch-title-r,
  .branch-subtitle-g,
  .branch-subtitle-r {
    text-align: center !important;
    vertical-align: middle !important;
  }
  /* 灰底白字欄：不使用 br 強制斷行，改依欄寬自動換行 */
  .txt-table td.list-title-grey,
  .txt-table tr.list-title-grey > td,
  .txt-table-2 td.list-title-grey,
  .txt-table-2 tr.list-title-grey > td {
    white-space: normal;
  }
  #rights .rights-compare-wrap > table.txt-table td {
    padding: 8px 6px;
  }
  /* 卡片權益的灰色欄位：固定為表格寬度的 30% */
  #rights table.txt-table td.list-title-grey,
  #rights table.txt-table tr.list-title-grey > td,
  #rights .rights-compare-wrap > table.txt-table td.compare-col-keep {
    width: 30% !important;
    min-width: 30% !important;
    max-width: 30% !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  /* 同一列兩格灰底（如附加權益＋旅遊平安險）合起來才是那 30%，不要各算 30% */
  #rights table.txt-table tr:has(> td.list-title-grey + td.list-title-grey) > td.list-title-grey {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  /* 全站表格內文一律置上；深灰／紅／粉紅底標題列與 .bg-grey 維持置中 */
  table tr:not(.list-title-pink):not(.list-title-red):not(.list-title-grey) > td:not(.list-txt-vm):not(.list-title-red):not(.list-title-pink):not(.list-title-grey):not(.list-title-grey3):not(.list-title-grey2):not(.branch-title-g):not(.branch-title-r):not(.branch-subtitle-g):not(.branch-subtitle-r):not(.bg-grey),
  table tr:not(.list-title-pink):not(.list-title-red):not(.list-title-grey) > th:not(.list-txt-vm):not(.list-title-red):not(.list-title-pink):not(.list-title-grey):not(.list-title-grey3):not(.list-title-grey2):not(.branch-title-g):not(.branch-title-r):not(.branch-subtitle-g):not(.branch-subtitle-r):not(.bg-grey) {
    vertical-align: top !important;
  }
  td.bg-grey,
  th.bg-grey {
    text-align: center !important;
    vertical-align: middle !important;
  }
  .txt-table td.list-title-grey br,
  .txt-table tr.list-title-grey > td br,
  .txt-table-2 td.list-title-grey br,
  .txt-table-2 tr.list-title-grey > td br {
    display: none;
  }
  .txt-table td.list-title-grey i,
  .txt-table tr.list-title-grey > td i,
  .txt-table-2 td.list-title-grey i,
  .txt-table-2 tr.list-title-grey > td i {
    font-size: 20px !important;
  }
  .txt-table td.list-title-grey img,
  .txt-table tr.list-title-grey > td img,
  .txt-table-2 td.list-title-grey img,
  .txt-table-2 tr.list-title-grey > td img {
    width: 20px !important;
    height: 20px !important;
  }
  .rights-compare-wrap.has-item-col > table.txt-table td.compare-col-keep {
    width: 1%;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    line-height: 1.45;
  }
  .rights-compare-wrap.has-item-col td.compare-col-before,
  .rights-compare-wrap.has-item-col td.compare-col-after,
  .rights-compare-wrap:not(.has-item-col) td.compare-col-before,
  .rights-compare-wrap:not(.has-item-col) td.compare-col-after {
    width: auto;
    min-width: 8em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
  }
  .rights-compare-wrap > table.txt-table > tbody > tr:first-child {
    display: none;
  }
  /* 卡片列表、財富無限卡合併前：不左右滑動，依螢幕寬度完整換行 */
  table.rights-jump-table {
    overflow-x: hidden;
  }
  table.rights-jump-table > tbody {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }
  table.rights-jump-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  /* 公告事項表格：不左右滑動，三欄依螢幕寬度換行完整呈現 */
  #announcement table.txt-table {
    overflow-x: hidden;
    width: 100%;
  }
  #announcement table.txt-table > tbody {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }
  #announcement table.txt-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  /* 帳務查詢 Q2 結帳日對照：不左右滑動，兩欄依螢幕寬度完整呈現 */
  #qa-pane-bill table.qa-cycle-table {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  #qa-pane-bill table.qa-cycle-table > tbody {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
  }
  #qa-pane-bill table.qa-cycle-table td {
    width: 50%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  #announcement table.txt-table td:nth-child(-n+2) {
    text-align: center !important;
  }
  #rights-card-dingzuan + .rights-compare-wrap.is-before > table.txt-table {
    overflow-x: hidden;
    width: 100%;
  }
  #rights-card-dingzuan + .rights-compare-wrap.is-before > table.txt-table > tbody {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
  }
  #rights-card-dingzuan + .rights-compare-wrap.is-before > table.txt-table td {
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  #rights-card-dingzuan + .rights-compare-wrap.is-before > table.txt-table td.compare-col-keep[colspan="2"] {
    width: 30%;
    max-width: 30%;
  }
  #rights-card-dingzuan + .rights-compare-wrap.is-before > table.txt-table td.compare-col-before {
    width: 35%;
  }
  /* Richart 年費表、權益表：粉紅表頭含灰底列名那一角，合併後欄多，不左右滑動以免表頭被切掉 */
  #rights-card-richart ~ .rights-compare-wrap > table.txt-table {
    overflow-x: hidden;
  }
  #rights-card-richart ~ .rights-compare-wrap > table.txt-table > tbody {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
  }
  #rights-card-richart ~ .rights-compare-wrap > table.txt-table td {
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  #rights-card-richart ~ .rights-compare-wrap > table.txt-table td.compare-col-keep {
    width: 30%;
    min-width: 30%;
    max-width: 30%;
  }
  /* 灰色欄位固定 30%：用固定欄寬，避免合併前／合併後被內容撐開 */
  #rights .rights-compare-wrap > table.txt-table > tbody {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }
  #rights .rights-compare-wrap > table.txt-table td.compare-col-before,
  #rights .rights-compare-wrap > table.txt-table td.compare-col-after {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  /* Richart 第一個對照表：維持左右滑動，不鎖成畫面寬度 */
  #rights-card-richart + table.txt-table td.list-title-grey {
    width: auto !important;
    min-width: 6em !important;
    max-width: none !important;
  }

  /* 所有表格超出視窗寬度時，顯示左右拉霸可滑動 */
  table.txt-table,
  table.txt-table-2:not(.id-code-map),
  table.branch,
  .branch-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #b3b3b3 #f0f0f0;
  }
  table.txt-table,
  table.txt-table-2:not(.id-code-map),
  table.branch {
    display: block;
    width: 100%;
    padding-bottom: 6px;
  }
  table.txt-table::-webkit-scrollbar,
  table.txt-table-2:not(.id-code-map)::-webkit-scrollbar,
  table.branch::-webkit-scrollbar,
  .branch-table-wrap::-webkit-scrollbar {
    -webkit-appearance: none;
    height: 8px;
  }
  table.txt-table::-webkit-scrollbar-track,
  table.txt-table-2:not(.id-code-map)::-webkit-scrollbar-track,
  table.branch::-webkit-scrollbar-track,
  .branch-table-wrap::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 8px;
  }
  table.txt-table::-webkit-scrollbar-thumb,
  table.txt-table-2:not(.id-code-map)::-webkit-scrollbar-thumb,
  table.branch::-webkit-scrollbar-thumb,
  .branch-table-wrap::-webkit-scrollbar-thumb {
    background-color: #b3b3b3;
    border-radius: 8px;
  }
  table.txt-table > tbody,
  table.txt-table-2:not(.id-code-map) > tbody,
  table.branch > tbody {
    display: table;
    width: 100%;
    min-width: 680px;
  }
  /* 單一欄表格：不加左右拉霸，內容往下完整呈現 */
  table.txt-table:not(:has(> tbody > tr > td:nth-child(2))) > tbody,
  table.txt-table-2:not(.id-code-map):not(:has(> tbody > tr > td:nth-child(2))) > tbody,
  .rights-compare-wrap > table.txt-table > tbody {
    min-width: 100%;
  }
  /* 對照表切換後內容欄均分剩餘寬度，並維持可閱讀的最小寬 */
  .rights-compare-wrap:not(.has-item-col) td.compare-col-before,
  .rights-compare-wrap:not(.has-item-col) td.compare-col-after {
    width: auto;
    min-width: 8em;
  }
  /* 旅行平安險：取消 5%/10%/100% 固定欄寬，依內容調整 */
  .rights-compare-wrap.has-item-col > table.travel-ins-table > tbody,
  .rights-compare-wrap > table.travel-ins-table > tbody,
  table.travel-ins-table > tbody {
    table-layout: auto;
    min-width: 100%;
    width: 100%;
  }
  .rights-compare-wrap.has-item-col > table.travel-ins-table td.compare-col-keep,
  .rights-compare-wrap.has-item-col > table.travel-ins-table td.compare-col-before,
  .rights-compare-wrap.has-item-col > table.travel-ins-table td.compare-col-after,
  .rights-compare-wrap:not(.has-item-col) > table.travel-ins-table td.compare-col-before,
  .rights-compare-wrap:not(.has-item-col) > table.travel-ins-table td.compare-col-after,
  table.travel-ins-table td {
    width: auto !important;
  }
  /* 險種／金額欄：給足夠最小寬，避免被卡名欄擠成一窄條 */
  table.travel-ins-table td[width="5%"],
  table.travel-ins-table td[width="10%"] {
    min-width: 5.5em;
  }
  table.travel-ins-table td[width="15%"] {
    min-width: 5.5em;
  }
  table.travel-ins-table td[width="20%"] {
    min-width: 7em;
  }
  /* 淺灰卡名欄：兩欄時維持橫書，不因欄窄變成一字一行 */
  table.travel-ins-table td.list-title-grey3 {
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 7em;
  }
  /* 巢狀表格：欄寬均分，短標題維持橫排，長文再換行 */
  table table.txt-table > tbody,
  table table.txt-table-2:not(.id-code-map) > tbody,
  table td > table,
  table td > table > tbody {
    min-width: 100%;
    width: 100%;
  }
  table td > table {
    table-layout: fixed;
  }
  table td > table td,
  table td > table th {
    width: auto;
    min-width: 0;
    padding: 8px 6px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  /* 分行據點表：由外層容器負責橫向拉霸 */
  .branch-table-wrap > table.branch {
    display: table;
    overflow: visible;
    width: 100%;
    min-width: 720px;
    padding-bottom: 0;
  }
  .branch-table-wrap > table.branch > tbody {
    display: table-row-group;
    min-width: 0;
  }
  /* 身分證代碼對照維持自動折行，不改橫向滑動 */
  table.id-code-map {
    display: grid;
    overflow: visible;
    max-width: 100%;
    padding-bottom: 0;
  }
  table.id-code-map > tbody {
    display: contents;
    min-width: 0;
  }

  .qa-tabs {
    gap: 10px;
  }
  .qa-tabs li {
    border-bottom: 0;
  }
  .qa-tab-btn {
    font-size: 20px;
    padding: 8px 16px;
    white-space: normal;
  }
  .qa-item {
    border: 0;
    border-bottom: 1px solid #dedede;
    border-radius: 0;
    margin-bottom: 0;
    padding: 14px 0;
  }
  .qa-item:hover,
  .qa-item:focus-within,
  .qa-item.is-open {
    border-color: #dedede;
  }
  .qa-question {
    font-size: 16px;
    line-height: 28px;
    padding: 0;
  }
  .qa-caret {
    color: #d70c18;
  }
  .qa-item.is-open .qa-caret {
    margin-bottom: 6px;
  }
  .qa-answer {
    padding: 0;
  }
  .qa-answer p,
  .qa-answer li,
  .qa-answer .red,
  .qa-atxt {
    font-size: 16px;
    line-height: 28px;
    color: #333;
  }
  .qa-alabel {
    font-size: 16px;
    line-height: 28px;
    color: #d70c18;
  }
  .qa-answer a {
    color: #d70c18;
  }

  /* 新光點數轉換圈圈 */
  .tpPoint {
    gap: 10px;
  }
  .circle-wrap {
    width: 180px;
    margin-bottom: 14px;
  }
  .txt-circle {
    font-size: 20px;
  }
  .txt-circle b {
    font-size: 13px;
    margin-top: 6px;
  }
  .btn-transform {
    width: 42px;
    height: 42px;
    right: -4px;
    bottom: 4px;
  }

  /* 最左欄為深灰底的表格：寬度 100%，不左右滑動；深灰左欄不超過 20% */
  table.txt-table:has(> tbody > tr > td:first-child.list-title-grey),
  table.txt-table-2:not(.id-code-map):has(> tbody > tr > td:first-child.list-title-grey) {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) > tbody,
  table.txt-table-2:not(.id-code-map):has(> tbody > tr > td:first-child.list-title-grey) > tbody {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed;
  }
  #rights table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr > td,
  #rights table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) tr.list-title-grey > td,
  #rights .rights-compare-wrap > table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) td.compare-col-keep,
  table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr > td,
  table.txt-table-2:not(.id-code-map):has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr > td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr > td:first-child.list-title-grey,
  table.txt-table-2:not(.id-code-map):has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr > td:first-child.list-title-grey,
  #rights table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr > td:first-child.list-title-grey,
  #rights .rights-compare-wrap > table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr > td:first-child.compare-col-keep,
  table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr.grey-col-sizer > td:first-child,
  table.txt-table-2:not(.id-code-map):has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr.grey-col-sizer > td:first-child,
  #rights table.txt-table:has(> tbody > tr > td:first-child.list-title-grey) > tbody > tr.grey-col-sizer > td:first-child {
    width: 20% !important;
    max-width: 20% !important;
    min-width: 0 !important;
  }
  table.txt-table > tbody > tr.grey-col-sizer,
  table.txt-table-2 > tbody > tr.grey-col-sizer {
    height: 0;
    line-height: 0;
    font-size: 0;
  }
  table.txt-table > tbody > tr.grey-col-sizer > td,
  table.txt-table-2 > tbody > tr.grey-col-sizer > td {
    height: 0 !important;
    padding: 0 !important;
    border-width: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
  /* Richart 卡第一個對照表：維持左右滑動 */
  #rights #rights-card-richart + table.txt-table {
    overflow-x: auto;
  }
  #rights #rights-card-richart + table.txt-table > tbody {
    width: auto !important;
    min-width: 680px !important;
    max-width: none !important;
    table-layout: auto !important;
  }
  #rights #rights-card-richart + table.txt-table > tbody > tr > td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow-wrap: normal;
    word-break: normal;
  }
  #rights #rights-card-richart + table.txt-table > tbody > tr.list-title-grey > td:first-child {
    min-width: 24em !important;
    white-space: nowrap !important;
  }
  #rights #rights-card-richart + table.txt-table td.list-title-grey {
    width: auto !important;
    min-width: 7em !important;
    max-width: none !important;
    white-space: nowrap !important;
  }
  #rights #rights-card-richart + table.txt-table > tbody > tr > td.list-txt-vm:not(.list-title-grey) {
    min-width: 18em !important;
  }

  
  
  
  
  
  
  
  
  
  
  
  
  
}

@media screen and (max-width: 768px) {
  .qa-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .qa-tab-btn {
    width: 100%;
    text-align: center;
  }
  .tpPoint {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .tpPoint li {
    width: 100%;
    max-width: none;
  }
  .circle-wrap {
    width: 200px;
  }
  .txt-circle {
    font-size: 24px;
  }
  .txt-circle b {
    font-size: 15px;
  }
  .btn-transform {
    width: 48px;
    height: 48px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 100%;
  }
  .footer-bg {
    height: 25px;
  }
  .footer-bg-box {
    height: 25px;
  }
  .footer-box {
    color: #fff;
    margin-top: -25px;
  }
  .copyright-box {
    height: 25px;
  }
  .floating-action-btn {
    right: 12px;
    bottom: 24px;
    width: 44px;
    height: 44px;
  }
  .floating-chat {
    bottom: 24px;
    padding: 5px 7px;
    font-size: 11px;
  }
  .go-top {
    bottom: 76px;
  }
  .setting li {
    padding: 20px 16px;
  }
  .box-settings-left,
  .box-settings-right {
    display: block;
    width: 100%;
    vertical-align: top;
  }
  .box-settings-left {
    padding: 0 0 16px;
    font-size: 18px;
  }
  .box-settings-left strong {
    font-size: 18px;
    white-space: nowrap;
    word-break: keep-all;
  }
  .box-settings-left strong span {
    display: block;
    font-size: 18px;
    white-space: nowrap;
  }
  .box-settings-left strong br {
    display: none;
  }
  .box-settings-right {
    border-left: none;
    border-top: 1px solid #999;
    padding: 16px 0 0;
  }
  .info-modal-dialog {
    max-width: 100%;
    padding: 52px 40px 28px 24px;
  }
  .info-modal-text {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media screen and (max-width: 768px) {
  .branch-search-row {
    align-items: stretch;
  }
  .branch-search {
    max-width: none;
    flex: 1 1 auto;
  }
  .branch td {
    font-size: 16px;
    padding: 8px 10px;
  }
  table.txt-table > tbody,
  table.txt-table-2:not(.id-code-map) > tbody,
  table.branch > tbody {
    min-width: 640px;
  }
  #rights #rights-card-richart + table.txt-table > tbody {
    min-width: 640px !important;
  }
  table.txt-table:not(:has(> tbody > tr > td:nth-child(2))) > tbody,
  table.txt-table-2:not(.id-code-map):not(:has(> tbody > tr > td:nth-child(2))) > tbody,
  .rights-compare-wrap > table.txt-table > tbody,
  table.travel-ins-table > tbody {
    min-width: 100%;
  }
  table table.txt-table > tbody,
  table table.txt-table-2:not(.id-code-map) > tbody {
    min-width: 100%;
  }
  .branch-table-wrap > table.branch {
    min-width: 680px;
  }
}
