/* Shared product switcher for both marketing sites. */
:root .page .products-panel {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px)) !important;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: row;
  padding: 8px;
  gap: 6px;
  background: #fff;
  border: 1px solid #e4e8ec;
  border-radius: 18px;
  box-shadow: 0 16px 48px -12px rgb(25 38 52 / 22%);
}

:root .page .products-panel > a {
  --product-color: #52732a;
  --product-tint: #f4f8ed;
  box-sizing: border-box;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: #202a35;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

:root .page .products-panel > a:last-child {
  --product-color: #2864ac;
  --product-tint: #f0f6fd;
}

:root .page .products-panel > a + a {
  border-left-color: #e9edf1;
}

:root .page .products-panel > a[aria-current],
:root .page .products-panel > a:has(.ui-text-4) {
  background: var(--product-tint);
}

:root .page .products-panel > a:hover {
  background: var(--product-tint);
  border-color: var(--product-color);
}

:root .page .products-panel > a:focus-visible {
  outline: 2px solid var(--product-color);
  outline-offset: -2px;
  background: var(--product-tint);
}

:root .page .products-panel .ui-text {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

:root .page .products-panel .ui-text-2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
}

:root .page .products-panel .ui-text-3 {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--product-color);
}

:root .page .products-panel .ui-text-4 {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 3px;
  padding: 3px 0;
  gap: 5px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  background: transparent;
  color: var(--product-color);
}

:root .page .products-panel .ui-text-5 {
  max-width: 350px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #606a76;
}

:root .page [data-toggle="products"] svg { transition: transform 160ms ease; }
:root .page [data-toggle="products"][aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 900px) {
  :root .page .products-panel { width: auto !important; flex-direction: column; }
  :root .page .products-panel > a + a { border-left-color: transparent; border-top-color: #e9edf1; }
  :root .page .products-panel > a { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :root .page .products-panel > a,
  :root .page [data-toggle="products"] svg { transition: none; }
}
