/* ==========================================================================
   Somerset West Taxi Tours — Site-wide PWA Install Banner
   Moved here from the somerset-taxi-tours theme so the "Install App" banner
   for the main site (as opposed to the standalone /pwa-app/ mini-app, whose
   own styles live in assets/css/swtt-app.css) keeps working no matter which
   theme is active. Values below are the same ones the theme's --swtt-* CSS
   variables previously resolved to, hardcoded here on purpose — this file
   must not depend on another stylesheet defining those variables first.
   ========================================================================== */

/* Hidden by default; site-pwa-install-banner.js / site-pwa-install-banner-ios.js
   remove the [hidden] attribute only once a real install opportunity exists. */
.swtt-pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #14181A;
  color: #F7F4EC;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.swtt-pwa-banner[hidden] {
  display: flex; /* keep flex layout ready; visibility is via transform/opacity */
}

.swtt-pwa-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.swtt-pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.swtt-pwa-banner-icon {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid rgba(201,154,62,.65);
  border-radius:8px;
  color:#C99A3E;
  font-size:18px;
  font-weight:700;
  flex-shrink:0;
}

.swtt-pwa-banner-share-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #C99A3E;
}

.swtt-pwa-banner--ios .swtt-pwa-banner-text span {
  white-space: normal;
}

.swtt-pwa-banner--ios .swtt-pwa-banner-text span strong {
  color: #C99A3E;
  font-weight: 700;
}

.swtt-pwa-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swtt-pwa-banner-text strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.swtt-pwa-banner-text span {
  font-size: 11px;
  color: rgba(247, 244, 236, 0.7);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swtt-pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.swtt-pwa-banner-install {
  background: #C99A3E;
  color: #14181A;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.swtt-pwa-banner-install:disabled {
  opacity: 0.6;
  cursor: default;
}

.swtt-pwa-banner-dismiss {
  background: transparent;
  border: none;
  color: rgba(247, 244, 236, 0.6);
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}

.swtt-pwa-banner-dismiss:hover {
  color: #F7F4EC;
}

@media (min-width: 640px) {
  .swtt-pwa-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
  }

  .swtt-pwa-banner-text span {
    white-space: normal;
  }
}

@media (max-width: 959px) {
  .swtt-pwa-banner { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}
