:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --store-blue: #075be8;
  --store-blue-dark: #0648c8;
  --store-muted: #748198;
  --store-line: #e4e9f1;
  --store-surface: #fff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f5f7fb;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.store-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.store-header {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--store-line);
}

.store-brand img {
  display: block;
  width: 150px;
  height: auto;
}

.store-account {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #43516a;
  font-size: 13px;
  font-weight: 700;
}

.store-login-card {
  width: min(440px, 100%);
  margin: 72px auto 100px;
  padding: 34px;
  border: 1px solid var(--store-line);
  border-radius: 18px;
  background: var(--store-surface);
  box-shadow: 0 16px 42px rgb(22 33 51 / 7%);
}

.store-login-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #edf4ff;
  color: var(--store-blue);
  font-size: 28px;
}

.store-login-card h1 {
  margin: 22px 0 8px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.store-login-card > p,
.store-welcome > div > p:last-child,
.store-section-heading p {
  color: var(--store-muted);
  font-size: 14px;
  line-height: 1.6;
}

.store-login-card form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.store-login-card label {
  font-size: 13px;
  font-weight: 700;
}

.store-login-card input {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid #d5deeb;
  border-radius: 9px;
  background: #fff;
  color: #172033;
}

.store-login-card input:focus {
  border-color: var(--store-blue);
  outline: 3px solid rgb(7 91 232 / 14%);
}

.store-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--store-blue);
  border-radius: 9px;
  background: var(--store-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.store-button:hover {
  background: var(--store-blue-dark);
}

.store-button:disabled {
  cursor: wait;
  opacity: .65;
}

.store-button.secondary {
  border-color: var(--store-line);
  background: #fff;
  color: #34425a;
}

.store-button.secondary:hover {
  border-color: #b7c8e2;
  background: #f7faff;
}

.store-text-button {
  justify-self: center;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--store-blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.store-message {
  min-height: 20px;
  margin: 15px 0 0;
  color: #a53d2d;
  font-size: 13px;
  line-height: 1.5;
}

.store-content {
  padding: 34px 0 58px;
}

.store-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.store-eyebrow {
  margin: 0 0 8px;
  color: var(--store-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.store-welcome h1 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.store-welcome > div > p:last-child {
  margin: 8px 0 0;
}

.store-welcome nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.store-welcome nav a {
  padding: 9px 12px;
  border: 1px solid var(--store-line);
  border-radius: 9px;
  background: #fff;
  color: #34425a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.store-section {
  margin-top: 28px;
  padding: 23px;
  border: 1px solid var(--store-line);
  border-radius: 15px;
  background: var(--store-surface);
}

.store-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.store-section-heading h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.store-section-heading p {
  margin: 5px 0 0;
  font-size: 12px;
}

.store-product-grid,
.store-purchase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.store-product-card,
.store-purchase-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--store-line);
  border-radius: 12px;
  background: #fff;
}

.store-product-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
}

.store-product-card > img {
  width: 90px;
  height: 90px;
  border: 1px solid var(--store-line);
  border-radius: 9px;
  object-fit: cover;
}

.store-product-card h3,
.store-purchase-card h3 {
  margin: 0;
  font-size: 15px;
}

.store-product-card p,
.store-purchase-card p {
  margin: 7px 0 0;
  color: var(--store-muted);
  font-size: 12px;
  line-height: 1.55;
}

.store-product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.store-product-meta strong {
  font-size: 14px;
}

.store-purchase-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.store-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f7ed;
  color: #157445;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.store-purchase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.store-purchase-links a {
  color: var(--store-blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.store-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border: 1px dashed #d6deea;
  border-radius: 10px;
  color: var(--store-muted);
  font-size: 13px;
  text-align: center;
}

.store-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--store-line);
  color: var(--store-muted);
  font-size: 11px;
}

.store-footer a {
  color: #53627a;
  text-decoration: none;
}

@media (max-width: 700px) {
  .store-shell {
    width: min(100% - 24px, 560px);
  }

  .store-header {
    min-height: 68px;
  }

  .store-brand img {
    width: 126px;
  }

  .store-login-card {
    margin: 42px auto 70px;
    padding: 24px;
  }

  .store-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-section {
    padding: 16px;
  }

  .store-product-grid,
  .store-purchase-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
