/**
 * Mobile app banner for Addison Lee
 * Created: 4/7/26
 * Updated: 30/7/26
 * By Adam Jones
 */

.al-app-banner {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  padding: 10px 15px;
  box-sizing: border-box;
  z-index: 100000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  left: 0;
  right: 0;
  top: 0;
  background-color: #f9fafb;
  color: #111827;
  animation: al-app-banner-in 0.5s ease;
  transition: transform 0.4s ease;
}

.has-al-app-banner {
  --al-app-banner-height: 0px;
}

.has-al-app-banner #masthead,
.has-al-app-banner .site-header {
  top: var(--al-app-banner-height);
  transition: top 0.4s ease;
}

.has-al-app-banner #content.site-content {
  padding-top: calc(108px + var(--al-app-banner-height));
}

.al-app-banner.closing {
  transform: translateY(-100%);
}

.al-app-banner.hidden {
  display: none;
}

@keyframes al-app-banner-in {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

.al-app-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 12px;
  background: #ddd;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.al-app-banner__icon img {
  width: 100%;
  height: auto;
  display: block;
}

.al-app-banner__info {
  flex: 1;
  min-width: 0;
}

.al-app-banner__name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-app-banner__subtitle {
  font-size: 11px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-app-banner__button {
  margin-left: 15px;
  flex-shrink: 0;
}

.al-app-banner__download {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 0.125rem;
  text-decoration: none;
  font-family: Steagal, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.088rem;
  text-align: center;
  white-space: nowrap;
  background-color: #111827;
  color: #fff;
  transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.al-app-banner__download:hover {
  background-color: #ffd900;
  color: #000;
}

.al-app-banner__close {
  margin-left: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  color: #000;
}

@media screen and (max-width: 480px) {
  .al-app-banner__subtitle {
    max-width: 150px;
  }
}

@media screen and (max-width: 385px) {
  .al-app-banner__icon {
    display: none;
  }
}

@media screen and (max-width: 360px) {
  .al-app-banner__icon {
    width: 40px;
    height: 40px;
  }

  .al-app-banner__download {
    padding: 6px 10px;
  }
}
