:root{
  --fb-adbar-safe-padding: env(safe-area-inset-bottom, 0px);
}

.fb-adbar-noscroll{
  overscroll-behavior: none;
  touch-action: none;
}

.fb-adbar-overlay{
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  pointer-events: none;
  background: rgba(0,0,0,0) !important;
  transition: background 180ms ease;
}

.fb-adbar-overlay.is-visible{
  pointer-events: auto;
  background: rgba(0,0,0,.8) !important;
}

.fb-adbar-root{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(110%);
  transition: transform 220ms ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  z-index: 2147483647;
}

.fb-adbar-overlay.is-visible .fb-adbar-root{
  transform: translateY(0);
}

.fb-adbar-headline{
  position: relative;
  background: #fff;
  color: #2a77b8;
  text-align: center;
  font-size: 20px;
  line-height: 1.2;
  padding: 12px 84px 12px 10px; /* space for close link */
  border-top: 1px solid rgba(0,0,0,.08);
}

.fb-adbar-close{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #2a77b8;
  font-weight: 700;
  text-decoration: underline;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.85);
}

.fb-adbar-card{
  background: #fff;
  padding: 0 0 calc(var(--fb-adbar-safe-padding) + 10px) 0;
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -6px 18px rgba(0,0,0,.12);
}

.fb-adbar-inner{
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* Center ad horizontally when enabled */
.fb-adbar-overlay.is-centered .fb-adbar-inner{
  display: flex;
  justify-content: center;
}

.fb-adbar-link{
  display: block;
  width: 100%;
  text-decoration: none;
  position: relative;
}

.fb-adbar-img{
  width: 100%;
  height: auto;
  display: block;
}

.fb-adbar-cta{
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  height: 54px;
  border-radius: 10px;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.fb-adbar-cta-text{
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

.fb-adbar-cta-arrow{
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.fb-adbar-custom{
  width: 100%;
  display: block;
}

.fb-adbar-overlay.is-centered .fb-adbar-custom{
  display: flex;
  justify-content: center;
}

.fb-adbar-overlay.is-centered .fb-adbar-custom > *{
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 900px){
  .fb-adbar-headline{ font-size: 18px; }
  .fb-adbar-cta{ height: 50px; }
  .fb-adbar-cta-text{ font-size: 20px; }
}