/* Shared Avada global-element styling. */
#wrapper #main .bn-home-compare-section {
  background: radial-gradient(circle at 18% 8%, rgba(116, 74, 255, .09), transparent 30%), #06091f !important;
}

#wrapper #main .bn-home-compare-section > .fusion-builder-row {
  width: calc(100% - 64px) !important;
  max-width: 1420px !important;
  margin-inline: auto !important;
}

#wrapper #main .bn-home-compare-section .fusion-column-wrapper {
  overflow-x: auto;
  scrollbar-color: #7256f5 #11162e;
  scrollbar-width: thin;
}

#wrapper #main .bn-home-compare-section .bn-section-title .fusion-title-heading {
  color: #fff !important;
  font-size: clamp(34px, 4vw, 54px) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

#wrapper #main .bn-home-compare-section .bn-section-lead {
  max-width: 720px;
  margin: 0 auto 34px;
  color: #97a1b8;
  font-size: 16px;
  line-height: 1.55;
}

#wrapper #main .bn-home-compare-section table {
  width: 100% !important;
  min-width: 900px;
  margin: 0 !important;
  table-layout: fixed;
  border: 1px solid rgba(148, 163, 204, .18) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: #12162f !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

#wrapper #main .bn-home-compare-section th {
  width: 22%;
  height: 225px;
  padding: 22px 26px !important;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 204, .14) !important;
  background: #161a35 !important;
  color: #fff !important;
  text-align: center !important;
}

#wrapper #main .bn-home-compare-section th:first-child {
  width: 34%;
  vertical-align: bottom;
  text-align: left !important;
}

#wrapper #main .bn-home-compare-section th:last-child,
#wrapper #main .bn-home-compare-section tbody tr:not(.bn-cmp-category) td:last-child {
  border-left: 1px solid rgba(139, 92, 246, .48) !important;
  border-right: 1px solid rgba(139, 92, 246, .48) !important;
  background: rgba(73, 53, 151, .22) !important;
}

#wrapper #main .bn-home-compare-section th:last-child {
  border-top: 2px solid #8b5cf6 !important;
  background: radial-gradient(circle at 50% 0, rgba(139, 92, 246, .25), transparent 52%), rgba(73, 53, 151, .32) !important;
}

#wrapper #main .bn-home-compare-section td {
  height: 68px;
  padding: 14px 26px !important;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 204, .12) !important;
  background: #12162f !important;
  color: #b9c1d2 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

#wrapper #main .bn-home-compare-section tbody tr:not(.bn-cmp-category) td:first-child {
  color: #f2f4f9 !important;
  text-align: left !important;
}

#wrapper #main .bn-home-compare-section .bn-cmp-category td {
  height: 54px;
  padding: 16px 26px !important;
  background: #10142b !important;
  color: #a56aff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 1.8px;
  text-align: left !important;
  text-transform: uppercase;
}

/* The pricing global element remains a true grid wherever Avada inserts it. */
#wrapper #main .bnr-pricing .bn-membership-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch;
}

#wrapper #main .bnr-pricing .bn-membership-card {
  height: 100%;
}

/* Mobile comparison and membership behavior. */
@media (max-width: 980px) {
  #wrapper #main .bn-sub-page,
  #wrapper #main .bnr-pricing,
  #wrapper #main .bn-home-compare-section {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #wrapper #main .bn-sub-page {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  #wrapper #main .bn-sub-page > .fusion-builder-row,
  #wrapper #main .bn-sub-page .bn-sub-heading-column,
  #wrapper #main .bn-sub-page .bn-sub-heading-column > .fusion-column-wrapper,
  #wrapper #main .bn-sub-page .bn-sub-heading-column .fusion-title,
  #wrapper #main .bn-sub-page .bn-sub-heading-column .fusion-title-heading {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #wrapper #main .bn-sub-page .bn-sub-heading-column .fusion-title-heading {
    font-size: 52px !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }

  #wrapper #main .bnr-pricing .bnr-pricing-main,
  #wrapper #main .bnr-pricing .bnr-journey {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  #wrapper #main .bn-home-compare-section > .fusion-builder-row {
    width: calc(100% - 36px) !important;
  }

  #wrapper #main .bn-home-compare-section th:first-child,
  #wrapper #main .bn-home-compare-section tbody tr:not(.bn-cmp-category) td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 8px 0 18px rgba(0, 0, 0, .16);
  }

  #wrapper #main .bn-home-compare-section th:first-child {
    z-index: 3;
  }

  #wrapper #main .bnr-pricing .bn-membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  #wrapper #main .bn-home-compare-section {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  #wrapper #main .bn-home-compare-section .bn-section-lead {
    margin-bottom: 24px;
    font-size: 14px;
  }

  #wrapper #main .bn-home-compare-section table {
    min-width: 760px;
  }

  #wrapper #main .bn-home-compare-section th {
    height: 190px;
    padding: 18px !important;
  }

  #wrapper #main .bn-home-compare-section th:first-child {
    width: 230px;
  }

  #wrapper #main .bn-home-compare-section td {
    height: 58px;
    padding: 11px 18px !important;
  }
}

/* Mobile app-style navigation. It never appears on tablet/desktop. */
.bn-mobile-app-nav {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }

  #wrapper #main .bnr-pricing,
  #wrapper #main .bn-home-compare-section,
  #wrapper #main .bn-sub-page {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #wrapper #main .bn-sub-page {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  #wrapper #main .bn-sub-page > .fusion-builder-row,
  #wrapper #main .bn-sub-page .bn-sub-heading-column,
  #wrapper #main .bn-sub-page .bn-sub-heading-column > .fusion-column-wrapper,
  #wrapper #main .bn-sub-page .bn-sub-heading-column .fusion-title,
  #wrapper #main .bn-sub-page .bn-sub-heading-column .fusion-title-heading {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #wrapper #main .bn-sub-page .bn-sub-heading-column .fusion-title-heading {
    font-size: 38px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }

  #wrapper #main .bnr-pricing {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  #wrapper #main .bnr-pricing .bn-membership-grid,
  #wrapper #main .bnr-pricing .bn-membership-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  #wrapper #main .bnr-pricing .bn-membership-grid {
    grid-template-columns: 1fr !important;
    padding-right: 0;
    padding-left: 0;
  }

  .bn-mobile-app-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100050;
    display: grid;
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    border-top: 1px solid rgba(153, 170, 211, .2);
    background: rgba(8, 12, 31, .96);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .bn-mobile-app-nav__item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border-radius: 6px;
    color: #aeb8ce !important;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
  }

  .bn-mobile-app-nav__item i {
    display: block;
    color: currentColor;
    font-size: 19px;
    line-height: 1;
  }

  .bn-mobile-app-nav__item span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .bn-mobile-app-nav__item:hover,
  .bn-mobile-app-nav__item:focus-visible,
  .bn-mobile-app-nav__item.is-current {
    background: rgba(74, 199, 224, .1);
    color: #59d9e8 !important;
    transform: translateY(-1px);
  }

  .bn-mobile-app-nav__item:focus-visible {
    outline: 2px solid #59d9e8;
    outline-offset: -2px;
  }

  #openCloseWidget {
    display: none !important;
  }
}
