
    :root {
      color-scheme: light;
      --scale-ar: 1;
      --site-max-width: calc(960px * var(--scale-ar));
      --page-pad-x: calc(22px * var(--scale-ar));
      --page-pad-top: calc(10px * var(--scale-ar));
      --page-pad-bottom: calc(77px * var(--scale-ar));
      --bar-pad-y: calc(14px * var(--scale-ar));
      --bar-pad-x: calc(19px * var(--scale-ar));
      --button-pad-y: calc(11px * var(--scale-ar));
      --button-pad-x: calc(18px * var(--scale-ar));
      --audio-toggle-size: calc(30px * var(--scale-ar));
      --h1-size: calc(clamp(2.4rem, 9.6vw, 3.36rem) * var(--scale-ar));
      --h2-size: calc(clamp(1.62rem, 6.6vw, 2.16rem) * var(--scale-ar));
      --body-size: calc(1.2rem * var(--scale-ar));
      --line-height: 1.5;
      --radius-sm: 8px;
      --radius-md: 10px;
      --radius-lg: 12px;
      --radius-xl: 14px;
      --radius-2xl: 16px;
      --radius-pill: 999px;
      --auth-overlay: rgba(0, 0, 0, 0.58);
      --auth-panel-bg: rgba(2, 8, 30, 0.92);
      --auth-panel-border: rgba(188, 252, 255, 0.32);
      --auth-panel-text: #e7fcff;
      --auth-muted-text: rgba(223, 248, 255, 0.9);
      --auth-control-bg: rgba(20, 179, 188, 0.1);
      --auth-control-border: rgba(188, 252, 255, 0.45);
      --auth-control-active-bg: rgba(20, 179, 188, 0.3);
      --auth-input-bg: rgba(0, 0, 0, 0.22);
      --auth-input-border: rgba(188, 252, 255, 0.4);
      --auth-close-bg: rgba(188, 252, 255, 0.16);
      --auth-focus: rgba(188, 252, 255, 0.78);
      --auth-error: #ffd6d6;
      --auth-success: #c8ffe0;
    }

    @media (min-aspect-ratio: 16/10) {
      :root {
        --scale-ar: 1.06;
      }
    }

    @media (min-aspect-ratio: 16/9) {
      :root {
        --scale-ar: 1.12;
      }
    }

    @media (min-aspect-ratio: 21/9) {
      :root {
        --scale-ar: 1.2;
      }
    }

    :root[data-theme="light"] {
      --auth-overlay: rgba(10, 16, 34, 0.28);
      --auth-panel-bg: rgba(255, 255, 255, 0.97);
      --auth-panel-border: rgba(12, 37, 84, 0.24);
      --auth-panel-text: #0f1b3a;
      --auth-muted-text: rgba(15, 27, 58, 0.86);
      --auth-control-bg: rgba(18, 93, 210, 0.08);
      --auth-control-border: rgba(12, 37, 84, 0.26);
      --auth-control-active-bg: rgba(18, 93, 210, 0.18);
      --auth-input-bg: rgba(248, 250, 255, 0.95);
      --auth-input-border: rgba(12, 37, 84, 0.24);
      --auth-close-bg: rgba(12, 37, 84, 0.08);
      --auth-focus: rgba(18, 93, 210, 0.7);
      --auth-error: #b3261e;
      --auth-success: #116837;
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow-x: hidden;
      background: #050b2a;
      font-family: "Space Grotesk", "Sora", "Geist Sans", "Manrope", system-ui, sans-serif;
    }

    #gl-canvas {
      position: fixed;
      inset: 0;
      z-index: 0;
      display: block;
      width: 100%;
      height: 100%;
    }

    .site {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      color: #dff8ff;
    }

    .button-bar {
      padding: var(--bar-pad-y) 0;
      border-bottom: 1px solid rgba(188, 252, 255, 0.28);
      background: rgba(2, 7, 29, 0.42);
      backdrop-filter: blur(10px);
    }

    .button-bar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: min(100% - (var(--page-pad-x) * 2), var(--site-max-width));
      margin: 0 auto;
    }

    .button {
      border: 1px solid rgba(188, 252, 255, 0.5);
      background: rgba(20, 179, 188, 0.14);
      color: #dbfcff;
      font: inherit;
      letter-spacing: 0.02em;
      border-radius: var(--radius-pill);
      padding: var(--button-pad-y) var(--button-pad-x);
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
      text-decoration: none;
      display: inline-block;
    }

    .button:hover {
      background: rgba(20, 179, 188, 0.22);
    }

    .promo-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 7px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(0, 0, 0, 0.5);
      color: rgba(231, 252, 255, 0.95);
      font-size: 0.9rem;
      letter-spacing: 0.01em;
      text-align: center;
    }

    .promo-bar[hidden] {
      display: none !important;
    }

    .promo-time {
      margin-left: 6px;
      font-weight: 700;
      color: #ffffff;
      white-space: nowrap;
    }

    .brand-logo {
      margin: 0;
      font-size: clamp(1.44rem, 2.88vw, 2.16rem);
      line-height: 1.05;
      letter-spacing: -0.02em;
      font-weight: 700;
      color: #e7fcff;
    }

    .login-button {
      font-weight: 600;
    }

    .auth-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: var(--auth-overlay);
      backdrop-filter: blur(8px);
    }

    .auth-modal-backdrop.is-open {
      display: flex;
    }

    .auth-modal {
      position: relative;
      width: min(460px, 100%);
      padding: 22px;
      border: 1px solid var(--auth-panel-border);
      border-radius: var(--radius-2xl);
      background: var(--auth-panel-bg);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    }

    .auth-close {
      position: absolute;
      top: 12px;
      right: 12px;
      border: 0;
      width: 34px;
      height: 34px;
      border-radius: var(--radius-pill);
      color: var(--auth-panel-text);
      background: var(--auth-close-bg);
      cursor: pointer;
      font-size: 1rem;
      line-height: 1;
    }

    .auth-title {
      margin: 0 0 14px;
      color: var(--auth-panel-text);
      font-size: 1.5rem;
      letter-spacing: -0.01em;
    }

    .auth-mode-switch {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 14px;
    }

    .auth-mode-switch[hidden] {
      display: none !important;
    }

    .auth-mode-button {
      border: 1px solid var(--auth-control-border);
      border-radius: var(--radius-pill);
      padding: 9px 12px;
      background: var(--auth-control-bg);
      color: var(--auth-muted-text);
      font: inherit;
      cursor: pointer;
    }

    .auth-mode-button.is-active {
      background: var(--auth-control-active-bg);
      color: var(--auth-panel-text);
      border-color: var(--auth-focus);
    }

    .auth-field {
      display: grid;
      gap: 6px;
      margin-bottom: 12px;
      color: var(--auth-muted-text);
      font-size: 0.95rem;
    }

    .auth-field[hidden] {
      display: none !important;
    }

    .auth-input {
      width: 100%;
      border: 1px solid var(--auth-input-border);
      border-radius: var(--radius-sm);
      padding: 11px 12px;
      background: var(--auth-input-bg);
      color: var(--auth-panel-text);
      font: inherit;
    }

    .auth-input:focus-visible {
      outline: 2px solid var(--auth-focus);
      outline-offset: 1px;
    }

    .auth-context-message {
      margin: 0 0 12px;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--auth-input-border);
      background: var(--auth-control-bg);
      color: var(--auth-panel-text);
      font-size: 0.9rem;
      line-height: 1.4;
    }

    .auth-account-view {
      display: grid;
      gap: 10px;
      margin-bottom: 8px;
    }

    .auth-account-view[hidden] {
      display: none !important;
    }

    .auth-account-row {
      margin: 0;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--auth-input-border);
      background: var(--auth-input-bg);
      display: grid;
      gap: 2px;
    }

    .auth-account-label {
      font-size: 0.8rem;
      color: var(--auth-muted-text);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .auth-account-value {
      color: var(--auth-panel-text);
      font-size: 1rem;
      overflow-wrap: anywhere;
    }

    .auth-feedback {
      min-height: 20px;
      margin: 4px 0 0;
      color: var(--auth-muted-text);
      font-size: 0.9rem;
    }

    .auth-feedback.is-error {
      color: var(--auth-error);
    }

    .auth-feedback.is-success {
      color: var(--auth-success);
    }

    .auth-submit {
      width: 150px;
      margin-top: 8px;
      font-weight: 700;
      margin-left: auto;
    }

    .main {
      width: min(100% - (var(--page-pad-x) * 2), var(--site-max-width));
      margin: 0 auto;
      padding: var(--page-pad-top) 0 var(--page-pad-bottom);
    }

    .main h1 {
      margin: 0;
      font-size: var(--h1-size);
      line-height: 1.05;
      letter-spacing: -0.02em;
    }

    .plugin-hero {
      display: grid;
      gap: 22px;
      align-items: start;
    }

    .plugin-image {
      width: 100%;
      border-radius: var(--radius-2xl);
      border: 1px solid rgba(188, 252, 255, 0.35);
      background: linear-gradient(160deg, rgba(8, 28, 64, 0.94), rgba(5, 12, 34, 0.94));
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
      overflow: hidden;
    }

    .plugin-image img {
      display: block;
      width: 100%;
      height: auto;
      object-fit: contain;
      margin: 0 auto;
    }

    .plugin-meta {
      margin: 0;
      color: rgba(188, 252, 255, 0.92);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.9rem;
    }

    .plugin-summary p {
      margin: 14px 0 0;
      color: rgba(223, 248, 255, 0.88);
      font-size: var(--body-size);
      line-height: var(--line-height);
    }

    .plugin-price {
      margin: 18px 0 0;
      display: flex;
      align-items: baseline;
      gap: 10px;
      line-height: 1;
    }

    .price-original {
      color: rgba(223, 248, 255, 0.62);
      font-size: clamp(1.1rem, 1.8vw, 1.45rem);
      text-decoration: line-through;
      text-decoration-thickness: 2px;
    }

    .price-sale {
      color: #e7fcff;
      font-size: clamp(1.5rem, 2.4vw, 2rem);
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .button.add-to-cart-button {
      margin-top: 18px;
      border: 1px solid rgba(188, 252, 255, 0.6);
      background: rgba(20, 179, 188, 0.22);
      color: #e7fcff;
      font: inherit;
      font-weight: 700;
      padding: 12px 22px !important;
    }

    .add-to-cart-button:hover {
      background: rgba(20, 179, 188, 0.3);
    }

    .product-download-actions {
      margin-top: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .product-download-actions .receipt-download-button {
      background: rgba(20, 179, 188, 0.22);
    }

    .plugin-summary {
      order: 1;
    }

    .plugin-image {
      order: 2;
    }

    .plugin-details {
      margin-top: 40px;
      padding-top: 28px;
      border-top: 1px solid rgba(188, 252, 255, 0.25);
      width: 100%;
    }

    .plugin-details-inner {
      max-width: 85ch;
    }

    .plugin-details h2 {
      margin: 0;
      font-size: var(--h2-size);
      letter-spacing: -0.01em;
    }

    .plugin-details p {
      margin: 14px 0 0;
      color: rgba(223, 248, 255, 0.86);
      font-size: var(--body-size);
      line-height: var(--line-height);
    }

    .plugin-details-layout {
      display: grid;
      gap: 26px;
      align-items: start;
    }

    .plugin-examples {
    }

    .plugin-examples h2 {
      margin: 0;
      font-size: var(--h2-size);
      letter-spacing: -0.01em;
      margin-bottom: 14px;
    }

    .examples-grid {
      display: grid;
      grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr);
      column-gap: 16px;
      row-gap: 10px;
      align-items: center;
      width: 100%;
    }

    .examples-grid > * {
      white-space: nowrap;
      font-size: 0.98rem;
      color: rgba(223, 248, 255, 0.92);
    }

    .examples-grid .column-head {
      font-size: 1.00rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: rgba(188, 252, 255, 0.78);
      font-weight: 700;
    }

    .examples-grid .reverb-name {
      font-weight: 600;
      color: #e7fcff;
    }

    .examples-grid > [role="rowheader"],
    .examples-grid > [role="cell"] {
      min-height: 64px;
      display: flex;
      align-items: center;
    }

    .audio-sample {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .audio-toggle {
      width: var(--audio-toggle-size);
      height: var(--audio-toggle-size);
      padding: 0 !important;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      overflow: hidden;
      -webkit-tap-highlight-color: transparent;
    }

    .audio-toggle::before {
      content: "";
      width: 0;
      height: 0;
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
      border-left: 11px solid #e7fcff;
      margin-left: 2px;
    }

    .audio-toggle.is-playing::before {
      width: 11px;
      height: 12px;
      border: 0;
      margin-left: 0;
      background: linear-gradient(
        to right,
        #e7fcff 0 4px,
        transparent 4px 7px,
        #e7fcff 7px 11px
      );
    }

    .audio-toggle:focus-visible {
      outline: 2px solid rgba(188, 252, 255, 0.85);
      outline-offset: 2px;
      border-radius: 50%;
    }

    .waveform-placeholder {
      position: relative;
      width: 100%;
      min-width: 0;
      flex: 1 1 auto;
      height: 24px;
      padding: 2px;
      overflow: hidden;
    }

    .waveform-placeholder.is-loading {
      opacity: 0.72;
    }

    .waveform-bar {
      width: var(--wave-unit, 3px);
      flex: 0 0 var(--wave-unit, 3px);
      min-height: 2px;
      border-radius: var(--radius-pill);
    }

    .waveform-layer {
      position: absolute;
      left: 2px;
      top: 2px;
      bottom: 2px;
      display: flex;
      align-items: center;
      gap: var(--wave-unit, 3px);
      pointer-events: none;
    }

    .waveform-track .waveform-bar {
      background: rgba(188, 252, 255, 0.28);
    }

    .waveform-fill-clip {
      position: absolute;
      left: 2px;
      top: 2px;
      bottom: 2px;
      width: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .waveform-fill .waveform-bar {
      background: rgba(188, 252, 255, 0.9);
    }

    .waveform-fill {
      left: 0;
      top: 0;
      bottom: 0;
    }

    @media (min-width: 640px) {
      :root {
        --page-pad-x: calc(26px * var(--scale-ar));
        --page-pad-top: calc(30px * var(--scale-ar));
        --page-pad-bottom: calc(91px * var(--scale-ar));
        --bar-pad-y: calc(16px * var(--scale-ar));
        --bar-pad-x: calc(24px * var(--scale-ar));
        --button-pad-y: calc(12px * var(--scale-ar));
        --button-pad-x: calc(20px * var(--scale-ar));
        --h1-size: calc(clamp(2.76rem, 7.2vw, 3.84rem) * var(--scale-ar));
        --h2-size: calc(clamp(1.74rem, 4.56vw, 2.4rem) * var(--scale-ar));
        --radius-sm: 10px;
        --radius-md: 12px;
        --radius-lg: 14px;
        --radius-xl: 16px;
        --radius-2xl: 18px;
      }
    }

    @media (min-width: 900px) {
      :root {
        --site-max-width: calc(1160px * var(--scale-ar));
        --page-pad-x: calc(34px * var(--scale-ar));
        --page-pad-top: calc(82px * var(--scale-ar));
        --page-pad-bottom: calc(106px * var(--scale-ar));
        --bar-pad-y: calc(17px * var(--scale-ar));
        --bar-pad-x: calc(29px * var(--scale-ar));
        --audio-toggle-size: calc(40px * var(--scale-ar));
        --h1-size: calc(clamp(3.12rem, 6vw, 4.56rem) * var(--scale-ar));
        --h2-size: calc(clamp(1.86rem, 2.64vw, 2.64rem) * var(--scale-ar));
      }

      .plugin-hero {
        grid-template-columns: 1fr 1fr;
        gap: 52px;
      }

      .plugin-summary {
        order: 2;
      }

      .plugin-image {
        order: 1;
        align-self: center;
      }

      .plugin-image {
        width: 100%;
      }
      .plugin-details-layout {
        grid-template-columns: 1fr 1fr;
        gap: 52px;
      }
    }

    @media (min-width: 1200px) {
      :root {
        --site-max-width: calc(1320px * var(--scale-ar));
        --page-pad-x: calc(41px * var(--scale-ar));
        --page-pad-top: calc(89px * var(--scale-ar));
        --page-pad-bottom: calc(113px * var(--scale-ar));
        --audio-toggle-size: calc(50px * var(--scale-ar));
      }

      .plugin-hero {
        gap: 64px;
      }
      .plugin-details-layout {
        gap: 64px;
      }
    }

    @media (min-width: 1536px) {
      :root {
        --site-max-width: calc(1480px * var(--scale-ar));
        --page-pad-x: calc(50px * var(--scale-ar));
        --page-pad-top: calc(98px * var(--scale-ar));
        --page-pad-bottom: calc(125px * var(--scale-ar));
        --h1-size: calc(clamp(3.36rem, 4.8vw, 5.04rem) * var(--scale-ar));
      }

      .plugin-hero {
        gap: 76px;
      }
      .plugin-details-layout {
        gap: 76px;
      }
    }
  

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.currency-state-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.currency-state-button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms ease, transform 120ms ease, font-weight 120ms ease;
}

.currency-state-button:hover {
  background: rgba(0, 0, 0, 0.12);
}

.currency-state-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.currency-state-button.is-active {
  font-weight: 800;
  font-size: 20px;
  transform: scale(1.05);
}

.nav-link-button {
  text-decoration: none;
}

.store-page {
  min-height: 100vh;
  background: #f5f7fb;
  color: #13244d;
}

.store-main {
    width: min(100% - (var(--page-pad-x) * 2), var(--site-max-width));
    margin: 0 auto;
    padding: calc(28px * var(--scale-ar)) 0 calc(72px * var(--scale-ar));
}

.store-hero h1 {
  margin: 0;
  font-size: calc(clamp(2rem, 6vw, 3rem) * var(--scale-ar));
  letter-spacing: -0.02em;
}

.store-hero p {
  margin: 10px 0 0;
  color: rgba(19, 36, 77, 0.78);
  font-size: calc(1.05rem * var(--scale-ar));
}

.store-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 20px;
}

.store-card {
  position: relative;
  border: 1px solid rgba(17, 33, 70, 0.14);
  border-radius: var(--radius-xl);
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(12, 27, 65, 0.08);
  overflow: hidden;
}

.store-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 33, 70, 0.12);
  background: #eef3ff;
}

.store-card h2 {
  margin: 12px 0 0;
  font-size: 1.3rem;
}

.store-card p {
  margin: 8px 0 0;
  color: rgba(19, 36, 77, 0.82);
}

.store-card .store-price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.store-price-original {
  color: rgba(19, 36, 77, 0.6);
  font-size: 1rem;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.store-price-sale {
  color: #112146;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-empty-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(17, 33, 70, 0.14);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: rgba(19, 36, 77, 0.8);
}

.store-card .button {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
}

:root[data-theme="light"] .button-bar {
  border-bottom-color: rgba(12, 37, 84, 0.2);
  background: rgba(255, 255, 255, 0.75);
}

:root[data-theme="light"] .promo-bar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.92);
  color: rgba(231, 252, 255, 0.95);
}

:root[data-theme="light"] .promo-time {
  color: #ffffff;
}

:root[data-theme="light"] .brand-logo {
  color: #0f1b3a;
}

:root[data-theme="light"] .button {
  border-color: rgba(12, 37, 84, 0.3);
  background: rgba(18, 93, 210, 0.08);
  color: #0f1b3a;
}

:root[data-theme="light"] .button:hover {
  background: rgba(18, 93, 210, 0.15);
}

.cart-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: #112146;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.store-card-add-to-cart {
  display: block !important;
  width: fit-content;
  margin-top: 12px;
  margin-left: auto;
  position: relative;
  z-index: 3;
}

.store-card-owned-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.store-card-owned-actions .receipt-download-button {
  margin-top: 0;
  background: rgba(20, 179, 188, 0.22);
}

.store-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.cart-main,
.checkout-main {
  padding-top: 34px;
}

.cart-layout,
.checkout-layout {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.cart-items-panel,
.cart-summary-panel,
.checkout-form-card,
.checkout-summary-panel,
.checkout-empty-state {
  border: 1px solid rgba(17, 33, 70, 0.14);
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(12, 27, 65, 0.09);
}

.cart-items-panel,
.checkout-form-card {
  padding: 20px;
}

.cart-summary-panel,
.checkout-summary-panel {
  padding: 20px;
  height: fit-content;
}

.cart-empty-state,
.checkout-empty-state {
  padding: 28px 20px;
  text-align: center;
}

.cart-empty-state h2,
.checkout-empty-state h2 {
  margin: 0;
  font-size: 1.5rem;
}

.cart-empty-state p,
.checkout-empty-state p {
  margin: 10px 0 18px;
  color: rgba(19, 36, 77, 0.8);
}

.cart-items-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(17, 33, 70, 0.14);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: #f9fbff;
}

.cart-item-media {
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 33, 70, 0.12);
  background: #eef3ff;
}

.cart-item-title {
  margin: 0;
  font-size: 1.15rem;
}

.cart-item-meta {
  margin: 6px 0 0;
  color: rgba(19, 36, 77, 0.8);
}

.cart-item-price {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.cart-item-price-single {
  color: #112146;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cart-item-link {
  margin-top: 8px;
  display: inline-block;
  color: #1452b8;
  text-decoration: none;
  font-weight: 600;
}

.cart-item-link:hover {
  text-decoration: underline;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-remove-button {
    border: 0;
    background: transparent;
    color: #9f2132;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
}

.cart-remove-button:hover {
  text-decoration: underline;
}

.cart-item-total {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-panel-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discount-form {
  margin-top: 14px;
}

.discount-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.discount-applied-list {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.discount-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: var(--button-pad-y) 15px;
  border: 1px solid rgba(12, 37, 84, 0.3);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #0f1b3a;
  font-size: 0.92rem;
  line-height: 1;
  white-space: nowrap;
}

.discount-code-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.discount-feedback {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: rgba(19, 36, 77, 0.8);
  display: none;
}

.discount-feedback.is-visible {
  display: block;
}

.discount-feedback.is-error,
.checkout-feedback.is-error {
  color: #b3261e;
}

.discount-feedback.is-success,
.checkout-feedback.is-success {
  color: #116837;
}

.summary-lines {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 33, 70, 0.14);
  display: grid;
  gap: 10px;
}

.summary-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-line.is-discount span:last-child {
  color: #116837;
}

.summary-total {
  padding-top: 10px;
  border-top: 1px dashed rgba(17, 33, 70, 0.2);
  font-size: 1.18rem;
  font-weight: 700;
}

.checkout-cta {
  margin-top: 18px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.checkout-note {
  margin: 10px 0 0;
  color: rgba(19, 36, 77, 0.78);
  font-size: 0.92rem;
}

.checkout-form-card h2,
.checkout-summary-panel h2,
.cart-summary-panel h2 {
  margin: 0;
  font-size: 1.26rem;
}

.checkout-form-card h2 + .checkout-field-grid,
.checkout-form-card h2 + .checkout-field {
  margin-top: 12px;
}

.checkout-form-card h2:not(:first-child) {
  margin-top: 20px;
}

.checkout-field-grid {
  display: grid;
  gap: 12px;
}

.checkout-field-grid.two-col {
  grid-template-columns: 1fr;
}

.checkout-field-grid.three-col {
  grid-template-columns: 1fr;
}

.checkout-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: rgba(19, 36, 77, 0.9);
  font-size: 0.95rem;
}

.checkout-input {
  width: 100%;
  border: 1px solid rgba(17, 33, 70, 0.24);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: #f8fbff;
  color: #13244d;
  font: inherit;
  margin-bottom: 15px;
}

.checkout-input:focus-visible {
  outline: 2px solid rgba(18, 93, 210, 0.48);
  outline-offset: 1px;
}

.payment-placeholder {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed rgba(17, 33, 70, 0.22);
  border-radius: var(--radius-md);
  background: #f7faff;
}

.payment-placeholder p {
  margin: 0;
  color: rgba(19, 36, 77, 0.84);
}

.payment-placeholder p + p {
  margin-top: 8px;
}

.checkout-consent {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(19, 36, 77, 0.9);
  font-size: 0.95rem;
}

.checkout-submit-button {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  font-weight: 700;
}

.checkout-submit-button[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
}

.checkout-feedback {
  margin: 10px 0 0;
  min-height: 20px;
  color: rgba(19, 36, 77, 0.82);
}

.checkout-order-items {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.checkout-order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(19, 36, 77, 0.86);
}

.checkout-order-item-name {
  font-weight: 600;
}

.receipt-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.receipt-reference {
  margin: 12px 0 0;
  font-weight: 700;
  color: #112146;
}

.receipt-items {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.receipt-item {
  border: 1px solid rgba(17, 33, 70, 0.14);
  border-radius: var(--radius-lg);
  background: #f9fbff;
  padding: 14px;
}

.receipt-item-header {
  display: grid;
  gap: 6px;
}

.receipt-item-name {
  margin: 0;
  font-size: 1.08rem;
  color: #112146;
}

.receipt-item-code,
.receipt-item-license {
  margin: 0;
  color: rgba(19, 36, 77, 0.82);
  font-size: 0.95rem;
}

.receipt-item-license {
  margin-top: 8px;
  word-break: break-word;
}

.receipt-item-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-download-button {
  text-decoration: none;
}

.receipt-empty {
  margin: 14px 0 0;
  color: rgba(19, 36, 77, 0.8);
}

.cart-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 39, 95, 0.25);
  background: #ffffff;
  color: #13244d;
  box-shadow: 0 16px 30px rgba(7, 28, 67, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 880px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }

  .checkout-field-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-field-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cart-item {
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
  }

  .inline-flex {
      display: inline-flex !important;
  }

  .edit-cart-button {
      display: inline-flex;
      margin-top: 18px;
  }
}
