/* ─────────────────────────────────────────────
   SmallBite – Frontend CSS
   Wolt-inspireret layout: vandrette produktkort,
   sticky kategori-pills, bottom-sheet modal og
   flydende kurv-bjælke.
   Brandfarve styres via --sb-accent (Smallbite →
   Indstillinger); fallback er grøn.
───────────────────────────────────────────── */

:root {
    --sb-accent:      #2d6a4f;
    --sb-accent-dark: #24573f;
    --sb-accent-tint: #eef7f2; /* meget lys baggrund */
    --sb-accent-soft: #d5e8de; /* lys kant/badge */
}

*, *::before, *::after { box-sizing: border-box; }

.pjm-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px 120px;
    color: #202125;
}

/* ─── LOKATIONSVÆLGER ─── */
.pjm-location-picker {
    text-align: center;
    padding: 40px 20px;
}
.pjm-location-picker h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #202125;
}
.pjm-location-picker p {
    color: #717173;
    margin-bottom: 30px;
}
.pjm-location-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.pjm-loc-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 26px 34px;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pjm-loc-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.pjm-loc-card.closed { opacity: 0.55; cursor: not-allowed; }
.pjm-loc-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.pjm-loc-card .pjm-loc-address { font-size: 13px; color: #717173; margin: 0 0 12px; }
.pjm-loc-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}
.pjm-loc-status.open   { background: var(--sb-accent-tint); color: var(--sb-accent-dark); }
.pjm-loc-status.closed { background: #fee2e2; color: #991b1b; }

/* ─── UGENS RUTE (foodtruck) ─── */
.pjm-weekly-route { margin-top: 12px; text-align: left; }
.pjm-weekly-route summary {
    font-size: 12px;
    font-weight: 700;
    color: #717173;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}
.pjm-weekly-route summary::-webkit-details-marker { display: none; }
.pjm-weekly-route summary::after {
    content: '▾';
    font-size: 10px;
    transition: transform 0.15s;
}
.pjm-weekly-route[open] summary::after { transform: rotate(-180deg); }
.pjm-weekly-route ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #ececec;
}
.pjm-weekly-route li {
    font-size: 12px;
    color: #4a4a4c;
    padding: 3px 0;
    display: flex;
    gap: 6px;
}
.pjm-weekly-route li strong { min-width: 28px; color: #202125; }
.pjm-weekly-route li.pjm-route-today,
.pjm-weekly-route li.pjm-route-today strong { color: var(--sb-accent-dark); font-weight: 700; }

/* ─── MENU HEADER ─── */
.pjm-menu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pjm-back-btn {
    background: #f2f2f3;
    border: none;
    border-radius: 99px;
    padding: 9px 18px;
    cursor: pointer;
    font-weight: 700;
    color: #202125;
    font-size: 14px;
    transition: background 0.15s;
}
.pjm-back-btn:hover { background: #e8e8e9; }
.pjm-menu-header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #202125;
    flex: 1;
}

/* "Tidligst klar"-chip under headeren */
.pjm-earliest {
    display: inline-block;
    background: var(--sb-accent-tint);
    color: var(--sb-accent-dark);
    border-radius: 99px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    margin: -6px 0 14px;
}

/* ─── SØGE + VISNINGS TOOLBAR ─── */
.pjm-menu-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.pjm-search-wrap { flex: 1; position: relative; max-width: 420px; }
.pjm-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    opacity: 0.7;
}
.pjm-search-input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    border: 1px solid transparent;
    border-radius: 99px;
    font-size: 15px;
    font-family: inherit;
    color: #202125;
    background: #f2f2f3;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.pjm-search-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--sb-accent);
    box-shadow: 0 0 0 3px var(--sb-accent-soft);
}
.pjm-search-input::placeholder { color: #9c9c9e; }

.pjm-view-toggle {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    background: #f2f2f3;
    border-radius: 99px;
    padding: 3px;
}
.pjm-view-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9c9c9e;
    transition: all 0.12s;
}
.pjm-view-btn.active { background: #202125; color: #fff; }
.pjm-view-btn:hover:not(.active) { color: #4a4a4c; }

/* ─── KATEGORI PILLS (sticky, Wolt-stil) ─── */
.pjm-cat-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 12px;
    margin-bottom: 20px;
    scrollbar-width: none;
}
/* Søgefelt + kategorifaner følger med ned som én bjælke */
/* Temaer (bl.a. Astra) sætter body{overflow-x:hidden} — det gør body til en
   scroll-container og slår position:sticky ud. 'clip' beskytter lige så godt
   mod vandret scroll, men skaber ingen scroll-container, så sticky virker. */
body { overflow-x: clip !important; }

.pjm-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 8px 8px -8px rgba(0,0,0,0.06);
    padding-top: 10px;
}
body.admin-bar .pjm-sticky-bar { top: 32px; }
.pjm-sticky-bar .pjm-menu-toolbar { margin-bottom: 4px; }
.pjm-sticky-bar .pjm-cat-tabs { margin-bottom: 0; padding-bottom: 12px; }
.pjm-cat-tabs::-webkit-scrollbar { display: none; }
.pjm-cat-tab {
    background: #f2f2f3;
    border: none;
    border-radius: 99px;
    padding: 9px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    color: #202125;
    flex-shrink: 0;
}
.pjm-cat-tab:hover { background: #e8e8e9; }
.pjm-cat-tab.active {
    background: var(--sb-accent-tint);
    color: var(--sb-accent-dark);
    font-weight: 800;
}

/* ─── PRODUKTGRID (vandrette Wolt-kort) ─── */
.pjm-category-section { margin-bottom: 38px; }
.pjm-category-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #202125;
    margin: 0 0 14px;
}
.pjm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 12px;
}

.pjm-product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s;
    display: flex;
    flex-direction: row-reverse; /* markup: billede først → vises til højre */
    align-items: stretch;
    min-height: 128px;
}
.pjm-product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.pjm-product-card.out-of-stock { opacity: 0.55; cursor: not-allowed; }

.pjm-product-img,
.pjm-product-img-placeholder {
    width: 116px;
    min-height: 116px;
    align-self: stretch;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}
.pjm-product-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--sb-accent-tint);
}

/* Rund + knap i billedhjørnet (Wolt-signatur) */
.pjm-product-card:not(.out-of-stock)::after {
    content: '+';
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    background: #fff;
    color: var(--sb-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    transition: background 0.15s, color 0.15s;
}
.pjm-product-card:not(.out-of-stock):hover::after {
    background: var(--sb-accent);
    color: #fff;
}

.pjm-product-info {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}
.pjm-product-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.pjm-product-desc {
    font-size: 13px;
    color: #717173;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pjm-product-price {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-accent);
}
.pjm-product-badge { font-size: 11px; color: #dc2626; font-weight: 700; margin-top: 4px; }

/* ── Kompakt listevisning ── */
.pjm-products-grid.list-view { grid-template-columns: 1fr; gap: 8px; }
.pjm-products-grid.list-view .pjm-product-card { min-height: 0; }
.pjm-products-grid.list-view .pjm-product-img,
.pjm-products-grid.list-view .pjm-product-img-placeholder {
    width: 84px;
    min-height: 84px;
    font-size: 26px;
}
.pjm-products-grid.list-view .pjm-product-info { padding: 10px 14px; justify-content: center; gap: 2px; }
.pjm-products-grid.list-view .pjm-product-name { font-size: 15px; margin-bottom: 0; }
.pjm-products-grid.list-view .pjm-product-desc {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
    margin-bottom: 0;
    font-size: 12px;
}
.pjm-products-grid.list-view .pjm-product-price { margin-top: 4px; font-size: 14px; }
.pjm-products-grid.list-view .pjm-product-card::after {
    width: 28px;
    height: 28px;
    font-size: 19px;
    right: 6px;
    bottom: 6px;
}

/* ─── PRODUKT MODAL ─── */
.pjm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(32,33,37,0.6);
    z-index: 99998;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: pjmFadeIn 0.2s ease;
}
@keyframes pjmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pjmSlideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pjm-modal {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    animation: pjmSlideUp 0.25s ease;
}
/* Desktop: centreret kort i stedet for bottom-sheet */
@media (min-width: 640px) {
    .pjm-modal-overlay { align-items: center; padding: 30px 16px; }
    .pjm-modal { border-radius: 16px; max-height: 85vh; }
    .pjm-modal-img, .pjm-modal-img-placeholder { border-radius: 16px 16px 0 0 !important; }
}
.pjm-modal-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}
.pjm-modal-img-placeholder {
    width: 100%;
    height: 170px;
    background: var(--sb-accent-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}
.pjm-modal-body {
    padding: 20px 22px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}
.pjm-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2;
    transition: transform 0.1s;
}
.pjm-modal-close:hover { transform: scale(1.06); }
/* Temaer (fx Astra) styrer <button> globalt — tving vores udseende igennem */
.pjm-modal-close,
.pjm-modal-close:hover,
.pjm-modal-close:focus,
.pjm-modal-close:active {
    color: #202125 !important;
    background: #fff !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 1 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}
.pjm-modal-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.pjm-modal-desc { font-size: 14px; color: #717173; margin-bottom: 14px; line-height: 1.55; }
.pjm-modal-base-price { font-size: 18px; font-weight: 800; color: var(--sb-accent); margin-bottom: 20px; }

/* Add-on grupper */
.pjm-addon-group {
    margin-bottom: 12px;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.pjm-addon-group.has-selection { border-color: var(--sb-accent); }

.pjm-addon-group-label {
    font-size: 14px;
    font-weight: 700;
    color: #202125;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
    transition: background 0.12s;
    margin: 0;
}
.pjm-addon-group-label:hover { background: #f2f2f3; }
.pjm-addon-group-label .required-badge {
    font-size: 11px;
    background: #f2f2f3;
    color: #202125;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 700;
}
.pjm-addon-group-label .pjm-group-count {
    margin-left: auto;
    font-size: 11px;
    background: var(--sb-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 700;
    display: none;
}
.pjm-addon-group.has-selection .pjm-group-count { display: inline-block; }
.pjm-addon-group-label .pjm-group-chevron {
    font-size: 12px;
    color: #9c9c9e;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.pjm-addon-group.collapsed .pjm-group-chevron { transform: rotate(-90deg); }
.pjm-addon-group-label .pjm-group-icon { font-size: 14px; flex-shrink: 0; }

.pjm-addon-group-content { padding: 12px 14px 14px; }
.pjm-addon-group.collapsed .pjm-addon-group-content { display: none; }

.pjm-addon-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pjm-addon-option {
    border: 1px solid #dcdcdd;
    border-radius: 99px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.12s;
    user-select: none;
    line-height: 1.3;
    background: #fff;
}
.pjm-addon-option:hover { border-color: var(--sb-accent); }
.pjm-addon-option.selected {
    background: var(--sb-accent-tint);
    border-color: var(--sb-accent);
    color: var(--sb-accent-dark);
    font-weight: 700;
}
.pjm-addon-option .addon-price { font-size: 11px; opacity: 0.75; margin-left: 3px; }

/* Note felt */
.pjm-item-note { margin-bottom: 6px; }
.pjm-item-note label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 5px; color: #4a4a4c; }
.pjm-item-note textarea {
    width: 100%;
    border: 1px solid #dcdcdd;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    background: #fafafa;
}
.pjm-item-note textarea:focus {
    outline: none;
    border-color: var(--sb-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--sb-accent-soft);
}

/* Antal + tilføj — sticky footer */
.pjm-modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
    border-top: 1px solid #ececec;
    background: #fff;
    flex-shrink: 0;
}
.pjm-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f2f2f3;
    border-radius: 99px;
    overflow: hidden;
}
.pjm-qty-btn {
    background: none;
    border: none;
    width: 42px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
    color: #202125;
    transition: background 0.1s;
}
.pjm-qty-btn:hover { background: #e8e8e9; }
.pjm-qty-value { width: 34px; text-align: center; font-size: 16px; font-weight: 800; }
.pjm-add-btn {
    flex: 1;
    background: var(--sb-accent);
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 13px 22px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}
.pjm-add-btn:hover { background: var(--sb-accent-dark); }
.pjm-add-btn:disabled { background: #c8c8ca; cursor: not-allowed; }

/* ─── KURV BAR (bund, "Se ordre"-pill) ─── */
.pjm-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99997;
    display: flex;
    justify-content: center;
    padding: 12px 15px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    background: transparent;
    pointer-events: none;
}
.pjm-cart-bar-inner {
    background: var(--sb-accent);
    color: #fff;
    border-radius: 99px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    pointer-events: auto;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.28);
    transition: background 0.15s, transform 0.15s;
}
.pjm-cart-bar-inner:hover { background: var(--sb-accent-dark); transform: translateY(-2px); }
.pjm-cart-count-badge {
    background: rgba(255,255,255,0.22);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.pjm-cart-label { font-size: 16px; font-weight: 800; flex: 1; text-align: center; }
.pjm-cart-total { font-size: 16px; font-weight: 800; }

/* ─── KURV DRAWER ─── */
.pjm-cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(32,33,37,0.6);
    z-index: 99998;
}
.pjm-cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    animation: pjmSlideUp 0.25s ease;
    padding: 20px 20px 40px;
    max-width: 600px;
    margin: 0 auto;
}
.pjm-cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ececec;
}
.pjm-cart-drawer-header h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pjm-cart-close-btn {
    background: #f2f2f3;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pjm-cart-close-btn:hover { background: #e8e8e9; }
.pjm-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f3;
}
.pjm-cart-item-info { flex: 1; }
.pjm-cart-item-name { font-size: 15px; font-weight: 700; }
.pjm-cart-item-addons { font-size: 12px; color: #717173; margin-top: 2px; }
.pjm-cart-item-price { font-size: 15px; font-weight: 700; white-space: nowrap; }
.pjm-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.pjm-cart-qty-btn {
    background: #f2f2f3;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    color: #202125;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
}
.pjm-cart-qty-btn:hover { background: var(--sb-accent-tint); color: var(--sb-accent-dark); }
.pjm-cart-item-count { font-weight: 800; font-size: 14px; min-width: 20px; text-align: center; }
.pjm-empty-cart { text-align: center; padding: 40px 20px; color: #717173; }
.pjm-empty-cart .icon { font-size: 48px; display: block; margin-bottom: 10px; }

.pjm-cart-footer { margin-top: 20px; }
.pjm-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    padding: 12px 0;
    border-top: 1px solid #ececec;
    margin-bottom: 12px;
}
.pjm-checkout-btn {
    display: block;
    width: 100%;
    background: var(--sb-accent);
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    text-decoration: none;
}
.pjm-checkout-btn:hover { background: var(--sb-accent-dark); color: #fff; }
.pjm-continue-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    color: #717173;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    text-decoration: underline;
}

/* ─── LOADING SPINNER ─── */
.pjm-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    color: #717173;
    font-size: 16px;
    gap: 10px;
}
.pjm-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #ececec;
    border-top-color: var(--sb-accent);
    border-radius: 50%;
    animation: pjmSpin 0.7s linear infinite;
}
@keyframes pjmSpin { to { transform: rotate(360deg); } }

/* ─── TOAST ─── */
.pjm-toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    background: #202125;
    color: #fff;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 700;
    z-index: 999999;
    animation: pjmFadeIn 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ─── PRODUCT PICKER (sammensæt selv) ─── */
.pjm-picker-count {
    font-size: 13px;
    color: var(--sb-accent-dark);
    font-weight: 700;
    margin-bottom: 10px;
}
.pjm-picker-hint {
    font-size: 12px;
    color: #717173;
    margin-top: 8px;
}
.pjm-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 6px;
}
.pjm-picker-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
    background: #fff;
    user-select: none;
}
.pjm-picker-card:hover:not(.pjm-picker-oos) {
    border-color: var(--sb-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pjm-picker-card.selected {
    border-color: var(--sb-accent);
    background: var(--sb-accent-tint);
    box-shadow: 0 0 0 3px var(--sb-accent-soft);
}
.pjm-picker-card.pjm-picker-oos { opacity: 0.45; cursor: not-allowed; }
.pjm-picker-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 6px;
}
.pjm-picker-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--sb-accent-tint);
    border-radius: 8px;
    margin-bottom: 6px;
}
.pjm-picker-name {
    font-size: 12px;
    font-weight: 600;
    color: #202125;
    line-height: 1.3;
    word-break: break-word;
}
.pjm-picker-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--sb-accent);
    color: #fff;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 5px;
    min-width: 18px;
    text-align: center;
    line-height: 16px;
}
.pjm-picker-oos-label {
    font-size: 10px;
    color: #e53e3e;
    font-weight: 700;
    margin-top: 3px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 782px) {
    body.admin-bar .pjm-sticky-bar { top: 46px; }
}
@media (max-width: 480px) {
    .pjm-app { padding: 15px 12px 110px; }
    .pjm-menu-header h2 { font-size: 24px; }
    .pjm-products-grid { grid-template-columns: 1fr; }
    .pjm-product-img, .pjm-product-img-placeholder { width: 104px; min-height: 104px; }
    .pjm-modal { max-height: 95vh; }
    .pjm-modal-img { height: 190px; }
    .pjm-modal-body { padding: 16px 16px 12px; }
    .pjm-modal-footer { padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom, 12px)); }
    .pjm-addon-option { padding: 7px 12px; font-size: 12px; }
    .pjm-location-picker h2 { font-size: 22px; }
    .pjm-loc-card { min-width: 140px; padding: 20px 24px; }
}


/* ─── FRAVALG (uden ...) ─── */
.pjm-removal-hint { font-size: 13px; color: #717173; margin: -4px 0 10px; }
/* Markeret = ingrediensen er på retten */
.pjm-addon-option.pjm-removal.selected {
    background: #f2f2f3; border-color: #e5e5e6; color: #202125; font-weight: 600;
}
/* Ikke markeret = fjernet */
.pjm-addon-option.pjm-removal:not(.selected) {
    background: #fff; border-color: #dcdcdd; color: #9c9c9e; text-decoration: line-through;
}
.pjm-addon-option.pjm-removal:not(.selected)::before { content: "\2212 "; text-decoration: none; }
