/* /custom 測試頁：商品／款式選單與各商品線的功能開關。 */
#model-options [hidden],
#line-options [hidden],
#style-options [hidden] {
  display: none !important;
}

#model-options {
  max-height: min(20rem, 44vh);
  max-height: min(20rem, 44dvh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

#model-options::-webkit-scrollbar {
  width: 10px;
}

#model-options::-webkit-scrollbar-thumb {
  background: rgba(31, 27, 24, .34);
  border: 2px solid var(--card);
  border-radius: 8px;
}

@supports not selector(::-webkit-scrollbar) {
  #model-options {
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 27, 24, .34) var(--card);
  }
}

.test-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3e7c9;
  color: #7a5a12;
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: middle;
}

/* 只有一個款式時，款式選單只顯示、不展開。 */
#style-dropdown.is-single .dropdown-caret {
  display: none;
}
#style-dropdown.is-single .dropdown-menu {
  display: none !important;
}

/* 行動電源沒有手機顏色可選。 */
body[data-line="riivan"] #phone-dropdown {
  display: none !important;
}

/* 結帳：頁面沒開放的款式（data-orderable="0"）不顯示儲存與結帳。 */
body[data-orderable="0"] #save-actions {
  display: none !important;
}

/* 頁尾介紹卡：沒有提供該商品介紹的頁面（/custom 測試頁），非磨砂殼時不顯示磨砂殼介紹與價格。 */
body[data-line]:not([data-line="matte"]) .ss-footer .ss-info-card[data-info-line="default"] {
  display: none !important;
}
.ss-info-price[hidden] {
  display: none !important;
}

.line-intro-link {
  color: var(--ink, #1c1b19);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
