/*
 * LyricalMind Spotify promo widget
 * Dark theme tuned for LyricalMind's site (deep black + purple accent).
 * Every rule is scoped under #spotify-promo-widget so it doesn't collide with
 * the host Shopify theme. All tunables live in CSS variables at the top —
 * change brand colors in one place.
 */

#spotify-promo-widget {
  /* ---------- LyricalMind brand tokens ---------- */
  --lm-bg: #011623;                 /* main site bg */
  --lm-bg-elev: #081f35;            /* section contrast */
  --lm-bg-elev-2: #0d2a45;          /* hover state */
  --lm-fg: #f5f5f7;
  --lm-muted: #8ea3b5;
  --lm-border: rgba(255, 255, 255, 0.08);
  --lm-border-strong: rgba(255, 255, 255, 0.16);
  --lm-accent: #9933f4;             /* primary purple */
  --lm-accent-hi: #b866ff;          /* lighter purple */
  --lm-accent-fg: #ffffff;
  --lm-accent-ring: rgba(153, 51, 244, 0.32);
  --lm-secondary: #01a3fc;          /* secondary blue */
  --lm-secondary-hi: #48c0ff;
  --lm-danger: #f87171;
  --lm-radius: 14px;
  --lm-radius-sm: 10px;
  --lm-shadow: 0 10px 40px -12px rgba(153, 51, 244, 0.35), 0 4px 16px rgba(0, 0, 0, 0.4);

  /* ---------- Container (open landing-page layout, no box) ---------- */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  color: var(--lm-fg);
  background: transparent;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  text-align: center;
}

/* Step indicator hidden — we don't use it */
#spotify-promo-widget .lm-steps { display: none !important; }

/* Accent glow disabled since there's no card anymore */
#spotify-promo-widget::before {
  display: none;
}
#spotify-promo-widget.__unused_glow::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(153, 51, 244, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#spotify-promo-widget > * {
  position: relative;
  z-index: 1;
}

#spotify-promo-widget *,
#spotify-promo-widget *::before,
#spotify-promo-widget *::after {
  box-sizing: border-box;
}

/* ---------- Step indicator ---------- */
#spotify-promo-widget .lm-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

#spotify-promo-widget .lm-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  font-size: 13px;
  color: var(--lm-muted);
  transition: all 0.2s ease;
}

#spotify-promo-widget .lm-step-pill.is-active {
  background: var(--lm-accent);
  border-color: var(--lm-accent);
  color: var(--lm-accent-fg);
  box-shadow: 0 0 0 4px var(--lm-accent-ring);
}

#spotify-promo-widget .lm-step-pill.is-done {
  background: rgba(153, 51, 244, 0.12);
  border-color: rgba(153, 51, 244, 0.35);
  color: var(--lm-accent-hi);
  cursor: pointer;
}

#spotify-promo-widget .lm-step-pill.is-done:hover {
  background: rgba(153, 51, 244, 0.2);
  border-color: var(--lm-accent);
}

#spotify-promo-widget .lm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 12px;
}

#spotify-promo-widget .lm-step-pill:not(.is-active):not(.is-done) .lm-step-num {
  background: var(--lm-border-strong);
  color: var(--lm-muted);
}

#spotify-promo-widget .lm-step-pill.is-done .lm-step-num {
  background: var(--lm-accent);
  color: #fff;
}

#spotify-promo-widget .lm-step-name {
  white-space: nowrap;
  font-weight: 500;
}

#spotify-promo-widget .lm-step-sep {
  flex: 1;
  height: 1px;
  background: var(--lm-border);
}

/* ---------- Panel transitions ---------- */
#spotify-promo-widget .lm-panel {
  animation: lmFadeIn 0.3s ease-out both;
}

@keyframes lmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography ---------- */
#spotify-promo-widget .lm-heading {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px 0;
  color: var(--lm-fg);
  line-height: 1.1;
  text-transform: uppercase;
}

#spotify-promo-widget .lm-sub {
  font-size: 15px;
  color: var(--lm-muted);
  margin: 0 auto 28px auto;
  line-height: 1.6;
  max-width: 560px;
}

@media (max-width: 640px) {
  #spotify-promo-widget .lm-heading {
    font-size: 28px;
  }
}

#spotify-promo-widget .lm-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lm-muted);
  margin-bottom: 10px;
}

/* ---------- Step 1: search ---------- */
#spotify-promo-widget .lm-search-wrap {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

/* Group wraps the input + magnifying-glass icon so we can absolutely-position
   the icon inside the field without disturbing the input's own width. */
#spotify-promo-widget .lm-search-group {
  position: relative;
}

#spotify-promo-widget .lm-search-icon {
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--lm-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

#spotify-promo-widget .lm-search-input {
  width: 100%;
  /* Extra left padding makes room for the icon; keep text left-aligned so the
     icon and query read together instead of the text floating in dead centre. */
  padding: 20px 28px 20px 56px;
  font-size: 16px;
  font-family: inherit;
  color: var(--lm-fg);
  background: var(--lm-bg-elev);
  border: 1.5px solid var(--lm-border);
  border-radius: 999px;
  outline: none;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#spotify-promo-widget .lm-search-input::placeholder {
  color: var(--lm-muted);
}

#spotify-promo-widget .lm-search-input:focus {
  border-color: var(--lm-accent);
  background: var(--lm-bg-elev-2);
  box-shadow: 0 0 0 6px rgba(153, 51, 244, 0.12);
}

#spotify-promo-widget .lm-search-group:focus-within .lm-search-icon {
  color: var(--lm-accent-hi);
}

/* When the input is empty AND focused, pulse the border to invite typing. */
#spotify-promo-widget .lm-search-input:placeholder-shown:focus {
  animation: lmSearchPulse 2.2s ease-in-out infinite;
}
@keyframes lmSearchPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(153, 51, 244, 0.12); }
  50%      { box-shadow: 0 0 0 10px rgba(153, 51, 244, 0.04); }
}


#spotify-promo-widget .lm-results {
  margin: 14px auto 0;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  max-height: 420px;
  overflow-y: auto;
  list-style: none;
  padding: 8px;
  text-align: left;
  max-width: 620px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  animation: lmResultsFadeIn 0.2s ease-out;
}

@keyframes lmResultsFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

#spotify-promo-widget .lm-results:empty {
  display: none;
}

/* Hide the dropdown entirely when nothing inside the search wrap is focused */
#spotify-promo-widget .lm-search-wrap:not(:focus-within) .lm-results {
  display: none;
}

/* Scrollbar polish */
#spotify-promo-widget .lm-results::-webkit-scrollbar {
  width: 8px;
}
#spotify-promo-widget .lm-results::-webkit-scrollbar-track {
  background: transparent;
}
#spotify-promo-widget .lm-results::-webkit-scrollbar-thumb {
  background: var(--lm-border-strong);
  border-radius: 999px;
}

#spotify-promo-widget .lm-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  cursor: pointer;
  background: transparent;
  color: inherit;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 12px;
  font: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
  position: relative;
}

#spotify-promo-widget .lm-result:hover,
#spotify-promo-widget .lm-result:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

#spotify-promo-widget .lm-result:active {
  transform: scale(0.99);
}

#spotify-promo-widget .lm-result-art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--lm-bg-elev-2);
  object-fit: cover;
}

#spotify-promo-widget .lm-result-text {
  min-width: 0;
  flex: 1;
}

#spotify-promo-widget .lm-result-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--lm-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

#spotify-promo-widget .lm-result-artist {
  font-size: 12px;
  color: var(--lm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

#spotify-promo-widget .lm-hint {
  font-size: 13px;
  color: var(--lm-muted);
  padding: 14px 12px;
  text-align: center;
}

/* ---------- How-to-search hints (shown on focus, empty input) ---------- */
#spotify-promo-widget .lm-hints {
  display: none;
  margin: 14px auto 0;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  padding: 14px 10px;
  text-align: left;
  max-width: 620px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  animation: lmResultsFadeIn 0.2s ease-out;
}

/* Show hints whenever the input is focused */
#spotify-promo-widget .lm-search-wrap:focus-within .lm-hints {
  display: block;
}

/* But hide the hints the moment real search results are populated
   (so we don't show two stacked panels). */
#spotify-promo-widget .lm-search-wrap:focus-within .lm-results:not(:empty) ~ .lm-hints {
  display: none !important;
}

#spotify-promo-widget .lm-hints-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lm-accent-hi);
  padding: 6px 12px 10px 12px;
}

#spotify-promo-widget .lm-hint-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--lm-radius-sm);
  font-size: 14px;
  color: var(--lm-fg);
  transition: background 0.15s;
}

#spotify-promo-widget .lm-hint-item:hover {
  background: var(--lm-bg-elev-2);
}

#spotify-promo-widget .lm-hint-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

#spotify-promo-widget .lm-hint-label {
  color: var(--lm-muted);
  font-size: 13px;
}

/* ---------- Step 2: selected-track summary ---------- */
#spotify-promo-widget .lm-selected {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  margin-bottom: 24px;
}

#spotify-promo-widget .lm-selected-art {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

#spotify-promo-widget .lm-selected-meta {
  flex: 1;
  min-width: 0;
}

#spotify-promo-widget .lm-selected-caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lm-accent-hi);
  margin-bottom: 3px;
}

#spotify-promo-widget .lm-selected-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--lm-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#spotify-promo-widget .lm-selected-artist {
  font-size: 14px;
  color: var(--lm-muted);
  margin-top: 1px;
}

#spotify-promo-widget .lm-change-btn {
  background: transparent;
  border: 1px solid var(--lm-border-strong);
  color: var(--lm-muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s;
  flex-shrink: 0;
}

#spotify-promo-widget .lm-change-btn:hover {
  color: var(--lm-fg);
  border-color: var(--lm-fg);
}

/* ---------- Step 2: packages ---------- */
/* ============================================================
   Tier cards (step 3) — horizontal row of campaign options.
   Each card exposes --tier-color for per-tier accents.
   ============================================================ */
/* ============================================================
   Step 3 — new layout
   Left col: horizontal tier carousel + projection chart
   Right col: sticky track preview panel + CTAs
   ============================================================ */

/* Extra breathing room under the "CHOOSE YOUR CAMPAIGN" title before
   the grid starts. The global .lm-heading margin is tuned for the
   tighter search/upsell steps. */
#spotify-promo-widget .lm-step3 > .lm-heading {
  margin-bottom: 56px;
}

/* Step 3 needs more horizontal room than steps 1/2 so each tier card
   can show a full feature list. Break out of the widget container's
   860px cap when the step-3 panel is on screen. :has() is supported in
   all current browsers; older ones just see the narrower layout (still
   usable — cards stack gracefully). */
#spotify-promo-widget:has(.lm-step3) {
  max-width: min(1360px, calc(100vw - 32px));
}

#spotify-promo-widget .lm-step3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto 16px auto;
}

/* Inside the step-3 left column, the chart should stretch the full
   width of the tier row above it. The global .lm-chart-panel caps
   width at 720px for other contexts; scoping this override keeps
   other uses untouched. */
#spotify-promo-widget .lm-step3-main .lm-chart-panel {
  max-width: none;
  margin: 0;
  width: 100%;
}
@media (max-width: 920px) {
  #spotify-promo-widget .lm-step3-grid {
    grid-template-columns: 1fr;
  }
}
#spotify-promo-widget .lm-step3-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Tier carousel ---------- */
#spotify-promo-widget .lm-tier-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
@media (max-width: 720px) {
  #spotify-promo-widget .lm-tier-row {
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  #spotify-promo-widget .lm-tier-row .lm-tier {
    scroll-snap-align: start;
  }
}

#spotify-promo-widget .lm-tier {
  --tier-color: #9933f4;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 8px 14px 14px 14px;
  background: #0f263a;
  /* Soft but visible card edge — low-contrast hairline border + a
     subtle drop + a faint inner top highlight. The combination gives
     each card a quietly-elevated feel without harsh outlines. */
  /* !important is needed because .lm-tier is a <button> and the Aurora
     theme's global button rules override unqualified border-radius. */
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 20px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 28px -18px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  color: inherit;
  font: inherit;
  overflow: visible;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#spotify-promo-widget .lm-tier:hover,
#spotify-promo-widget .lm-tier:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 36px -22px rgba(0, 0, 0, 0.7);
}
/* Selected tier — bright green border no matter which tier is chosen.
   The tier's own color still lives in the price + check badge so the
   metal identity (gold/bronze/etc.) is preserved; green is just the
   universal "this is what you picked" signal. */
#spotify-promo-widget .lm-tier--selected,
#spotify-promo-widget .lm-tier--selected:hover,
#spotify-promo-widget .lm-tier--selected:focus-visible {
  border-color: #22d46b !important;
  box-shadow:
    0 0 0 1px rgba(34, 212, 107, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 44px -20px rgba(34, 212, 107, 0.55);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(34, 212, 107, 0.12) 0%, transparent 65%),
    #0f263a;
}

/* Check badge — top-right of selected card */
#spotify-promo-widget .lm-tier-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tier-color);
  color: #00121f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tier-color) 18%, transparent);
  z-index: 2;
}
#spotify-promo-widget .lm-tier-check .lm-icon-check {
  width: 12px;
  height: 12px;
  display: block;
}

/* Product image block */
#spotify-promo-widget .lm-tier-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  margin-bottom: 4px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#spotify-promo-widget .lm-tier-image {
  width: 100%;
  height: 100%;
  /* `contain` instead of `cover` so the vinyl+Spotify artwork never gets
     cropped off the side. Aspect is preserved and extra space fills
     with the card background. */
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}
#spotify-promo-widget .lm-tier:hover .lm-tier-image,
#spotify-promo-widget .lm-tier--selected .lm-tier-image {
  transform: scale(1.03);
}

/* Ring emblem fallback — keeps layout intact if a product image is missing */
#spotify-promo-widget .lm-tier-emblem {
  color: var(--tier-color);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#spotify-promo-widget .lm-tier-emblem-svg {
  width: 70%;
  height: 70%;
  display: block;
}

#spotify-promo-widget .lm-tier-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--lm-fg);
  margin-bottom: 6px;
}

#spotify-promo-widget .lm-tier-stats {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  margin-bottom: 10px;
}
#spotify-promo-widget .lm-tier-stat {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Feature checklist — one row per benefit, tier-color check icon + text. */
#spotify-promo-widget .lm-tier-features {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#spotify-promo-widget .lm-tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #fff;
}
#spotify-promo-widget .lm-tier-feature-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tier-color);
  margin-top: 2px;
}
#spotify-promo-widget .lm-tier-feature-check .lm-icon-check {
  width: 16px;
  height: 16px;
  display: block;
}
#spotify-promo-widget .lm-tier-feature-text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}

#spotify-promo-widget .lm-tier-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}
#spotify-promo-widget .lm-tier-price-old {
  color: #ff7e7e;
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 600;
}
#spotify-promo-widget .lm-tier-price {
  color: var(--tier-color);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
/* Percent-off pill — smaller + tighter so it sits inline with the
   price without pushing the row onto two lines on narrow cards. */
#spotify-promo-widget .lm-tier-price-pct {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #22d46b;
  background: rgba(34, 212, 107, 0.12);
  border: 1px solid rgba(34, 212, 107, 0.25);
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.3;
}

/* Marketing badge — "MOST POPULAR", "BEST VALUE". Pinned to the top
   centre of the tier card, riding the border. */
#spotify-promo-widget .lm-tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d07bff 0%, #9a32f3 50%, #4a1287 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(153, 51, 244, 0.6);
  z-index: 3;
}

/* ---------- Right-side track preview panel ---------- */
#spotify-promo-widget .lm-step3-side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 22px;
  background: var(--lm-bg-elev);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}
@media (max-width: 920px) {
  #spotify-promo-widget .lm-step3-side {
    position: static;
  }
}

#spotify-promo-widget .lm-step3-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 6px;
}
#spotify-promo-widget .lm-step3-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.03);
}
/* Stacked behind layers — subtle offset + tilt for depth */
#spotify-promo-widget .lm-step3-art--1 {
  transform: translate(6px, 6px) rotate(-3deg);
  filter: brightness(0.75);
  z-index: 1;
}
#spotify-promo-widget .lm-step3-art--2 {
  transform: translate(12px, 12px) rotate(-6deg);
  filter: brightness(0.55);
  z-index: 0;
}
#spotify-promo-widget .lm-step3-art--0 {
  z-index: 2;
}
#spotify-promo-widget .lm-step3-art-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  z-index: 3;
}

#spotify-promo-widget .lm-step3-track-label {
  text-align: center;
  padding: 0 4px;
}
#spotify-promo-widget .lm-step3-track-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#spotify-promo-widget .lm-step3-track-artist {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* Side-panel CTAs — taller rounded pills stacked vertically. Padding
   matches the cart page Safe Checkout button so buttons feel uniform
   across widget + cart. Shape properties are all !important so the
   host theme's global button rules can't square off the corners or
   add random borders. */
#spotify-promo-widget .lm-step3-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 28px !important;
  margin: 0 !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  border-radius: 999px !important;
  outline: none !important;
  cursor: pointer;
  line-height: 1 !important;
  transition: background-position 0.5s ease, filter 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}
#spotify-promo-widget .lm-step3-cta--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #d07bff 0%, #9a32f3 50%, #4a1287 100%) !important;
  background-size: 200% 100% !important;
  background-position: 65% 50% !important;
  border: none !important;
}
#spotify-promo-widget .lm-step3-cta--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transition: left 0.6s ease;
  pointer-events: none;
}
#spotify-promo-widget .lm-step3-cta--primary:not(:disabled):hover {
  background-position: 0% 50%;
  filter: brightness(1.05);
}
#spotify-promo-widget .lm-step3-cta--primary:not(:disabled):hover::before {
  left: 150%;
}
#spotify-promo-widget .lm-step3-cta--secondary {
  color: var(--lm-fg) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
#spotify-promo-widget .lm-step3-cta--secondary:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}
#spotify-promo-widget .lm-step3-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Disabled-state helper line under the side-panel CTAs. Hidden when
   the flow is ready to submit; otherwise it explains what's missing
   in small red text so the button labels stay clean. */
#spotify-promo-widget .lm-step3-cta-hint {
  display: none;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #ff7a7a;
  text-align: center;
  letter-spacing: 0;
}

/* ---------- CTA ---------- */
/* Match the site-wide LyricalMind button style exactly — all !important so
   the host theme can't reshape it. */
#spotify-promo-widget .lm-cta {
  position: relative !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 18px 34px !important;
  margin-top: 20px;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  /* Shared typography contract across every CTA button on the site:
     15px / 700 / uppercase / 0.02em letter-spacing. Kept in sync with
     .lm-cart-page__checkout, .lm-cart-page__continue, and the header
     CTAs so buttons don't drift into slightly different looks. */
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: linear-gradient(135deg, #d07bff 0%, #9a32f3 50%, #4a1287 100%) !important;
  background-size: 200% 100% !important;
  background-position: 65% 50% !important;
  border: none !important;
  outline: none !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: background-position 0.5s ease, filter 0.2s ease !important;
  box-shadow: none !important;
}

#spotify-promo-widget .lm-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transition: left 0.6s ease;
  pointer-events: none;
}

#spotify-promo-widget .lm-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#spotify-promo-widget .lm-cta:not(:disabled):hover {
  background-position: 0% 50%;
  filter: brightness(1.05);
}

#spotify-promo-widget .lm-cta:not(:disabled):hover::before {
  left: 100%;
}

/* Arrow in a CTA — gently slides right on hover. */
#spotify-promo-widget .lm-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  will-change: transform;
}
#spotify-promo-widget .lm-cta:not(:disabled):hover .lm-cta-arrow,
#spotify-promo-widget .lm-cta:not(:disabled):focus-visible .lm-cta-arrow {
  transform: translateX(5px);
}

/* Inline cart icon inside a CTA button (e.g. "Add to cart"). Sized to
   match the adjacent label text and inherits color from the button. */
#spotify-promo-widget .lm-cta-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.2s ease;
}
#spotify-promo-widget .lm-cta:not(:disabled):hover .lm-cta-icon {
  transform: scale(1.08);
}

/* Checkout + cart buttons sit side by side, wrapping on narrow screens. */
#spotify-promo-widget .lm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
#spotify-promo-widget .lm-cta-row .lm-cta {
  margin-top: 0;
}

/* Secondary "View cart" button — ghost style so the primary checkout CTA
   stays visually dominant. */
#spotify-promo-widget .lm-cta.lm-cta--secondary {
  background: transparent !important;
  color: var(--lm-fg) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  /* Match the shared 15px/700/uppercase/0.04em typography — only the
     fill+border differ between primary and secondary. */
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  font-weight: 700 !important;
}
#spotify-promo-widget .lm-cta.lm-cta--secondary::before {
  display: none;
}
#spotify-promo-widget .lm-cta.lm-cta--secondary:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  filter: none;
}

/* ---------- Errors ---------- */
#spotify-promo-widget .lm-error {
  color: var(--lm-danger);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 12px 14px;
  border-radius: var(--lm-radius-sm);
  font-size: 14px;
  margin-top: 14px;
}

#spotify-promo-widget .lm-hidden {
  display: none !important;
}

/* ---------- Streams projection chart (step 3) ---------- */
#spotify-promo-widget .lm-chart-panel {
  margin: 32px auto 0 auto;
  max-width: 720px;
  padding: 28px;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  border-radius: 18px;
  text-align: left;
  animation: lmFadeIn 0.3s ease-out both;
}

#spotify-promo-widget .lm-chart-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#spotify-promo-widget .lm-chart-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

#spotify-promo-widget .lm-chart-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

#spotify-promo-widget .lm-chart-li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lm-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#spotify-promo-widget .lm-chart-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
#spotify-promo-widget .lm-chart-dot--with    { background: #22d46b; }
#spotify-promo-widget .lm-chart-dot--without {
  background: rgba(34, 212, 107, 0.6);
  /* Dashed-line indicator so the legend visibly mirrors the chart line */
  background-image: linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.15) 40% 60%, transparent 60%);
}

#spotify-promo-widget .lm-chart-svg-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}

#spotify-promo-widget .lm-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

/* HTML overlay for y-axis tick labels. The SVG behind this layer can
   stretch freely (preserveAspectRatio=none) without dragging the text
   along with it. Each label's vertical position is set inline via
   style.top = "{(1-v)*100}%". */
#spotify-promo-widget .lm-chart-y-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#spotify-promo-widget .lm-chart-y-label {
  position: absolute;
  left: 0;
  /* SVG's left padding (PAD.l=40) is 40/320 = 12.5% of viewBox width.
     Match that here so labels sit flush to where the grid lines start. */
  width: calc(12.5% - 8px);
  text-align: right;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0;
}

/* Peak value pills — square badges at the end of the max + min lines.
   Width/height are fixed so the badge is visually balanced (1x1) rather
   than stretched horizontally by longer numbers. */
#spotify-promo-widget .lm-chart-peak-pill {
  position: absolute;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Centre horizontally on the data point, then lift upward so the
     badge hovers above it. */
  transform: translate(-50%, -130%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
}
#spotify-promo-widget .lm-chart-peak-pill--max {
  background: #22d46b;
  color: #001f0f;
  box-shadow: 0 6px 18px -8px rgba(34, 212, 107, 0.8);
}
#spotify-promo-widget .lm-chart-peak-pill--min {
  background: rgba(34, 212, 107, 0.18);
  color: #22d46b;
  border: 1px solid rgba(34, 212, 107, 0.45);
}

/* HTML peak dot (fixes the stretched SVG circle). Positioned via
   inline style at the end of the max-estimate line. */
#spotify-promo-widget .lm-chart-peak-dot {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
#spotify-promo-widget .lm-chart-peak-dot-core,
#spotify-promo-widget .lm-chart-peak-dot-halo {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
#spotify-promo-widget .lm-chart-peak-dot-core {
  width: 10px;
  height: 10px;
  background: #22d46b;
  box-shadow: 0 0 0 2px rgba(0, 22, 35, 0.9), 0 0 16px rgba(34, 212, 107, 0.8);
}
#spotify-promo-widget .lm-chart-peak-dot-halo {
  width: 24px;
  height: 24px;
  background: rgba(34, 212, 107, 0.22);
  animation: lmChartHalo 2.5s ease-in-out infinite;
}
/* Min-line variant — lighter green to match the dashed "floor" line. */
#spotify-promo-widget .lm-chart-peak-dot--min .lm-chart-peak-dot-core {
  background: rgba(34, 212, 107, 0.7);
  box-shadow: 0 0 0 2px rgba(0, 22, 35, 0.9);
}
#spotify-promo-widget .lm-chart-peak-dot--min .lm-chart-peak-dot-halo {
  background: rgba(34, 212, 107, 0.14);
}

/* X-axis day labels — sibling row below the svgWrap. Each label is
   absolutely positioned with `left: N%` matching the curve's day. */
#spotify-promo-widget .lm-chart-x-labels {
  position: relative;
  height: 22px;
  margin-top: 6px;
}
#spotify-promo-widget .lm-chart-x-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0;
  white-space: nowrap;
}

/* Hover scrubber — vertical guide line + min/max dots + tooltip.
   All hidden by default, revealed on mouse move via .is-visible. */
#spotify-promo-widget .lm-chart-scrub-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
#spotify-promo-widget .lm-chart-scrub-line.is-visible {
  opacity: 1;
}
#spotify-promo-widget .lm-chart-scrub-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
#spotify-promo-widget .lm-chart-scrub-dot.is-visible {
  opacity: 1;
}
#spotify-promo-widget .lm-chart-scrub-dot--max {
  background: #22d46b;
  box-shadow: 0 0 0 2px rgba(0, 22, 35, 0.95);
}
#spotify-promo-widget .lm-chart-scrub-dot--min {
  background: rgba(34, 212, 107, 0.7);
  box-shadow: 0 0 0 2px rgba(0, 22, 35, 0.95);
}
#spotify-promo-widget .lm-chart-scrub-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 16px));
  background: rgba(0, 22, 35, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #fff;
  min-width: 96px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  z-index: 4;
}
#spotify-promo-widget .lm-chart-scrub-tooltip.is-visible {
  opacity: 1;
}
#spotify-promo-widget .lm-chart-scrub-tooltip-day {
  font-weight: 800;
  margin-bottom: 6px;
}
#spotify-promo-widget .lm-chart-scrub-tooltip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}
#spotify-promo-widget .lm-chart-scrub-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
#spotify-promo-widget .lm-chart-scrub-swatch--max {
  background: #22d46b;
}
#spotify-promo-widget .lm-chart-scrub-swatch--min {
  background: rgba(34, 212, 107, 0.6);
  background-image: linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.15) 40% 60%, transparent 60%);
}

/* Empty state panel — no SVG, just a prompt. */
#spotify-promo-widget .lm-chart-panel--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}
#spotify-promo-widget .lm-chart-empty {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  font-weight: 500;
  padding: 18px 24px;
}

#spotify-promo-widget .lm-chart-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--lm-border);
  flex-wrap: wrap;
}

#spotify-promo-widget .lm-chart-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--lm-secondary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

#spotify-promo-widget .lm-chart-stat-label {
  font-size: 13px;
  color: var(--lm-muted);
  line-height: 1.4;
}

/* Circular "?" info badge next to the stat label. Hover (or focus) to
   reveal the disclaimer that these numbers come from past campaigns. */
#spotify-promo-widget .lm-chart-stat-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 800;
  cursor: help;
  user-select: none;
  outline: none;
  transition: background 0.15s ease, color 0.15s ease;
}
#spotify-promo-widget .lm-chart-stat-info:hover,
#spotify-promo-widget .lm-chart-stat-info:focus {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
#spotify-promo-widget .lm-chart-stat-info-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  padding: 10px 12px;
  background: rgba(0, 22, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
  z-index: 5;
  white-space: normal;
}
#spotify-promo-widget .lm-chart-stat-info:hover .lm-chart-stat-info-tooltip,
#spotify-promo-widget .lm-chart-stat-info:focus .lm-chart-stat-info-tooltip {
  opacity: 1;
}

/* Chart peak-dot animations */
@keyframes lmChartRipple {
  0%   { r: 5px;  stroke-opacity: 0.8; }
  100% { r: 26px; stroke-opacity: 0;   }
}
@keyframes lmChartRipple2 {
  0%   { r: 5px;  stroke-opacity: 0.5; }
  100% { r: 40px; stroke-opacity: 0;   }
}
@keyframes lmChartPing {
  0%, 100% { r: 5px;  stroke-opacity: 0;   }
  5%       {           stroke-opacity: 0.7; }
  40%      { r: 22px; stroke-opacity: 0;   }
}
@keyframes lmChartPing2 {
  0%, 100% { r: 5px;  stroke-opacity: 0;   }
  8%       {           stroke-opacity: 0.4; }
  50%      { r: 32px; stroke-opacity: 0;   }
}
@keyframes lmChartBreathe {
  0%, 100% { opacity: 1;   r: 5px;   }
  50%      { opacity: 0.7; r: 6.5px; }
}
@keyframes lmChartHalo {
  0%, 100% { opacity: 0.15; r: 10px; }
  50%      { opacity: 0.3;  r: 13px; }
}

@media (max-width: 640px) {
  #spotify-promo-widget .lm-chart-panel {
    padding: 20px;
  }
  #spotify-promo-widget .lm-chart-stat-value {
    font-size: 28px;
  }
}

/* ---------- Upsell (step 2) ---------- */
#spotify-promo-widget .lm-back-link {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--lm-muted);
  font-family: inherit;
  font-size: 13px;
  padding: 4px 0;
  margin: 0 auto 20px auto;
  cursor: pointer;
  transition: color 0.15s;
}
#spotify-promo-widget .lm-back-link:hover {
  color: var(--lm-fg);
}

/* Flex wrap (not grid) so any number of slots (1, 2, 4, 5) stays centered as
   a set instead of being pinned to fixed grid tracks. */
#spotify-promo-widget .lm-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}
#spotify-promo-widget .lm-slots .lm-slot {
  flex: 0 0 240px;
  width: 240px;
}
@media (max-width: 560px) {
  #spotify-promo-widget .lm-slots .lm-slot {
    flex-basis: 100%;
    width: 100%;
    max-width: 320px;
  }
}

/* Inline upsell search — label + search wrap sitting under the slots */
#spotify-promo-widget .lm-upsell-search-label {
  max-width: 620px;
  margin: 4px auto 10px auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lm-accent-hi);
  text-align: left;
}

/* Small "Add another track" label above the step-2 search bar. */
#spotify-promo-widget .lm-upsell-search-label {
  text-align: center;
  margin: 24px auto 10px auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* "← Back to tracks" link on step 3 — top-left, understated. */
#spotify-promo-widget .lm-step3-back {
  appearance: none !important;
  background: transparent !important;
  border: none !important;
  padding: 6px 10px !important;
  margin: 0 0 12px 0 !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  align-self: flex-start !important;
  transition: color 0.15s ease !important;
}
#spotify-promo-widget .lm-step3-back:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Track switcher on step 3 — chip per selected track, highlighted when
   it's the one currently being configured. */
#spotify-promo-widget .lm-track-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 44px auto;
  max-width: 900px;
}
#spotify-promo-widget .lm-track-chip {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 14px 8px 8px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  color: #fff !important;
  font: inherit !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  text-align: left !important;
}
#spotify-promo-widget .lm-track-chip:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
/* Active chip intentionally has NO distinct styling — chips look the
   same whether you're currently editing them or not. Only the "picked"
   (green border) state is highlighted, since that's the useful info
   the customer needs at a glance. */
#spotify-promo-widget .lm-track-chip--picked {
  border-color: rgba(29, 185, 84, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(29, 185, 84, 0.35) !important;
}
#spotify-promo-widget .lm-track-chip-art {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
#spotify-promo-widget .lm-track-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
#spotify-promo-widget .lm-track-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#spotify-promo-widget .lm-track-chip-tier {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}
#spotify-promo-widget .lm-track-chip-tier--empty {
  color: #ff7e7e;
  font-weight: 600;
}

/* "Track 2 of 2" index line on the step-3 side panel. */
#spotify-promo-widget .lm-step3-track-idx {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

/* Tab bar above the step-2 search — legacy styles kept in case any old
   DOM is still shipped (no longer emitted). */
#spotify-promo-widget .lm-upsell-tabs {
  display: inline-flex;
  gap: 0;
  margin: 0 auto 18px auto;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
#spotify-promo-widget .lm-upsell-tab {
  appearance: none !important;
  background: transparent !important;
  border: none !important;
  padding: 8px 18px !important;
  margin: 0 !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: rgba(255, 255, 255, 0.55) !important;
  /* Must be fully pill-shaped to match the outer tab container. `!important`
     defeats the host theme's button styles (which otherwise force ~8px). */
  border-radius: 999px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: color 0.15s ease, background 0.15s ease !important;
}
#spotify-promo-widget .lm-upsell-tab:hover {
  color: #fff !important;
}
#spotify-promo-widget .lm-upsell-tab--active,
#spotify-promo-widget .lm-upsell-tab.lm-upsell-tab--active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}
#spotify-promo-widget .lm-upsell-tab--active:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
/* Legacy label class — kept so it doesn't 404 if old DOM is still in flight. */
#spotify-promo-widget .lm-catalog-label {
  display: none;
}
@media (max-width: 640px) {
  #spotify-promo-widget .lm-slots {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

#spotify-promo-widget .lm-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 21px 15px !important;
  min-height: 210px !important;
  /* The empty slot is rendered as a <button> so the Shopify theme's global
     button styles (border-radius, border, padding) override non-!important
     declarations here. !important on every shape-affecting property keeps
     the filled <div> and empty <button> visually identical. */
  border-radius: 28px !important;
  background: var(--lm-bg-elev) !important;
  border: 2px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 28px -16px rgba(0, 0, 0, 0.6) !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  color: inherit;
  font: inherit;
  /* Clip any content that overflows the card so long artist/track names can't
     bleed into neighbouring slots. */
  overflow: hidden;
  min-width: 0;
}

/* Filled slot — bright green border matching the stepper "done" state.
   1.5px keeps the corners clean; the outer box-shadow ring hides any aliasing
   between the border + rounded corner + inner content so edges read crisp. */
/* Selected/filled slot — same geometry + same soft halo shape as the
   empty slot; only the border color and halo tint change from neutral
   to green. This keeps the two cards visually balanced. */
#spotify-promo-widget .lm-slot--filled {
  border: 2px solid #22d46b !important;
  background: var(--lm-bg-elev) !important;
  box-shadow:
    0 0 0 1px rgba(34, 212, 107, 0.05),
    0 12px 28px -16px rgba(34, 212, 107, 0.35) !important;
}

/* Album art wrapper — lets us layer a gradient shadow beneath the image
   without clipping the image itself. */
#spotify-promo-widget .lm-slot-art-wrap {
  position: relative;
  margin-bottom: 14px;
}
#spotify-promo-widget .lm-slot-art-wrap::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 20px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}

#spotify-promo-widget .lm-slot-art {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Meta wrapper constrains width so name + artist can't push past the card. */
#spotify-promo-widget .lm-slot-meta {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#spotify-promo-widget .lm-slot-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--lm-fg);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Artist line wraps onto up to 2 lines then ellipses — so long multi-artist
   credits (e.g. "Popular Songs, Instrumental Pop Music, …") stay inside the
   card instead of bleeding past its edges. */
#spotify-promo-widget .lm-slot-artist {
  font-size: 13px;
  color: var(--lm-muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Plain text-link × in the top-right corner — styled like the "Back to home"
   link, no background, no circular chip. Just a muted icon that gets brighter
   on hover. */
#spotify-promo-widget .lm-slot-remove {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
#spotify-promo-widget .lm-slot-remove:hover,
#spotify-promo-widget .lm-slot-remove:focus-visible {
  color: #ff6b6b;
  background: transparent;
  outline: none;
}
#spotify-promo-widget .lm-icon-close {
  width: 14px;
  height: 14px;
  display: block;
}

/* Empty "next" slot — clickable, visible accent */
#spotify-promo-widget .lm-slot--empty.is-next {
  cursor: pointer;
  border-style: dashed;
  border-color: rgba(153, 51, 244, 0.45);
  background: rgba(153, 51, 244, 0.04);
}
#spotify-promo-widget .lm-slot--empty.is-next:hover {
  border-color: var(--lm-accent);
  background: rgba(153, 51, 244, 0.1);
  transform: translateY(-2px);
}

/* Empty slot rendered as a <button> needs button defaults stripped so it
   looks identical to the div version (no system focus ring, no text color). */
#spotify-promo-widget button.lm-slot--empty {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
#spotify-promo-widget button.lm-slot--empty:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Locked future slot — dim, not clickable */
#spotify-promo-widget .lm-slot--empty.is-locked {
  border-style: dashed;
  border-color: var(--lm-border);
  opacity: 0.5;
}

#spotify-promo-widget .lm-slot-plus {
  font-size: 44px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  margin-bottom: 0;
  transition: color 0.15s ease;
}
/* Hover/focus brightens the + to pure white */
#spotify-promo-widget button.lm-slot--empty:hover .lm-slot-plus,
#spotify-promo-widget button.lm-slot--empty:focus-visible .lm-slot-plus {
  color: #fff;
}
#spotify-promo-widget .lm-slot--empty.is-locked .lm-slot-plus {
  color: var(--lm-muted);
}

#spotify-promo-widget .lm-slot-label {
  font-size: 13px;
  color: var(--lm-fg);
  font-weight: 600;
}

#spotify-promo-widget .lm-slot--empty.is-locked .lm-slot-label {
  color: var(--lm-muted);
}

#spotify-promo-widget .lm-slot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lm-secondary);
  color: #fff;
}

/* Savings callout */
#spotify-promo-widget .lm-savings {
  margin: 0 auto 24px auto;
  max-width: 620px;
  padding: 14px 20px;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  color: var(--lm-muted);
  font-size: 14px;
  text-align: center;
}
#spotify-promo-widget .lm-savings.is-max {
  border-color: var(--lm-secondary);
  background: rgba(1, 163, 252, 0.08);
  color: var(--lm-secondary-hi);
  font-weight: 600;
}

/* ---------- Step 3: tracks summary above packages ---------- */
#spotify-promo-widget .lm-tracks-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lm-accent-hi);
  margin-bottom: 10px;
  text-align: left;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

#spotify-promo-widget .lm-tracks-list {
  margin: 0 auto 28px auto;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#spotify-promo-widget .lm-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-sm);
  text-align: left;
}

#spotify-promo-widget .lm-track-row-art {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}

#spotify-promo-widget .lm-track-row-meta {
  min-width: 0;
  flex: 1;
}

#spotify-promo-widget .lm-track-row-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--lm-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#spotify-promo-widget .lm-track-row-artist {
  font-size: 12px;
  color: var(--lm-muted);
  margin-top: 2px;
}

/* ---------- Trust signal under search (step 1) ---------- */
#spotify-promo-widget .lm-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-sm);
  font-size: 12px;
  color: var(--lm-muted);
  flex-wrap: wrap;
}

#spotify-promo-widget .lm-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#spotify-promo-widget .lm-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lm-secondary);
  flex-shrink: 0;
}

/* ---------- "What happens next" strip (step 2) ---------- */
#spotify-promo-widget .lm-next {
  margin-top: 22px;
  padding: 18px;
  background: var(--lm-bg-elev);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
}

#spotify-promo-widget .lm-next-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lm-accent-hi);
  margin-bottom: 14px;
}

#spotify-promo-widget .lm-next-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  #spotify-promo-widget .lm-next-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

#spotify-promo-widget .lm-next-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#spotify-promo-widget .lm-next-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(153, 51, 244, 0.15);
  border: 1px solid var(--lm-accent);
  color: var(--lm-accent-hi);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#spotify-promo-widget .lm-next-step strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lm-fg);
  margin-bottom: 2px;
}

#spotify-promo-widget .lm-next-step span {
  font-size: 12px;
  color: var(--lm-muted);
  line-height: 1.45;
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 480px) {
  #spotify-promo-widget {
    padding: 20px;
    border-radius: var(--lm-radius);
  }
  #spotify-promo-widget .lm-heading {
    font-size: 20px;
  }
  #spotify-promo-widget .lm-steps {
    margin-bottom: 20px;
  }
  #spotify-promo-widget .lm-step-name {
    display: none; /* show only numbers on tiny screens */
  }
}

/* ============================================================
   Progress stepper (renders at the top of every step panel)
   ============================================================ */
#spotify-promo-widget .lm-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto 52px auto;
  padding: 0 8px;
}
#spotify-promo-widget .lm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
#spotify-promo-widget .lm-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
#spotify-promo-widget .lm-step--active .lm-step-dot {
  background: var(--lm-accent);
  color: #fff;
  border-color: var(--lm-accent);
  box-shadow: 0 0 0 4px rgba(153, 51, 244, 0.18);
  transform: scale(1.05);
}
#spotify-promo-widget .lm-step--done .lm-step-dot {
  background: rgba(34, 212, 107, 0.18);
  color: #22d46b;
  border-color: rgba(34, 212, 107, 0.45);
}
#spotify-promo-widget .lm-step-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  transition: color 0.25s ease;
}
#spotify-promo-widget .lm-step-dot .lm-icon-check {
  width: 14px;
  height: 14px;
  display: block;
}
#spotify-promo-widget .lm-step--active .lm-step-label {
  color: var(--lm-fg);
}
#spotify-promo-widget .lm-step--done .lm-step-label {
  color: #22d46b;
}
#spotify-promo-widget .lm-step-bar {
  flex: 1 1 auto;
  height: 2px;
  margin: 0 8px;
  align-self: flex-start;
  margin-top: 13px; /* vertical-center with the 28px dot */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
#spotify-promo-widget .lm-step-bar.lm-step-bar--done {
  background: rgba(34, 212, 107, 0.55);
}
@media (max-width: 520px) {
  #spotify-promo-widget .lm-stepper {
    max-width: 100%;
    margin-bottom: 24px;
  }
  #spotify-promo-widget .lm-step-label {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}

/* ============================================================
   Savings banner (step 2, shown when bundle discount unlocked)
   Full-width block above the CTA, never side-by-side with it.
   ============================================================ */
#spotify-promo-widget .lm-savings-banner {
  /* Block-level flex with fit-content width: sits on its own row, centered,
     but only as wide as its contents — so the following CTA lands neatly
     below it instead of wrapping next to it. */
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 28px auto;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(34, 212, 107, 0.14) 0%, rgba(34, 212, 107, 0.04) 100%);
  border: 1px solid rgba(34, 212, 107, 0.4);
  border-radius: 14px;
  text-align: left;
}
#spotify-promo-widget .lm-savings-banner-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22d46b;
  color: #00121f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#spotify-promo-widget .lm-savings-banner-check .lm-icon-check {
  width: 14px;
  height: 14px;
  display: block;
}
#spotify-promo-widget .lm-savings-banner-title {
  color: #22d46b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
#spotify-promo-widget .lm-savings-banner-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 2px;
}

/* ============================================================
   Trust row (under final CTA on step 3)
   ============================================================ */
#spotify-promo-widget .lm-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  margin: 16px auto 0 auto;
  max-width: 620px;
}
#spotify-promo-widget .lm-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
#spotify-promo-widget .lm-trust-icon {
  font-size: 14px;
  line-height: 1;
}
#spotify-promo-widget .lm-trust-label {
  letter-spacing: 0.01em;
}

/* ============================================================
   Existing-cart notice (floating card, bottom-right of viewport)
   Rendered as a direct child of <body>. Uses !important on most
   properties because the host Shopify theme's global styles cascade
   in here (the notice lives outside #spotify-promo-widget) and would
   otherwise inflate button sizes or override typography.
   ============================================================ */
.lm-cart-notice {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 9999 !important;
  width: 300px !important;
  max-width: calc(100vw - 40px) !important;
  padding: 14px 16px 14px 16px !important;
  background: #081f35 !important;
  background-clip: padding-box !important;
  color: #e8eef6 !important;
  border: 1.5px solid #9933f4 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow:
    0 14px 36px -16px rgba(0, 0, 0, 0.65),
    0 0 20px -4px rgba(153, 51, 244, 0.35) !important;
  font-family: inherit !important;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  box-sizing: border-box !important;
}
.lm-cart-notice--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lm-cart-notice--closing {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

/* Collapsed state — the full card hides and the pill takes over. The notice
   element itself loses its card chrome so only the pill's own styling is
   visible in the corner. */
.lm-cart-notice.lm-cart-notice--collapsed {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  overflow: visible !important;
  /* Pull the pill further inward so the badge never gets clipped by the
     viewport edge. */
  right: 24px !important;
  bottom: 24px !important;
}
.lm-cart-notice.lm-cart-notice--collapsed .lm-cart-notice-full {
  display: none !important;
}
/* Hide the pill whenever the notice is in its full state */
.lm-cart-notice:not(.lm-cart-notice--collapsed) .lm-cart-notice-pill {
  display: none !important;
}

/* Pill button — circular cart icon + small count badge */
.lm-cart-notice-pill {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #d07bff 0%, #9a32f3 50%, #4a1287 100%) !important;
  border: none !important;
  color: #fff !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px -8px rgba(154, 50, 243, 0.6) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}
.lm-cart-notice-pill:hover,
.lm-cart-notice-pill:focus-visible {
  transform: scale(1.06);
  filter: brightness(1.08);
  outline: none !important;
}
.lm-cart-notice-pill-icon {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}
.lm-cart-notice-pill-badge {
  position: absolute !important;
  /* Sits on top-right corner of the pill. The pill itself is offset 24px
     from the viewport edges in the collapsed state so this protruding
     badge never gets clipped. */
  top: -4px !important;
  right: -4px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: #22d46b !important;
  color: #00121f !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  border: 2px solid #011623 !important;
  box-sizing: border-box !important;
  /* Flex centering so the count is perfectly centered regardless of digit
     count (single- vs double-digit) and ignores the theme's line-height. */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.lm-cart-notice-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 8px 0 !important;
}
.lm-cart-notice-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #9933f4 !important;
  flex-shrink: 0 !important;
  animation: lmCartDot 1.6s ease-in-out infinite;
}
@keyframes lmCartDot {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%      { transform: scale(1.45); opacity: 1;   }
}
.lm-cart-notice-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #fff !important;
  letter-spacing: -0.01em !important;
  flex: 1 !important;
  margin: 0 !important;
}
.lm-cart-notice-close {
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  margin: 0 !important;
  cursor: pointer !important;
  color: rgba(255, 255, 255, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease;
  flex-shrink: 0 !important;
}
.lm-cart-notice-close:hover,
.lm-cart-notice-close:focus-visible {
  color: #fff !important;
  outline: none !important;
}
.lm-cart-notice-close .lm-icon-close {
  width: 14px !important;
  height: 14px !important;
  display: block !important;
}

/* Item row: album art + track name + campaign/price */
.lm-cart-notice-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 0 12px 0 !important;
  max-height: 240px !important;
  overflow-y: auto !important;
}
.lm-cart-notice-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 8px !important;
  min-width: 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
}
.lm-cart-notice-art {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.05);
}
.lm-cart-notice-price {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin-top: 3px !important;
  flex-wrap: wrap !important;
}
.lm-cart-notice-price-orig {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
}
.lm-cart-notice-price-final {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}
.lm-cart-notice-price-save {
  color: #22d46b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  background: rgba(34, 212, 107, 0.14) !important;
  letter-spacing: -0.01em !important;
}
.lm-cart-notice-total {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px 0 !important;
  padding: 10px 2px 0 2px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.lm-cart-notice-total-label {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  padding-top: 2px !important;
}
.lm-cart-notice-total-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
  min-width: 0 !important;
}
.lm-cart-notice-total-prices {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}
.lm-cart-notice-total-orig {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: line-through !important;
  letter-spacing: -0.01em !important;
}
.lm-cart-notice-total-amount {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}
.lm-cart-notice-total-saved {
  color: #22d46b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
.lm-cart-notice-meta {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}
.lm-cart-notice-track {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}
.lm-cart-notice-campaign {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.35 !important;
  margin: 2px 0 0 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.lm-cart-notice-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
.lm-cart-notice-btn {
  /* `width:0` + `flex:1 1 0` forces flex to size the two buttons equally from
     zero — prevents the theme's global button styles (min-width, padding)
     from pushing them wider than the card. */
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 10px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
/* Secondary-button hover only — scoped with :not() so it NEVER applies to
   the primary checkout button. The `background` shorthand here would
   otherwise wipe out the primary's gradient background-image, turning the
   purple checkout button grey on hover. */
.lm-cart-notice-btn:not(.lm-cart-notice-btn--primary):hover,
.lm-cart-notice-btn:not(.lm-cart-notice-btn--primary):focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  outline: none !important;
}
.lm-cart-notice-btn--primary {
  position: relative !important;
  overflow: hidden !important;
  background-color: #9a32f3 !important;
  background-image: linear-gradient(135deg, #d07bff 0%, #9a32f3 50%, #4a1287 100%) !important;
  background-repeat: no-repeat !important;
  background-size: 200% 100% !important;
  background-position: 65% 50% !important;
  border: none !important;
  outline: none !important;
  transition: background-position 0.5s ease, filter 0.2s ease !important;
}
/* Shimmer sweep mirrors the site-wide .lm-cta button. The pseudo-element is
   sized wider than the button so the sweep always starts fully off-screen
   on both sides — prevents a half-rendered band on narrow buttons. */
.lm-cart-notice-btn--primary::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -150% !important;
  width: 150% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%) !important;
  transition: left 0.6s ease !important;
  pointer-events: none !important;
}
.lm-cart-notice-btn--primary:hover,
.lm-cart-notice-btn--primary:focus-visible {
  background-position: 0% 50% !important;
  filter: brightness(1.05);
  border: none !important;
}
.lm-cart-notice-btn--primary:hover::before,
.lm-cart-notice-btn--primary:focus-visible::before {
  left: 150% !important;
}

/* Savings line above the CTAs — "You're saving $16.00" */
.lm-cart-notice-savings {
  display: block !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
}
.lm-cart-notice-savings-amount {
  color: #22d46b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

@media (max-width: 480px) {
  .lm-cart-notice {
    right: 12px !important;
    bottom: 12px !important;
    width: calc(100vw - 24px) !important;
  }
}
