/* =========================================================
   GIFTALAYA — COMMON FOOTER STYLESHEET
   ========================================================= */

.g-common-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  user-select: none;
}

.g-common-footer.show {
  display: flex !important;
  transform: translateY(0);
}

.g-common-footer.hide {
  transform: translateY(100%);
  display: none !important;
}


/* Left: Branding */
.g-footer-left {
  display: flex;
  align-items: center;
}

.g-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.g-brand-link:hover {
  opacity: 0.85;
}

.g-brand-logo {
  height: 26px;
  width: auto;
  max-width: 95px;
  object-fit: contain;
  display: block;
}

/* Right: Services & Dynamic Flashing Text */
.g-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  overflow: hidden;
  max-width: 60%;
}

.g-services-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #777;
  line-height: 1.1;
  margin-bottom: 2px;
  white-space: nowrap;
}

.g-services-ticker {
  position: relative;
  height: 15px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.g-ticker-item {
  position: absolute;
  right: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #744b9e;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.g-ticker-item.active {
  opacity: 1;
  transform: translateY(0);
}

.g-ticker-flash {
  display: inline-block;
  animation: gTickerFlashPulse 1.6s ease-in-out infinite;
}

@keyframes gTickerFlashPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 1px rgba(208, 74, 155, 0.3));
  }
  50% {
    opacity: 0.72;
    transform: scale(0.96);
    filter: drop-shadow(0 0 5px rgba(208, 74, 155, 0.6));
  }
}

/* Hide footer in index previews or preview mode */
body.is-preview .g-common-footer,
.is-preview .g-common-footer,
body.is-preview #g-common-footer,
.is-preview #g-common-footer {
  display: none !important;
}

@media (max-width: 340px) {
  .g-brand-logo {
    max-width: 78px;
    height: 22px;
  }
  .g-services-title {
    font-size: 7.5px;
  }
  .g-ticker-item {
    font-size: 9px;
  }
}
