/* 數位資產選擇器：完整顯示縮圖（contain），與 my-custom-products 情境圖 tab 一致 */
.dap-tabs {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.dap-tab {
  flex: 1 1 auto;
  min-width: 5.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.dap-tab.active {
  background: #7A8FA3;
  border-color: #7A8FA3;
  color: #fff;
}
.dap-card {
  cursor: pointer;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dap-card:hover {
  border-color: #7A8FA3;
  box-shadow: 0 2px 8px rgba(122, 143, 163, 0.12);
}
.dap-thumb-wrap {
  position: relative;
  height: 120px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dap-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.dap-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(68, 93, 126, 0.88);
  color: #fff;
  line-height: 1.2;
}
.dap-title {
  margin: 0;
  padding: 0.4rem 0.5rem 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dap-card--browse .dap-thumb-wrap {
  cursor: zoom-in;
}
.dap-zoom-hint {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  pointer-events: none;
}
