:root {
  --accent: #1f3a5f;
  --bg: #f4f5f7;
  --card: #fff;
  --text: #1a1d21;
  --muted: #667085;
  --line: #e2e5ea;
  --field: #c9ced6;
  --ok: #1a7f4b;
  --warn: #9a5b00;
  --bad: #b3261e;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}

h1, h2 { line-height: 1.25; }
h2 { margin: 0 0 12px; font-size: 1.125rem; }
p { margin: 0 0 12px; }
a { color: var(--accent); }

.top, .card { width: min(560px, 100% - 24px); margin-inline: auto; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 16px 4px 12px;
}

.shop { margin: 0; font-size: 1.25rem; }

.langs { display: flex; gap: 4px; }

.langs button {
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}

.langs button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }

.card {
  margin-bottom: 32px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

@media (min-width: 600px) {
  .top { padding-top: 32px; }
  .card { padding: 28px; }
}

.muted { color: var(--muted); }
.center { text-align: center; }
.big { margin: 0; padding: 24px 0; font-size: 1.125rem; }

.steps { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }

.steps li {
  flex: 1;
  padding-top: 8px;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}

.steps li.is-on { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.notice { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; font-size: .9375rem; }
.notice.error { background: #fdecea; color: var(--bad); }
.notice.warn { background: #fff4e0; color: var(--warn); }
.notice.ok { background: #e7f5ed; color: var(--ok); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

.slot:hover:not(:disabled) { border-color: var(--accent); }
.slot:disabled { border-color: var(--line); background: var(--bg); color: #98a0ad; cursor: not-allowed; }
.slot small { font-size: .6875rem; font-weight: 500; }

.picked {
  display: flex;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
}

label { display: block; margin: 0 0 14px; font-size: .9375rem; font-weight: 600; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn.small { min-height: 44px; padding: 4px 14px; font-size: .875rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.actions { display: flex; gap: 8px; margin-top: 20px; }
.actions .primary { flex: 1; }

.pay { margin: 0 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.pay small { display: block; color: var(--muted); font-size: .75rem; }
.pay-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.pay-row strong { font-size: 1.375rem; }

.iban {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.iban-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.choice { display: grid; gap: 8px; margin-bottom: 14px; }

.choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}

.choice label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input { width: 18px; height: 18px; accent-color: var(--accent); }

.file {
  position: relative;
  padding: 16px 12px;
  border: 1px dashed #aab1bc;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.status { text-align: center; }

.status-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 4px auto 12px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.status-pending .status-icon { background: var(--warn); }
.status-approved .status-icon { background: var(--ok); }
.status-rejected .status-icon { background: var(--bad); }

.summary {
  margin: 16px 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: start;
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.status .btn { width: 100%; }

.months { display: flex; gap: 6px; margin-bottom: 12px; }

.months button {
  flex: 1;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.months button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.months button:disabled { border-color: var(--line); background: var(--bg); color: #98a0ad; cursor: not-allowed; }

/* Seven columns that reach a little into the card's padding, so cells stay about 46 px wide on a phone. */
.cal-head,
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-inline: -8px; }
.cal-head { margin-bottom: 4px; color: var(--muted); font-size: .75rem; text-align: center; }
.cal { margin-bottom: 20px; }

.cal-day {
  position: relative;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cal-day:disabled { border-color: transparent; background: none; color: #b3b9c4; font-weight: 400; cursor: not-allowed; }
.cal-day.is-on { border-color: var(--accent); background: var(--accent); color: #fff; }

.cal-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: currentColor;
}

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

.kinds label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--field);
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
}

.kinds input { position: absolute; opacity: 0; }
.kinds label:has(input:checked) { border-color: var(--accent); background: var(--accent); color: #fff; }
.kinds label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.foot { width: min(560px, 100% - 24px); margin: -16px auto 32px; text-align: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }
