/* =========================================================================
   iFashionHat App Download Banner — 仿 Amazon 底部 sticky 条
   所有选择器前缀 .ifh-app-banner / #ifh-app-banner（隔离作用域）
   ========================================================================= */

#ifh-app-banner.ifh-app-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

#ifh-app-banner.ifh-app-banner.ifh-app-banner-visible {
  opacity: 1;
  transform: translateY(0);
}

#ifh-app-banner[hidden] {
  display: none;
}

.ifh-app-banner-inner {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.ifh-app-banner-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #FF2442;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ifh-app-banner-text {
  flex: 1;
  min-width: 0;
}

.ifh-app-banner-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #fff;
}

.ifh-app-banner-sub {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ifh-app-banner-cta {
  flex-shrink: 0;
  background: #FF2442;
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}

.ifh-app-banner-cta:hover {
  background: #e61e3a;
  color: #fff;
}

.ifh-app-banner-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #888;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.ifh-app-banner-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ifh-app-banner-close:focus {
  outline: 2px solid #FF2442;
  outline-offset: 1px;
}

/* ====== Mobile responsive ====== */
@media (max-width: 600px) {
  #ifh-app-banner.ifh-app-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .ifh-app-banner-inner {
    padding: 10px 12px;
    gap: 10px;
  }
  .ifh-app-banner-icon {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  .ifh-app-banner-title {
    font-size: 13px;
  }
  .ifh-app-banner-sub {
    font-size: 11px;
  }
  .ifh-app-banner-cta {
    padding: 7px 12px;
    font-size: 12px;
  }
  .ifh-app-banner-close {
    font-size: 20px;
    padding: 2px 6px;
  }
}
