#serial-product-list[hidden],
#serial-quick-selector[hidden],
:is(#gateway-category-support, #serial-category-support)[hidden] {
  display: none !important;
}
.serial-catalogue-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  padding: 3px;
  background: #f0f5f7;
  border: 1px solid #dce7ec;
  border-radius: 10px;
  scroll-margin-top: 130px;
}
.serial-catalogue-tabs button {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 33px;
  border: 1px solid #d8e5eb;
  border-radius: 7px;
  padding: 3px 10px;
  background: #fff;
  color: #254f63;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
.serial-catalogue-tabs button::before {
  content: '';
  flex: 0 0 18px;
  height: 18px;
  background: currentColor;
  mask: var(--serial-tab-icon) center / contain no-repeat;
}
#serial-quick-selector-tab {
  --serial-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18l-7 8v5l-4 2v-7z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#serial-product-list-tab {
  --serial-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:is(#gateway-category-support-tab, #serial-category-support-tab) {
  --serial-tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6c-3-2-6-2-9-1v14c3-1 6-1 9 1 3-2 6-2 9-1V5c-3-1-6-1-9 1zm0 0v14' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.serial-catalogue-tabs-with-guide button {
  min-height: 48px;
  padding: 4px 8px;
}
.serial-tab-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}
.serial-tab-copy small {
  color: #436779;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}
.serial-catalogue-tabs [aria-selected="true"] small {
  color: #e5f7f8;
}
:is(#gateway-category-support, #serial-category-support) {
  margin-top: 0;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav a {
  display: block;
  min-width: 0;
  min-height: 48px;
  padding: 5px 24px 5px 10px;
  border: 1px solid #ccdee7;
  background: #fff;
  color: #184759;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  transition: border-color .15s;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav a small {
  display: block;
  margin-top: 2px;
  color: #486875;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav a::after {
  content: '›';
  position: absolute;
  left: auto;
  right: 8px;
  top: 50%;
  bottom: auto;
  height: auto;
  transform: translateY(-50%);
  background: none;
  color: inherit;
  font-size: 21px;
  line-height: 1;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav a:hover {
  border-color: #78b4be;
  background: #effafb;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav a[aria-selected="true"] {
  border-color: #086a75;
  background: #086a75;
  color: #fff;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav a[aria-selected="true"] small {
  color: #e5f7f8;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav a:focus-visible {
  outline: 2px solid #087d89;
  outline-offset: 2px;
}
:is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav button {
  align-self: center;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 950px) {
  :is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(#gateway-category-support, #serial-category-support) .fcsg-tab-nav button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}
.serial-catalogue-tabs [aria-selected="false"]:hover {
  background: #f1fbfc;
  border-color: #a7cdd3;
}
.serial-catalogue-tabs [aria-selected="true"] {
  background: linear-gradient(115deg, #086271, #087982);
  border-color: #086a75;
  box-shadow: 0 3px 8px rgb(8 98 113 / 19%);
  color: #fff;
}
@media (max-width: 600px) {
  .serial-catalogue-tabs button {
    gap: 6px;
    min-height: 44px;
    font-size: 16px;
  }
  .serial-catalogue-tabs-with-guide {
    gap: 4px;
  }
  .serial-catalogue-tabs-with-guide button {
    padding-inline: 3px;
  }
  .serial-catalogue-tabs-with-guide button::before {
    display: none;
  }
  .serial-tab-copy small {
    font-size: 10px;
  }
}
.serial-catalogue-tabs button:focus-visible {
  outline: 2px solid #b52137;
  outline-offset: 2px;
}
#serial-quick-selector {
  clear: both;
  margin-bottom: 20px;
  scroll-margin-top: 130px;
}
#serial-quick-selector iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 1px solid #dce7ec;
  border-radius: 12px;
  background: #f5f8fa;
}

/* Match the catalogue breakpoint that hides its sidebar. */
@media (min-width: 768px) and (max-width: 1399px) {
  .webbg > .container > .row > .col-lg-9:has(> #serial-quick-selector) {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
