#stonkShopViewer {
  --stonk-accent: #7c3aed;
  --stonk-ink: #211a3a;
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 2147483000;
  color: var(--stonk-ink);
  font: 14px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#stonkShopViewer[hidden], #stonkShopViewer [hidden] { display: none !important; }

.stonk-shop-trigger {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(124, 58, 237, .24);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff 0%, #f5f0ff 100%);
  box-shadow: 0 12px 32px rgba(35, 21, 77, .22);
  color: var(--stonk-ink);
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.stonk-shop-trigger:hover { transform: translateY(-1px); }
.stonk-shop-trigger b { font-size: 13px; }
.stonk-shop-trigger em {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--stonk-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: normal;
}

.stonk-shop-panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 100px));
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 60px rgba(20, 12, 50, .3);
}

.stonk-shop-panel > header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ece8f7;
  background: linear-gradient(135deg, #faf8ff, #fff5f7);
}

.stonk-shop-panel header div { min-width: 0; }
.stonk-shop-panel header strong, .stonk-shop-panel header small { display: block; }
.stonk-shop-panel header strong { font-size: 15px; }
.stonk-shop-panel header small { margin-top: 2px; color: #756c8c; font-size: 11px; }
.stonk-shop-panel header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #eee9fa;
  color: #463c5f;
  cursor: pointer;
}
.stonk-shop-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; pointer-events: none; }
.stonk-shop-trigger .stonk-shop-icon { width: 18px; height: 18px; }
.stonk-shop-panel header button .stonk-shop-icon { width: 18px; height: 18px; }

.stonk-shop-list { max-height: min(530px, calc(100vh - 180px)); overflow: auto; padding: 10px; }
.stonk-shop-card {
  padding: 9px;
  border-radius: 13px;
  color: inherit;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.stonk-shop-card:hover { background: #f6f2ff; }
.stonk-shop-card img, .stonk-shop-image { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: #f0edf6; }
.stonk-shop-image { display: grid; place-items: center; color: #7c3aed; }
.stonk-shop-image .stonk-shop-icon { width: 24px; height: 24px; }
.stonk-shop-card span { min-width: 0; }
.stonk-shop-card strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12.5px; }
.stonk-shop-card small, .stonk-shop-card span > b { display: block; margin-top: 3px; }
.stonk-shop-card small { color: #756c8c; font-size: 11px; }
.stonk-shop-card span > b { color: #e11d48; font-size: 12px; }
.stonk-shop-card > em { color: var(--stonk-accent); font-size: 11px; font-style: normal; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.stonk-shop-card > em .stonk-shop-icon { width: 12px; height: 12px; }
.stonk-shop-empty { padding: 24px 14px; color: #716985; text-align: center; font-size: 12px; }
.stonk-shop-player-host { position: absolute; inset: 0; z-index: 2147483000; display: block; background: #000; border-radius: 8px; overflow: hidden; }
.stonk-shop-video-loader {
  position: absolute;
  inset: 0;
  z-index: 21;
  border-radius: 8px;
  background: rgba(0, 0, 0, .86);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(2px);
}
.stonk-shop-video-loader i { width: 34px; height: 34px; border: 4px solid rgba(255,255,255,.2); border-top-color: #fe2c55; border-radius: 50%; animation: stonk-shop-spin 1s linear infinite; }
.stonk-shop-video-loader.is-error { color: #ffb4bc; cursor: pointer; }
.stonk-shop-video-loader.is-error i { display: none; }
@keyframes stonk-shop-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  #stonkShopViewer { right: 10px; bottom: 12px; }
  .stonk-shop-trigger b { display: none; }
  .stonk-shop-panel { right: -2px; bottom: 52px; }
}
