.product-connections {
  font: inherit;
  color: #10243c;
  background: #fff;
  margin: 1.5rem 0;
}

.product-connections-page,
.product-connections-header {
  width: min(1200px, calc(100% - 48px));
  margin: 24px auto;
  overflow-wrap: anywhere;
}

.product-connections-header,
.product-connections-header > a,
.product-connections-header nav,
.product-connections-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.product-connections-header { justify-content: space-between; }
.product-connections-header img { width: auto; height: 42px; }
.product-connections-header nav a,
.product-connections-switch > a { min-height: 44px; display: inline-flex; align-items: center; }

.product-return-bar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #d7dde5;
}

.product-return-bar .product-connections-action {
  min-height: 48px;
  justify-content: center;
  text-align: center;
}

.product-return-bar .product-connections-action:last-child { background: #10243c; color: #fff; }

.product-system-section dl > div { margin: 8px 0; }
.product-system-section dd { margin-inline-start: 0; overflow-wrap: anywhere; }

.product-connections h2 {
  color: #10243c;
  font-family: inherit;
  margin: 0 0 0.5rem;
}

.product-connections p {
  margin: 0.5rem 0;
}

.product-connections a,
.product-connections .product-connections-action {
  color: #10243c;
}

.product-connections .product-connections-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid #10243c;
  border-radius: 0.25rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.product-connections a:focus-visible,
.product-connections .product-connections-action:focus-visible {
  outline: 3px solid #10243c;
  outline-offset: 2px;
}

.product-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
}

.product-connections code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.product-connections-table {
  width: 100%;
  overflow-x: auto;
}

.product-connections-table table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

.product-connections-table th,
.product-connections-table td {
  border: 1px solid #d7dde5;
  padding: 0.625rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.approved-brand-section,
.product-system-section {
  border-top: 1px solid #d7dde5;
  padding-top: 1rem;
}

.product-system-list {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.product-system-note {
  font-size: 0.9375rem;
}

.brand-library-section a {
  margin: 0 0.5rem 0.5rem 0;
}

.brand-library-section { max-width: 1200px; margin: 24px auto; padding: 0 24px; }
.brand-library-section h2 { font-size: 20px; }
.brand-library-section summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 600; }
.brand-library-section summary:focus-visible { outline: 3px solid #10243c; outline-offset: 2px; }
.brand-library-section details[open] .product-connections-switch { padding-top: 12px; }
html:not([lang^="zh"]) .product-connections-language-zh,
html[lang^="zh"] .product-connections-language-en { display: none; }

@media (max-width: 40rem) {
  .product-return-bar {
    position: fixed;
    inset: auto 0 0;
    min-height: calc(68px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px max(8px, env(safe-area-inset-right)) 5px max(8px, env(safe-area-inset-left));
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #d7dde5;
    box-sizing: border-box;
  }

  .product-return-bar .product-connections-action {
    min-height: 48px;
    padding: 8px 4px;
  }
  body:has(.product-return-bar) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  .product-connections-table table,
  .product-connections-table tbody,
  .product-connections-table tr,
  .product-connections-table th,
  .product-connections-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .product-connections-table thead {
    display: none;
  }

  .product-connections-table tr {
    border-bottom: 1px solid #d7dde5;
    margin-bottom: 0.75rem;
  }
}
