/* The two secondary controls are the two peer engineering-system entries. */
html[data-bioten-copy-presentation="calm-hierarchy-r2"]
  body#bioten-packaging-home-r15
  .bp7318-hero-actions {
  width: max-content;
  max-width: 100%;
  margin-inline: auto !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap !important;
}

html[data-bioten-copy-presentation="calm-hierarchy-r2"]
  body#bioten-packaging-home-r15
  .bp7318-hero-actions
  .bp-dual-system-cta {
  flex: 0 0 auto;
  min-width: 0;
}

html[data-bioten-copy-presentation="calm-hierarchy-r2"]
  body#bioten-packaging-home-r15
  .bp7318-hero-actions
  .bp-dual-system-cta--surface {
  border-color: rgba(31, 85, 122, 0.32) !important;
}

@media (max-width: 1040px) {
  html[data-bioten-copy-presentation="calm-hierarchy-r2"]
    body#bioten-packaging-home-r15
    .bp7318-hero-actions {
    width: min(620px, 100%);
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  html[data-bioten-copy-presentation="calm-hierarchy-r2"]
    body#bioten-packaging-home-r15
    .bp7318-hero-actions
    .bp7140-button--primary {
    grid-column: 1 / -1;
  }

  html[data-bioten-copy-presentation="calm-hierarchy-r2"]
    body#bioten-packaging-home-r15
    .bp7318-hero-actions
    .bp7140-button {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 560px) {
  html[data-bioten-copy-presentation="calm-hierarchy-r2"]
    body#bioten-packaging-home-r15
    .bp7318-hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-bioten-copy-presentation="calm-hierarchy-r2"]
    body#bioten-packaging-home-r15
    .bp7318-hero-actions
    .bp7140-button--primary {
    grid-column: auto;
  }
}
