/* Container-aware trustbar layout; isolated from other button styles. */
/* ===== SbTrustModals v1.14.2 — intrinsic-width responsive trustbar =====
 * Five buttons are centered in ONE row while their actual container fits.
 * Narrow containers use 3+2 equal-width buttons, second row centered.
 * Only the all-trustbar layout is affected; other styles are untouched.
 * ResizeObserver (with resize fallback) toggles the split class.
 */
html body:not(#_) .sbtm-block.sbtm-layout-trustbar > .sbtm-grid {
  display: flex !important;
  flex-flow: row nowrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  width: 100% !important;
  margin-inline: auto !important;
  column-gap: 0 !important;
  row-gap: 4px !important;
  box-sizing: border-box !important;
}
html
  body:not(#_)
  .sbtm-block.sbtm-layout-trustbar
  > .sbtm-grid
  > .sbtm-style-trustbar {
  flex: 1 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 4px 2px !important;
  gap: 2px !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  justify-content: center !important;
}
/* Explicit wrapping avoids an unbalanced 4+1 layout on older narrow phones. */
html
  body:not(#_)
  .sbtm-block.sbtm-layout-trustbar
  > .sbtm-grid.sbtm-trustbar-split {
  flex-wrap: wrap !important;
}
html
  body:not(#_)
  .sbtm-block.sbtm-layout-trustbar
  > .sbtm-grid.sbtm-trustbar-split
  > .sbtm-style-trustbar {
  flex: 0 0 calc(100% / var(--sbtm-trustbar-wrap-cols, 3)) !important;
  max-width: calc(100% / var(--sbtm-trustbar-wrap-cols, 3)) !important;
}
@media (max-width: 767.98px) {
  html
    body:not(#_)
    .sbtm-block.sbtm-layout-trustbar
    > .sbtm-grid
    > .sbtm-style-trustbar {
    min-height: 54px !important;
    padding: 4px 1px !important;
  }
  html
    body:not(#_)
    .sbtm-block.sbtm-layout-trustbar
    > .sbtm-grid
    > .sbtm-style-trustbar
    .sbtm-trigger-title {
    font-weight: 500 !important;
    font-size: 11.5px;
    line-height: 1.4;
  }
}

/* Trustbar equal-width wrapping classes are toggled by the responsive controller. */
.sbtm-block.sbtm-layout-trustbar > .sbtm-grid.sbtm-wrap-cols-1 {
  --sbtm-trustbar-wrap-cols: 1;
}
.sbtm-block.sbtm-layout-trustbar > .sbtm-grid.sbtm-wrap-cols-2 {
  --sbtm-trustbar-wrap-cols: 2;
}
.sbtm-block.sbtm-layout-trustbar > .sbtm-grid.sbtm-wrap-cols-3 {
  --sbtm-trustbar-wrap-cols: 3;
}
