* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2 {
  font-family: Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 1.6rem; margin-bottom: .5rem; }
h2 { font-size: 1.15rem; margin-bottom: .4rem; }

a { color: var(--action); }

.site-header {
  padding: 1.25rem 1rem .75rem;
  text-align: center;
}
.site-header .logo { max-width: 210px; height: auto; }

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.card {
  background: var(--surface);
  border-radius: 10px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 2px 10px rgba(13, 13, 13, .08);
  padding: 1.5rem 1.25rem;
  margin-top: .5rem;
}

.tagline { margin-bottom: .75rem; }

.deadline {
  background: color-mix(in srgb, var(--accent) 14%, white);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: .6rem .8rem;
  font-size: .95rem;
  margin-bottom: 1rem;
}

form label {
  display: block;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: .9rem;
  margin: .9rem 0 .3rem;
}

form input[type="text"], form input[type="email"] {
  width: 100%;
  padding: .7rem .8rem;
  font-size: 1rem;
  border: 1.5px solid var(--muted);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
form input:focus { outline: 2px solid var(--action); border-color: var(--action); }

button[type="submit"] {
  margin-top: 1.1rem;
  width: 100%;
  padding: .8rem;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  background: var(--action);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
button[type="submit"]:hover { filter: brightness(1.08); }

/* honeypot — visually gone, still in the DOM for bots */
.hp { position: absolute; left: -9999px; top: -9999px; }

.hint { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

.notice {
  border-radius: 6px;
  padding: .7rem .9rem;
  margin-bottom: .5rem;
  font-size: .95rem;
}
.notice-error {
  background: color-mix(in srgb, var(--action) 10%, white);
  border-left: 3px solid var(--action);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.badge {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-good { background: color-mix(in srgb, var(--accent) 25%, white); color: var(--ink); }
.badge-accent { background: color-mix(in srgb, var(--muted) 15%, white); color: var(--muted); }
.badge-muted { background: #eee; color: var(--muted); }

.tracking { margin: .75rem 0; display: flex; flex-direction: column; gap: .4rem; }
.tracking-link {
  display: inline-block;
  font-weight: 600;
  padding: .55rem .8rem;
  background: color-mix(in srgb, var(--accent) 14%, white);
  border-radius: 6px;
  text-decoration: none;
}

.ship-to { font-size: .95rem; margin: .5rem 0; }

.line-items { list-style: none; margin: 1rem 0; display: flex; flex-direction: column; gap: .75rem; }
.line-item {
  display: flex;
  gap: .8rem;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: .6rem;
}
.line-item img, .thumb-placeholder {
  width: 64px; height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.li-title { font-weight: 600; font-size: .95rem; }
.li-variant, .li-qty { font-size: .85rem; color: var(--muted); }

.order-meta { font-size: .85rem; color: var(--muted); }

.change-box {
  margin-top: 1.25rem;
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.actions { display: flex; flex-direction: column; gap: .55rem; margin-top: .9rem; }
.action-btn {
  display: block;
  padding: .7rem .9rem;
  background: var(--surface);
  border: 1.5px solid var(--action);
  border-radius: 6px;
  color: var(--action);
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  text-align: center;
}
.action-btn:hover { background: var(--action); color: #fff; }
.action-danger { border-color: var(--muted); color: var(--muted); }
.action-danger:hover { background: var(--muted); color: #fff; }

.btn-danger { background: var(--muted) !important; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

form select {
  width: 100%;
  padding: .7rem .8rem;
  font-size: 1rem;
  border: 1.5px solid var(--muted);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.notice-pending {
  background: color-mix(in srgb, var(--accent) 14%, white);
  border-left: 3px solid var(--accent);
  margin-top: .5rem;
}

.back-link { display: inline-block; margin-top: 1.25rem; font-size: .95rem; }

.card + .card { margin-top: 1rem; }

.pick-form { width: 100%; }
.pick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  width: 100%;
  padding: .5rem .6rem;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
}
.pick-btn:hover .li-title { color: var(--action); text-decoration: underline; }

.site-footer {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  padding: 1.5rem 1rem 2rem;
}
.site-footer p { margin: .25rem 0; }
