.idc-products, .idc-filters, .idc-dock, .idc-dialog { font-family: "Instrument Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.idc-products *, .idc-filters *, .idc-dock *, .idc-dialog * { box-sizing: border-box; }
.idc-products [hidden], .idc-dock[hidden], .idc-table [hidden] { display: none !important; }
.idc-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.idc-product { display: flex; flex-direction: column; min-width: 0; padding: 18px; background: #fff; border: 1px solid #dbe3ec; border-radius: 12px; }
.idc-product h3 { margin: 12px 0 7px; font-size: 1.2rem; }
.idc-product h3 a { color: #112742; text-decoration: none; }
.idc-product p { margin: 0 0 12px; color: #46596e; }
.idc-photo { display: block; background: #fff; border-radius: 12px; overflow: hidden; }
.idc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: contain; }
.idc-card-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block: 5px 12px; font-size: .93rem; }
.idc-card-actions a { min-height: 44px; display: inline-flex; align-items: center; color: #215b9b; }
.idc-filters { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; }
.idc-filters label { display: grid; gap: 5px; font-weight: 600; color: #112742; }
.idc-filters select, .idc-filters input { width: 100%; min-width: 0; min-height: 46px; padding: 8px 10px; font: inherit; border: 1px solid #a5b7ca; border-radius: 8px; background: #fff; color: #112742; }
.idc-result-count { margin: 14px 0 !important; color: #46596e; }
.idc-select { display: inline-flex !important; align-items: center; gap: 9px; min-height: 44px; padding: 6px 10px; border: 1px solid #b5c6d8; border-radius: 7px; background: #fff; color: #163858; font-size: 14px; font-weight: 600; cursor: pointer; }
.idc-select input { display: inline-block; appearance: auto; width: 19px !important; height: 19px; min-height: 0; flex: 0 0 19px; margin: 0 !important; padding: 0; accent-color: #215b9b; }
.idc-product > .idc-select { align-self: flex-start; margin-top: auto; }
.product-card > .idc-select, .model-heading > .idc-select, .detail-copy > .idc-select { align-self: flex-start; margin-top: 14px; }
.idc-select:has(input:checked) { border-color: #215b9b; background: #eaf3fc; }
.idc-button, .idc-chip, .idc-remove { font: inherit; cursor: pointer; }
.idc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #b5c6d8; border-radius: 8px; padding: 9px 15px; background: #fff; color: #163858; font-size: 14px; font-weight: 600; white-space: nowrap; }
.idc-button:hover { background: #eaf3fc; }
.idc-primary { background: #215b9b; border-color: #215b9b; color: #fff; }
.idc-primary:hover { background: #174578; }
.idc-button:disabled { background: #e4e9ee; border-color: #c7d1db; color: #5c6d7c; cursor: default; }
.idc-dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; width: min(1100px, calc(100% - 32px)); padding: 14px 18px; background: #fff; border: 1px solid #c2d3e3; border-radius: 12px; box-shadow: 0 8px 35px #10284126; color: #112742; z-index: 2147479000; line-height: 1.5; }
.idc-dock-copy { flex: 1 1 235px; }
.idc-dock p { margin: 2px 0 0; }
.idc-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 260px; }
.idc-chip { min-height: 36px; padding: 5px 9px; border: 1px solid #ccd9e6; border-radius: 6px; background: #f3f7fb; color: #173b60; font-size: 13px; }
.idc-dock-actions { display: flex; gap: 8px; }
body.idc-has-selection { padding-bottom: 170px !important; }
body.idc-modal-open { overflow: hidden; }
.idc-dialog { width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #c5d5e6; border-radius: 16px; background: #fff; color: #112742; line-height: 1.55; box-shadow: 0 20px 90px #061b354a; }
.idc-dialog::backdrop { background: #071b36a6; }
.idc-dialog[open] { display: flex; flex-direction: column; height: min(920px, calc(100dvh - 32px)); overflow: hidden; }
.idc-dialog-header, .idc-dialog-tools, .idc-dialog > .idc-note { flex: 0 0 auto; }
.idc-dialog-header, .idc-dialog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.idc-dialog h2 { margin: 0; font-size: clamp(20px, 3vw, 28px); line-height: 1.3; }
.idc-dialog-tools > a { color: #215b9b; min-height: 44px; display: inline-flex; align-items: center; }
.idc-table-scroll { min-height: 0; flex: 1 1 auto; max-width: 100%; overflow: auto; border: 1px solid #d4dfeb; border-radius: 8px; }
.idc-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; margin: 0; background: #fff; font-size: 14px; }
.idc-table th, .idc-table td { padding: 12px; border: 0; border-right: 1px solid #dbe3ec; border-bottom: 1px solid #dbe3ec; vertical-align: top; text-align: left; overflow-wrap: anywhere; color: #17334f; white-space: normal; }
.idc-table th:first-child { position: sticky; left: 0; z-index: 1; width: 125px; background: #f1f5fa; font-weight: 600; }
.idc-table th:not(:first-child), .idc-table td { width: 255px; }
.idc-table thead th { background: #f8fafc; }
.idc-table th img { display: block; width: 100%; height: 135px; object-fit: contain; background: #fff; border-radius: 12px; margin-bottom: 8px; }
.idc-table th a, .idc-table td a { color: #215b9b; }
.idc-remove { display: block; min-height: 44px; border: 0; background: transparent; padding: 7px 0; color: #215b9b; text-decoration: underline; }
.idc-cell-actions { display: flex; flex-direction: column; gap: 8px; }
.idc-cell-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.idc-note { font-size: 13px; color: #46596e; }
.idc-dialog > .idc-note { margin: 14px 0 0; }
.idc-status { position: fixed; right: 16px; top: 80px; max-width: min(420px, calc(100% - 32px)); margin: 0; padding: 10px 14px; border-radius: 8px; background: #102841; color: #fff; z-index: 2147479500; font: 14px/1.5 "Microsoft JhengHei",sans-serif; pointer-events: none; }
.idc-status:empty { display: none; }
.idc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.idc-products :focus-visible, .idc-filters :focus-visible, .idc-dock :focus-visible, .idc-dialog :focus-visible, .idc-select:has(:focus-visible) { outline: 3px solid #2e74bb; outline-offset: 3px; }
@media (max-width: 1000px) { .idc-products { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .idc-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .idc-filters label:last-child { grid-column: 1 / -1; }
  .idc-dock { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); gap: 8px; padding: 12px; }
  .idc-dock-copy { flex: 1 1 150px; }
  .idc-dock-copy .idc-note { display: none; }
  .idc-dock-actions { margin-left: auto; }
  .idc-chips { order: 3; flex-basis: 100%; }
  body.idc-has-selection { padding-bottom: 250px !important; }
  .idc-dialog { padding: 14px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .idc-dialog[open] { height: calc(100dvh - 16px); }
  .idc-table th:first-child { width: 100px; }
  .idc-table th:not(:first-child), .idc-table td { width: 220px; }
  .idc-table { min-width: 540px; }
  .idc-table th, .idc-table td { padding: 10px; }
  .idc-dialog-tools { align-items: flex-start; }
}
@media (max-width: 480px) { .idc-products { grid-template-columns: minmax(0,1fr); } }
