/* Return portal: shown to customers, often inside the webshop's own page (iframe).
   Always light, so it fits on the (light) webshop pages; --shop is the webshop colour. */
:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --border: #e2e0da;
  --text: #161614;
  --text-2: #55544f;
  --text-3: #7a7973;
  --shop: #2a78d6;
  --shop-ink: #ffffff;
  --error-bg: #fdecec;
  --error-ink: #a32424;
  --info-bg: #fff6e0;
  --info-ink: #6b4a00;
  --ok-bg: #e8f6ec;
  --ok-ink: #1d6b33;
  --radius: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body { margin: 0; background: var(--bg); color: var(--text); }
body.embedded { background: transparent; }
.portal { max-width: 680px; margin: 0 auto; padding: 24px 16px 40px; }
.portal-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.shop-mark { width: 10px; align-self: stretch; min-height: 44px; border-radius: 5px; background: var(--shop); }
.shop-name { margin: 0; color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
h1 { margin: 0; font-size: 1.5rem; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
label { display: block; font-weight: 600; margin: 0 0 4px; font-size: 0.95rem; }
input, select, textarea {
  font: inherit; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cfcdc6;
  border-radius: 8px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--shop) 45%, transparent); outline-offset: 1px; }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button, .button {
  font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 12px 18px; cursor: pointer;
  background: var(--shop); color: var(--shop-ink); display: inline-block; text-decoration: none; text-align: center;
}
button.secondary, .button.secondary { background: transparent; color: var(--text); border: 1px solid #cfcdc6; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.message { border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; }
.message.error { background: var(--error-bg); color: var(--error-ink); }
.message.info { background: var(--info-bg); color: var(--info-ink); }
.message.ok { background: var(--ok-bg); color: var(--ok-ink); }
.test-banner { background: var(--info-bg); color: var(--info-ink); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 0.9rem; }
.item { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.item.disabled { background: #faf9f7; }
.item-head { display: flex; gap: 12px; align-items: flex-start; }
.item-head img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex: none; }
.item-name { font-weight: 600; margin: 0; }
.item-grid { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin-top: 12px; }
.item .message { margin: 10px 0 0; }
.summary { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; font-size: 1.05rem; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; font-size: 0.9rem; }
.status-pill.wait { background: var(--info-bg); color: var(--info-ink); }
.status-pill.bad { background: var(--error-bg); color: var(--error-ink); }
ul.lines { padding-left: 18px; margin: 8px 0 0; }
@media (max-width: 520px) {
  .row, .item-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .actions button, .actions .button { width: 100%; }
}
