/* AWCRA Membership Badges v4.9.0 */
.awcra-membership-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  line-height:0;
  vertical-align:middle;
}
.awcra-membership-badge img{
  display:block;
  width:100%;
  height:auto;
  max-width:220px;
  object-fit:contain;
  filter:drop-shadow(0 7px 12px rgba(4,27,61,.16));
}
.awcra-membership-badge--catalog{
  display:flex;
  width:100%;
  min-height:58px;
  margin:0 auto 12px;
}
.awcra-membership-badge--catalog img{
  max-width:190px;
  max-height:68px;
}
.awcra-membership-badge--table{
  display:flex;
  min-height:44px;
  margin:0 auto 8px;
}
.awcra-membership-badge--table img{
  max-width:145px;
  max-height:52px;
}
.awcra-membership-badge--member img,
.awcra-membership-badge--profile img{
  max-width:210px;
  max-height:76px;
}
.awcra-membership-badge--directory img{
  max-width:142px;
  max-height:48px;
}
.awcra-membership-badge--directory{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  margin-left:0!important;
  transform-origin:left center;
}
.awcra-verified.awcra-badge-upgraded .awcra-membership-badge--directory,
.awcra-verified-badge.awcra-badge-upgraded .awcra-membership-badge--directory,
.awcra-member-verified.awcra-badge-upgraded .awcra-membership-badge--directory,
[data-awcra-verification-badge].awcra-badge-upgraded .awcra-membership-badge--directory{
  justify-content:flex-start!important;
  margin-left:0!important;
}
.awcra-verified.awcra-badge-upgraded,
.awcra-verified-badge.awcra-badge-upgraded,
.awcra-member-verified.awcra-badge-upgraded,
[data-awcra-verification-badge].awcra-badge-upgraded{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.awcra-membership-badge--inline img{
  max-width:180px;
  max-height:62px;
}


/* Individual membership detail pages intentionally show no membership badges. */
body.awcra-individual-membership-page .awcra-membership-badge,
body.awcra-individual-membership-page .awcra-card-badge-slot{
  display:none!important;
}
body.awcra-individual-membership-page .awcra-has-plan-badge{
  position:initial;
}

/* Replace small generic text pills with the richer membership badge. */
.awcra-verified.awcra-badge-upgraded,
.awcra-verified-badge.awcra-badge-upgraded,
.awcra-member-verified.awcra-badge-upgraded,
[data-awcra-verification-badge].awcra-badge-upgraded{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.awcra-badge-upgraded .awcra-membership-badge{
  display:flex;
}

/* All five membership category cards must be the same width on desktop. */
.awcra-five-plan-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:0!important;
}
.awcra-five-plan-grid > *{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  flex:initial!important;
}

/* Keep the feature column separate while making all five plan columns equal. */
.awcra-five-plan-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:inherit;
}
.awcra-five-plan-table{
  width:100%!important;
  min-width:1160px!important;
  table-layout:fixed!important;
}
.awcra-five-plan-table th,
.awcra-five-plan-table td{
  box-sizing:border-box!important;
}
.awcra-five-plan-table th:first-child,
.awcra-five-plan-table td:first-child{
  width:25%!important;
  min-width:250px!important;
  max-width:25%!important;
}
.awcra-five-plan-table th:not(:first-child),
.awcra-five-plan-table td:not(:first-child){
  width:15%!important;
  min-width:0!important;
  max-width:15%!important;
}
.awcra-five-plan-table thead th:not(:first-child){
  text-align:center!important;
  vertical-align:middle!important;
  padding-left:12px!important;
  padding-right:12px!important;
}
.awcra-five-plan-table thead th .awcra-membership-badge{
  margin-left:auto;
  margin-right:auto;
}
.awcra-five-plan-table thead th h2,
.awcra-five-plan-table thead th h3,
.awcra-five-plan-table thead th h4,
.awcra-five-plan-table thead th strong{
  overflow-wrap:anywhere;
}

/* Common AWCRA layouts found in Elementor and the Site Kit. */
.awcra-membership-card.awcra-has-plan-badge,
.awcra-plan-card.awcra-has-plan-badge,
.membership-card.awcra-has-plan-badge,
.mepr-price-box.awcra-has-plan-badge,
.awcra-category-card.awcra-has-plan-badge{
  position:relative;
}
.awcra-card-badge-slot{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:62px;
  margin:0 0 10px;
}

@media (max-width:1200px){
  .awcra-five-plan-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!important;
  }
  .awcra-five-plan-grid > *:last-child:nth-child(odd){
    grid-column:1/-1;
  }
}
@media (max-width:680px){
  .awcra-five-plan-grid{
    grid-template-columns:1fr!important;
  }
  .awcra-five-plan-grid > *:last-child:nth-child(odd){
    grid-column:auto;
  }
  .awcra-membership-badge--catalog img{
    max-width:170px;
  }
  .awcra-membership-badge--member img,
  .awcra-membership-badge--profile img{
    max-width:180px;
  }
  .awcra-membership-badge--directory img{
    max-width:126px;
    max-height:44px;
  }
}

/* v5.3.7: membership badges are visible only on the logged-in member dashboard. */
body.awcra-badges-dashboard-only .awcra-membership-badge,
body.awcra-badges-dashboard-only .awcra-card-badge-slot{
  display:none!important;
}
body.awcra-member-dashboard-page .awcra-membership-badge.awcra-membership-badge--dashboard,
body.awcra-member-dashboard-page #awcra-member-dashboard .awcra-membership-badge,
body.awcra-member-dashboard-page .awcra-member-dashboard .awcra-membership-badge,
body.awcra-member-dashboard-page .member-dashboard .awcra-membership-badge,
body.awcra-member-dashboard-page [data-awcra-member-dashboard] .awcra-membership-badge{
  display:inline-flex!important;
}
.awcra-membership-badge--dashboard{
  align-items:center;
  justify-content:flex-start;
  margin-top:10px;
}
.awcra-membership-badge--dashboard img{
  width:auto;
  max-width:190px;
  max-height:68px;
}


/* v5.3.9: compact the detected footer while allowing Elementor manual overrides. */
.awcra-footer-detected,.awcra-footer-detected *{box-sizing:border-box}
.awcra-footer-manual-yes{position:relative}
.awcra-footer-manual-yes.awcra-footer-detected,.awcra-footer-manual-yes .awcra-footer-detected{padding:inherit}
