/* LiveMe gift sheet — icon grid + balance footer */

body.liveme-native-body .live_footer_holder.live_footer_holder_show,
.liveme-native-root .live_footer_holder.live_footer_holder_show {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 800 !important;
  max-height: min(72vh, 620px) !important;
  background: linear-gradient(180deg, rgba(22, 18, 32, 0.98), rgba(10, 10, 14, 0.99)) !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 -20px 48px rgba(0, 0, 0, 0.55) !important;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: auto !important;
}

.liveme-gift-panel {
  color: #fff;
}

.liveme-gift-panel__handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.liveme-gift-panel__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 4px 12px;
}

.liveme-gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: min(48vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 520px) {
  .liveme-gift-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.liveme-gift-cell {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  padding: 10px 6px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease !important;
  min-height: 108px !important;
  width: 100% !important;
  box-shadow: none !important;
}

.liveme-gift-cell:hover,
.liveme-gift-cell:focus-visible,
.liveme-gift-cell.is-active {
  border-color: rgba(157, 29, 255, 0.7);
  background: rgba(157, 29, 255, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.liveme-gift-cell__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liveme-gift-cell__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.liveme-gift-cell__name {
  font-size: 11px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.92;
}

.liveme-gift-cell__cost {
  font-size: 11px;
  font-weight: 800;
  color: #fcbb55;
}

.liveme-gift-panel__footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-between;
  gap: 10px;
}

.liveme-gift-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(157, 29, 255, 0.28), rgba(255, 82, 109, 0.2));
}

.liveme-gift-balance__label {
  font-size: 12px;
  opacity: 0.8;
}

.liveme-gift-balance .crnblnc {
  font-size: 15px;
  font-weight: 800;
}

.liveme-gift-panel__hint {
  font-size: 11px;
  opacity: 0.65;
}

/* Hide legacy swiper only outside LiveMe gift panel (Nuxt grid uses .liveme-gift-panel) */
.liveme-native-root .live_gif_coins_list:not(.liveme-gift-panel__legacy),
.liveme-native-root .live_footer_holder .mySwiper {
  display: none !important;
}

.liveme-native-root .liveme-gift-panel .liveme-gift-grid {
  display: grid !important;
}

.liveme-native-root .live_gift_call {
  background: url("/themes/default/static/liveme-ref/icon_tool_gift.CEnXrBQQ.png") center / contain no-repeat !important;
  width: 48px !important;
  height: 48px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  filter: drop-shadow(0 4px 12px rgba(157, 29, 255, 0.45));
}
