:root {
  --tangerine: #fa5c4f;
  --tangerine-dark: #f94541;
  --purple: #2e193d;
  --purple-rain: #654487;
  --purple-light: #bfa9d1;
  --pink: #ffa1d0;

  --bg: #ffffff;
  --text: var(--purple);
  --muted: #5d4b6b;
  --heading: var(--tangerine);
  --panel-bg: var(--purple);
  --panel-border: transparent;
  --card-bg: #ffffff;
  --card-border: #e6dfec;
  --soft: #f6f2f9;
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Satoshi', 'Inter', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.top { padding: 20px 16px 0; max-width: 600px; margin: 0 auto; }
.logo { height: 36px; width: auto; display: block; }

.wrap { max-width: 600px; margin: 0 auto; padding: 24px 16px 48px; }

h1 {
  color: var(--heading);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
}
h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--heading); }
.lead { margin: 0 0 24px; color: var(--muted); }

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 24px;
  color: #ffffff;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 8px; }
label { font-weight: 500; }
.req { color: var(--tangerine); }
input {
  font: inherit;
  width: 100%;
  min-height: 50px;
  background: #ffffff;
  color: var(--purple);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: #a596b3; }
input:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 2px; }
#last4 { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; max-width: 160px; }
.hint { margin: 0; font-size: 14px; color: var(--purple-light); }
.error { margin: 0; color: var(--pink); font-weight: 500; }
.captcha { min-height: 65px; }

.btn {
  font: inherit;
  font-weight: 700;
  background: var(--tangerine);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 14px 28px;
  min-height: 50px;
  cursor: pointer;
  justify-self: start;
  transition: background 0.15s;
}
.btn:hover { background: var(--tangerine-dark); }
.btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { padding: 9px 18px; min-height: 40px; font-size: 15px; }
.card .btn:focus-visible { outline-color: var(--tangerine); }

#results { margin-top: 32px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.card p { margin: 0; }
.when { font-weight: 700; }
.meta, .pay { color: var(--muted); font-size: 15px; }
.card-side { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.amount { font-weight: 700; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card .error { color: var(--tangerine-dark); flex-basis: 100%; font-size: 15px; }

.empty {
  background: var(--soft);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0;
}

.wallet-help { font-size: 15px; }
.wallet-help p { margin: 0 0 8px; }
.wallet-help .wallet-title { font-weight: 700; font-size: 17px; }
.wallet-help ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.help { margin-top: 32px; color: var(--muted); font-size: 15px; }
.help p { margin: 0; }
a { color: var(--tangerine); font-weight: 500; }
.help a { white-space: nowrap; }


.app-box {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  scroll-margin-top: 16px;
}
.app-box h2 { margin-bottom: 6px; }
.app-box p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  background: #000000;
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.store:hover { background: var(--purple); }
.store:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 2px; }
.store-icon { width: 24px; height: 24px; flex: none; }
.store-text { display: grid; line-height: 1.15; font-weight: 700; font-size: 17px; }
.store-text small { font-weight: 400; font-size: 11px; letter-spacing: 0.02em; }

@media (max-width: 420px) {
  .panel { padding: 20px; }
  .card-side { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* Desktop: search and results on the left, app and help info beside them. */
@media (min-width: 960px) {
  .top, .wrap { max-width: 1040px; padding-left: 32px; padding-right: 32px; }
  .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 48px;
    align-items: start;
  }
  .wrap > :not(.side) { grid-column: 1; }
  .side {
    grid-column: 2;
    grid-row: 1 / span 6;
    position: sticky;
    top: 24px;
    padding-top: 8px;
  }
  .side .app-box { margin-top: 0; }
  .side .help { margin-top: 20px; }
  .lead { margin-bottom: 28px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: flex-start; }
}

/* Shown inside kople.no/kvittering: the site header has the logo, and the frame is always as tall
   as the content, so a sticky sidebar has nothing to stick to. */
.embed .top { display: none; }
.embed .wrap { padding-top: 8px; padding-bottom: 24px; }
.embed .side { position: static; }

/* Phones: date, digits, robot check and button must all fit above the fold under the kople.no
   header (iPhone 17 Pro: about 630px between the site header and Safari's toolbar). */
@media (max-width: 599px) {
  h1 { font-size: 28px; margin: 4px 0 6px; }
  .lead { margin-bottom: 16px; font-size: 16px; }
  .panel { padding: 18px; gap: 14px; border-radius: 18px; }
  .field { gap: 6px; }
  input { min-height: 46px; }
  .embed .wrap { padding-top: 4px; }
}
