/* Hide on desktop; show on mobile */
@media (min-width: 783px) {
  .mobile-cta-bar { display: none !important; }
}

.mobile-cta-bar {
  /* Only account for iOS home indicator safe area; no admin offset here */
  --safe: env(safe-area-inset-bottom, 0px);

  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--safe);
  z-index: 9999;
  background: #fff;
  color: #fff;
  margin: 0;
  padding:
    10px
    calc(12px + env(safe-area-inset-right, 0px))
    calc(10px + var(--safe))
    calc(12px + env(safe-area-inset-left, 0px));
  transform: translateY(0);
  transition: transform 220ms ease;
  will-change: transform;
  /* Subtle elevation */
  box-shadow: 0 -6px 18px rgba(0,0,0,.2);
}

/* Fully hide: slide the bar itself + the safe area (no admin offset) */
.mobile-cta-bar.is-hidden {
  transform: translateY(calc(100% + var(--safe)));
  box-shadow: none;
}

/* Responsive grid that auto-fits as many buttons as will comfortably fit.
   Each button can shrink to ~112px and will wrap to a new row when needed. */
.mobile-cta-bar__list {
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

/* Keep list items clean */
.mobile-cta-bar__item {
  margin: 0;
}

/* Flexible button that allows text to wrap without overflowing */
.mobile-cta-bar__link {
    position: relative;
    display: flex;
    align-items:center;
	justify-content:center;
    text-align: center;
    padding: 10px 12px 10px 40px;
    min-width: 0;
    text-decoration: none;
    color: #000;
    background: #fff;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    min-height: 44px;
    border: 1px solid #ededed;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, .05);
    border-radius: 8px;
	overflow-wrap:anywhere;
	--text-nudge-y: 0px;
	gap:6px;
}

.mobile-cta-bar__link:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Icon remains fixed-size */
.mobile-cta-bar__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;       /* icon doesn't capture taps */
}

/* Text can wrap and break long words/URLs if needed */
.mobile-cta-bar__text {
  display: block;
  white-space: normal;        /* allow wrapping */
  color:#000;
  min-width:0;
  transform:translateY(var(--text-nudge-y));
}

/* Optional: slightly tighter on very narrow screens */
@media (max-width: 360px) {
  .mobile-cta-bar__link {
    padding: 9px 10px;
    font-size: 13px;
  }
}

.mobile-cta-bar__link {
  position: relative;   /* anchor the absolutely positioned icon */
}

.mobile-cta-bar__icon-fa {
  left: 12px;
  top: 50%;
  font-size: 20px;
  color: #000;
  line-height: 1;
  pointer-events: none;
}

.mobile-cta-bar__fallback {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
}

.mobile-cta-bar__btn button {
    width: 100%!important;
    background: transparent!important;
    border: 2px solid black!important;
    color: #000!important;
    font-weight: 600;
}

.mobile-cta-bar__btn{
width:100%;
}