@media (max-width: 760px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  #llh-portal .llh-topbar .llh-intro:has(> .llh-retention) {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px clamp(12px, 4vw, 20px);
    align-items: center;
  }
  #llh-portal .llh-intro:has(> .llh-retention) > div { grid-column: 1 / -1; }
  #llh-portal .llh-intro:has(> .llh-retention) > [data-download="all"] {
    min-height: 44px;
  }
  #llh-portal .llh-intro > .llh-retention { margin: 0; padding: 0; overflow-wrap: anywhere; }
  #llh-portal .llh-intro .llh-retention .llh-library-heading { margin-bottom: 2px; }
  #llh-portal .llh-intro .llh-retention:not(.llh-retention-final) p + p { display: none; }
  #llh-portal .llh-intro .llh-retention p + p { margin-top: 2px; text-wrap: pretty; }
}
@media (max-width: 380px) {
  #llh-portal .llh-intro:has(> .llh-retention) > [data-download="all"] { padding-inline: 12px; }
}
@media (min-width: 761px) and (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  #llh-portal .llh-topbar .llh-intro:has(> .llh-retention) {
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, .8fr);
  }
  #llh-portal .llh-intro:has(> .llh-retention) > div { grid-column: auto; }
}
@media (max-width: 760px) and (min-height: 601px) {
  #llh-portal .llh-topbar:has(.llh-intro > .llh-retention) { position: relative; }
  #llh-portal .llh-library-controls {
    top: 0;
    padding-top: 8px;
  }
  #llh-portal .llh-library-controls::before { display: none; }
  #llh-portal .llh-library-controls .llh-library-heading { margin-bottom: 8px; }
  #llh-portal .llh-track { scroll-margin-top: calc(var(--llh-library-controls-height, 0px) + 12px); }
  #llh-portal .llh-player { padding-block: 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  #llh-portal .llh-player-note { margin-top: 2px; }
  #llh-portal .llh-player-controls { margin-top: 4px; }
}

#extras-visual.extras-gallery .e-name { display: inline; }
#extras-visual .e-unit-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-inline-start: 3px;
  font-weight: 600;
  white-space: nowrap;
}
#extras-visual .e-unit-price > span { color: var(--emuted); }
#extras-visual img.e-spotify-logo {
  box-sizing: border-box;
  padding: 24%;
  object-fit: contain;
  background: #fff;
}
#extras-visual [data-spotify-availability][hidden] { display: none; }
#extras-visual .e-payment .llh-button-primary:disabled {
  background: var(--llh-wash);
  border-color: var(--llh-line);
  color: var(--llh-muted);
  opacity: 1;
  filter: none;
  cursor: default;
}
#extras-visual .e-counter {
  gap: 4px;
  padding: 3px 5px;
  cursor: default;
}
#extras-visual .e-counter [data-step] {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
#extras-visual .e-counter [data-step]:disabled { color: var(--emuted); cursor: default; }
#extras-visual .e-counter [data-step]:focus-visible { outline: 2px solid currentColor; }
#extras-visual .e-counter [data-units] { min-width: 1.25em; text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 620px) {
  #extras-visual .e-counter [data-step] { min-width: 44px; min-height: 44px; }
}

#extras-visual .e-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(22 16 14 / 66%);
  color: var(--llh-ink, #342b2d);
  overscroll-behavior: contain;
}
#extras-visual .e-checkout {
  width: min(100%, 520px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background: var(--llh-paper, #fffdf9);
  border: 1px solid var(--llh-line, #e6dfd5);
  border-radius: 16px;
  box-shadow: 0 16px 50px rgb(0 0 0 / 22%);
}
#extras-visual .e-checkout:focus { outline: none; }
#extras-visual .e-checkout-header,
#extras-visual .e-checkout-address {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
#extras-visual .e-checkout h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.05; }
#extras-visual .e-checkout h3 { margin: 0 0 6px; font: inherit; font-weight: 700; }
#extras-visual .e-checkout-header > button { padding: 4px 13px; min-height: 44px; }
#extras-visual .e-checkout-address > button { min-width: 44px; min-height: 44px; }
#extras-visual .e-checkout-lines,
#extras-visual .e-checkout-totals {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
#extras-visual .e-checkout-lines li,
#extras-visual .e-checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 3px;
}
#extras-visual .e-checkout-totals dd { margin: 0; }
#extras-visual .e-checkout-totals > div:last-child {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid var(--llh-line, #e6dfd5);
  font-weight: 700;
}
#extras-visual .e-checkout-shipping {
  padding: 13px;
  border-radius: 8px;
  background: var(--llh-bg, #fcfaf6);
  border: 1px solid var(--llh-line, #e6dfd5);
}
#extras-visual .e-checkout-address p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
#extras-visual .e-checkout-shipping label { display: grid; gap: 5px; min-width: 0; }
#extras-visual .e-checkout-shipping form { display: grid; gap: 10px; }
#extras-visual .e-checkout-shipping input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--llh-line, #e6dfd5);
  border-radius: 6px;
  padding-inline: 10px;
  background: var(--llh-paper, #fffdf9);
  color: var(--llh-ink, #342b2d);
  font-size: 16px;
}
#extras-visual .e-checkout-locality {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, .7fr) minmax(0, 1fr);
  gap: 8px;
}
#extras-visual p.e-checkout-country,
#extras-visual p.e-checkout-demo,
#extras-visual p.e-checkout-status { margin: 6px 0; color: var(--llh-muted, #6f625e); font-size: .9rem; }
#extras-visual p.e-checkout-status:empty { display: none; }
#extras-visual p.e-checkout-error { margin-block: 8px; color: var(--llh-accent, #a74e3e); }
#extras-visual .e-checkout-actions { display: flex; gap: 8px; margin-top: 10px; }
#extras-visual .e-checkout-actions .llh-button { min-height: 44px; }
#extras-visual .e-checkout-actions .llh-button-primary { width: 100%; }
#extras-visual .e-checkout-demo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  color: var(--llh-muted, #6f625e);
}
#extras-visual .e-checkout-demo-fields span {
  padding: 9px 12px;
  border: 1px solid var(--llh-line, #e6dfd5);
  border-radius: 6px;
}
#extras-visual .e-checkout-demo-fields span:first-child { grid-column: span 2; }
#extras-visual .e-checkout [hidden] { display: none; }
body:has(#extras-visual .e-checkout-overlay) { overflow: hidden; }

@media (max-width: 620px) {
  #extras-visual .e-checkout-overlay { padding: 0; }
  #extras-visual .e-checkout {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
}
