:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1a2332;
  --text-muted: #5c6b7f;
  --primary: #0d6e4f;
  --primary-dark: #095a40;
  --accent: #f59e0b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
}

.header-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.site-main {
  padding-bottom: 3rem;
}

.hero {
  background: linear-gradient(135deg, #0d6e4f 0%, #0a4d38 55%, #1a2332 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}

.hero-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 28rem;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  opacity: 0.92;
  font-size: 1.05rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 32rem;
}

.search-input {
  flex: 1;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #1a2332;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: min(1120px, 92vw);
  margin: 1.5rem auto 0;
}

.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.store-filters {
  width: min(1120px, 92vw);
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.chip:hover {
  border-color: var(--primary);
}

.chip-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.chip-count {
  font-size: 0.75rem;
  opacity: 0.85;
}

.results-header {
  width: min(1120px, 92vw);
  margin: 2rem auto 1rem;
}

.results-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.results-meta {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.offer-grid {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.offer-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.offer-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef2f6;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.4;
}

.badge-discount {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.offer-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.offer-store {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.offer-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.offer-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.offer-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.offer-valid {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pagination {
  width: min(1120px, 92vw);
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.page-current {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.empty-state,
.alert {
  width: min(1120px, 92vw);
  margin: 1.5rem auto;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.alert-error {
  border-left: 4px solid #dc2626;
}

.empty-state {
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.footer-inner {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    flex-wrap: wrap;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
  }

  .date-fields,
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Header nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--primary);
}

.nav-user {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nav-logout {
  display: inline;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-text-danger {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}

/* Date filter */
.date-filter-panel {
  width: min(1120px, 92vw);
  margin: 0 auto 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.date-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.date-legend {
  font-weight: 600;
  margin: 0 0 0.75rem;
  display: block;
}

.date-mode-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.date-filter-layout {
  display: block;
  overflow-x: auto;
}

.date-filter-grid {
  display: grid;
  grid-template-columns: minmax(9.5rem, auto) minmax(10rem, auto) minmax(18rem, 1fr);
  grid-template-rows: auto auto;
  gap: 0.45rem 1.25rem;
  align-items: end;
  min-width: min(100%, 40rem);
}

.date-opt-all,
.date-slot-all {
  grid-column: 1;
}

.date-opt-day,
.date-slot-day {
  grid-column: 2;
}

.date-opt-range,
.date-slot-range {
  grid-column: 3;
}

.date-opt-all,
.date-opt-day,
.date-opt-range {
  grid-row: 1;
}

.date-slot-all,
.date-slot-day,
.date-slot-range {
  grid-row: 2;
}

.date-range-pair {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.date-filter-layout[data-mode="all"] .date-slot-day,
.date-filter-layout[data-mode="all"] .date-slot-range {
  display: none;
}

.date-filter-layout[data-mode="day"] .date-slot-range {
  display: none;
}

.date-filter-layout[data-mode="range"] .date-slot-day {
  display: none;
}

.date-filter-layout[data-mode="day"] .date-opt-day,
.date-filter-layout[data-mode="range"] .date-opt-range {
  background: #f0faf5;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px #c5e8d8;
}

@media (max-width: 520px) {
  .date-filter-grid {
    min-width: 34rem;
  }
}

.date-field-day.date-field-active,
.date-field-from.date-field-active,
.date-field-to.date-field-active {
  opacity: 1;
}

.date-inline-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 10rem;
}

.date-inline-label input[type="date"] {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.date-mode-group {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.9rem;
}

.radio-chip-active {
  border-color: var(--primary);
  background: #e8f5ef;
  color: var(--primary-dark);
}

.radio-chip input {
  accent-color: var(--primary);
}

.date-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.date-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.results-date {
  color: var(--primary);
}

/* Auth */
.auth-card {
  width: min(480px, 92vw);
  margin: 2rem auto;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.form-input-sm {
  max-width: 5rem;
}

.field-error {
  color: #dc2626;
  font-size: 0.85rem;
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* Lists */
.page-header {
  width: min(1120px, 92vw);
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-lead {
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.list-grid {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.list-card {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.list-card:hover {
  transform: translateY(-2px);
}

.list-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.list-meta,
.list-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.list-edit-panel,
.add-item-panel {
  width: min(1120px, 92vw);
  margin: 0 auto 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.inline-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.shopping-items {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shopping-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
}

.shopping-item-done {
  opacity: 0.65;
}

.shopping-item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shopping-item-head h3 {
  margin: 0;
  font-size: 1rem;
}

.qty {
  color: var(--text-muted);
  font-weight: 500;
}

.check-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}

.check-btn-on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.match-row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.match-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.match-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.match-item-selected {
  border-color: var(--primary);
  background: #f0faf5;
}

.match-item-body {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
}

.match-item-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
}

.match-item-body > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  font-size: 0.9rem;
}

.match-item-title {
  font-weight: 600;
}

.match-item-store {
  color: var(--text-muted);
}

.match-item-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.match-item-form {
  margin: 0;
}

.match-item-clickable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.match-item-clickable:hover {
  border-color: var(--primary);
  background: #f8fcfa;
}

.match-item-body > span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.match-pick-form {
  flex-shrink: 0;
}

.btn-match-pick {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-match-pick:hover:not(:disabled) {
  background: #e8f5ef;
}

.btn-match-pick-selected,
.btn-match-pick:disabled {
  background: var(--primary);
  color: #fff;
  cursor: default;
  opacity: 1;
}

.item-selected-offer {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.item-selected-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.75rem;
}

.date-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.date-filter-status {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1 1 12rem;
}

.date-filter-status.is-active {
  color: var(--primary-dark);
  font-weight: 600;
}

.date-filter-status.is-pending {
  color: var(--accent);
  font-weight: 600;
}

.btn-date-apply {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.btn-date-apply--ready {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(13, 110, 79, 0.35);
}

.btn-date-apply--ready:hover {
  background: var(--primary-dark);
}

.btn-date-apply--idle {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: default;
}

.btn-date-apply:disabled {
  opacity: 1;
}

.match-valid {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-table-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Butik-badge / logo --- */
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: none;
}

.store-badge--sm {
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
}

.store-badge--lg {
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
}

.store-logo {
  display: inline-flex;
  align-items: center;
}

.store-logo img {
  display: block;
  width: auto;
  object-fit: contain;
}

.store-logo--sm img {
  height: 20px;
  max-width: 96px;
}

.store-logo--lg img {
  height: 30px;
  max-width: 140px;
}

/* offer-store rummer nu et badge i stedet for ren tekst */
.offer-store {
  display: flex;
  align-items: center;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.chip-store {
  gap: 0.4rem;
}

/* --- Indkøbsseddel (Lists/Details) --- */
.seddel-layout {
  width: min(1120px, 92vw);
  margin: 1.25rem auto 3rem;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .seddel-layout {
    grid-template-columns: 1fr;
  }
}

.seddel-search-col {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.seddel-search-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.seddel-search-hint {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.seddel-search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.seddel-search-form .form-input {
  flex: 1 1 auto;
}

.seddel-search-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.seddel-search-note {
  font-size: 0.82rem;
  margin: 0;
}

.seddel-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.seddel-addtext-inline {
  margin: 0;
}

.btn-add-note {
  white-space: nowrap;
  border: 1px solid var(--primary);
  background: #eaf6f0;
  color: var(--primary-dark);
}

.btn-add-note:hover {
  border-color: var(--primary-dark);
  background: #d9efe4;
}

.seddel-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.seddel-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.seddel-result-media {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.seddel-result-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seddel-result-noimg {
  font-size: 1.5rem;
  opacity: 0.4;
}

.seddel-result-info {
  flex: 1 1 auto;
  min-width: 0;
}

.seddel-result-toprow,
.seddel-line-toprow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.seddel-result-price,
.seddel-line-price {
  font-weight: 700;
  color: var(--text);
}

.seddel-result-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.82rem;
}

.seddel-result-title {
  margin: 0.2rem 0 0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.seddel-result-valid,
.seddel-line-valid {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.seddel-result-action {
  margin: 0;
  flex-shrink: 0;
}

.btn-add-offer {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-add-offer:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Sedlen (højre side) */
.seddel-col {
  position: sticky;
  top: 5rem;
}

.seddel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
  padding: 1.25rem;
  border: 2px solid var(--accent);
  border-top-width: 6px;
  overflow: hidden;
}

.seddel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -1.25rem -1.25rem 1rem;
  padding: 0.85rem 1.25rem;
  background: #fff7e8;
  border-bottom: 2px solid var(--accent);
}

.seddel-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.seddel-head-icon {
  margin-right: 0.15rem;
}

.seddel-summary {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

.seddel-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.seddel-empty p {
  margin: 0.25rem 0;
}

.seddel-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.seddel-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border);
}

.seddel-line:last-child {
  border-bottom: none;
}

.seddel-line-done {
  opacity: 0.55;
}

.seddel-line-done .seddel-line-title {
  text-decoration: line-through;
}

.seddel-line-check,
.seddel-line-remove {
  margin: 0;
  flex-shrink: 0;
}

.seddel-line-body {
  flex: 1 1 auto;
  min-width: 0;
}

.seddel-line-title {
  margin: 0.2rem 0 0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.seddel-line-note {
  margin-top: 0;
}

.seddel-line-cat {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.seddel-line-remove .btn-text-danger {
  font-size: 1rem;
  line-height: 1;
}

/* --- Butiksvælger (til/fra) --- */
.store-picker {
  width: min(1120px, 92vw);
  margin: 1.25rem auto 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
}

.store-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.store-picker-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.store-picker-reset {
  margin: 0;
}

.store-picker-hint {
  margin: 0.2rem 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.store-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-toggle-form {
  margin: 0;
}

.store-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.store-toggle-on {
  border-color: var(--primary);
  background: #eaf6f0;
}

.store-toggle-off {
  opacity: 0.5;
  filter: grayscale(0.7);
}

.store-toggle-off:hover {
  opacity: 0.8;
  filter: grayscale(0.2);
}

.store-toggle-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.store-toggle-on .store-toggle-mark {
  background: var(--primary);
  color: #fff;
}

.store-toggle-off .store-toggle-mark {
  background: var(--border);
  color: var(--text-muted);
}

.store-toggle-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Print-handling i sedlens hoved */
.seddel-actions {
  display: flex;
  justify-content: flex-end;
  margin: -0.4rem 0 0.9rem;
}

.seddel-print-link {
  text-decoration: none;
  white-space: nowrap;
}
