/* ── Rood-Wit Calculator – Fullscreen PWA ── */

.rwcalc-fullscreen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #f9f5f0;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Shortcode embed */
.rwcalc-app {
    font-family: 'Segoe UI', Arial, sans-serif;
    width: 100%;
    background: #f9f5f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ── Header ── */
.rwcalc-header {
    background: #b91c1c;
    padding: 12px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.rwcalc-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rwcalc-circles { position: relative; width: 44px; height: 30px; flex-shrink: 0; }
.rwcalc-circles .c1 {
    position: absolute; left:0; top:0;
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
}
.rwcalc-circles .c2 {
    position: absolute; left:12px; top:3px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #7f1d1d;
}
.rwcalc-logo strong { color:#fff; font-size:18px; display:block; line-height:1.2; }
.rwcalc-logo small  { color:#fca5a5; font-size:11px; }
.rwcalc-reset-btn {
    background: rgba(255,255,255,0.2); border:none; color:#fff;
    border-radius: 20px; padding: 6px 14px; font-size:12px; font-weight:700;
    cursor:pointer; white-space:nowrap; margin-bottom:10px; font-family:inherit;
}
.rwcalc-reset-btn:hover { background: rgba(255,255,255,0.35); }

/* ── Tabs ── */
.rwcalc-tabs {
    display: flex; gap: 6px; overflow-x: auto;
    padding: 0 16px 10px; flex-shrink: 0;
    scrollbar-width: none;
}
.rwcalc-tabs::-webkit-scrollbar { display:none; }
.rwcalc-tab {
    background: rgba(255,255,255,0.2); color:#fff;
    border:none; border-radius:20px; padding:5px 13px;
    font-size:12px; font-weight:700; cursor:pointer;
    white-space:nowrap; transition:background 0.15s; font-family:inherit;
}
.rwcalc-tab.active  { background:#fff; }
.rwcalc-tab:hover:not(.active) { background: rgba(255,255,255,0.35); }

/* ── Scrollbare inhoud ── */
.rwcalc-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
}

/* ── Tegel-grid ── */
.rwcalc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 400px) {
    .rwcalc-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
@media (min-width: 600px) {
    .rwcalc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Tegel ── */
.rwcalc-tile {
    background: #f3f3f3; border-radius: 10px; padding: 10px 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 3px;
    transition: box-shadow 0.15s, transform 0.1s;
    border: 2px solid transparent; user-select: none;
    cursor: pointer;
}
.rwcalc-tile:hover  { box-shadow: 0 3px 12px rgba(0,0,0,0.18); transform: translateY(-1px); }
.rwcalc-tile.active { box-shadow: 0 3px 12px rgba(0,0,0,0.22); }
.rwcalc-tile-name   { font-size: 14px; font-weight: 600; line-height: 1.3; }
.rwcalc-tile-price  { font-size: 13px; font-weight: 800; }

/* ── Knoppen ── */
.rwcalc-tile-controls { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.rwcalc-tile-btn {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; font-family: inherit;
    background: rgba(255,255,255,0.25);
    transition: background 0.15s;
}
.rwcalc-tile-btn:hover { background: rgba(255,255,255,0.45); }
.rwcalc-btn-rem { background: rgba(0,0,0,0.08); }
.rwcalc-tile-qty { font-weight: 800; font-size: 15px; min-width: 16px; }

/* ── Bestelling ── */
.rwcalc-summary {
    flex-shrink: 0;
    background: #fff;
    border-top: 3px solid #b91c1c;
    padding: 10px 14px 12px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.rwcalc-summary-title { font-weight: 700; font-size: 13px; color: #374151; display: block; margin-bottom: 6px; }
.rwcalc-lines { max-height: 100px; overflow-y: auto; margin-bottom: 6px; }
.rwcalc-line { display: flex; justify-content: space-between; font-size: 12px; color: #4b5563; margin-bottom: 2px; }
.rwcalc-line span:last-child { font-weight: 600; }
.rwcalc-total-row {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f3f4f6; padding-top: 7px;
    font-weight: 800; font-size: 14px;
}
.rwcalc-total { font-size: 22px; color: #b91c1c; font-weight: 800; }

/* ── PWA installatie banner ── */
.rwcalc-install-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a1a; color: #fff;
    padding: 14px 16px; display: flex;
    align-items: center; gap: 12px;
    z-index: 9999; box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%); transition: transform 0.3s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.rwcalc-install-banner.show { transform: translateY(0); }
.rwcalc-install-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #b91c1c; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; font-size: 22px;
}
.rwcalc-install-text { flex: 1; }
.rwcalc-install-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.rwcalc-install-text span { font-size: 12px; color: #aaa; }
.rwcalc-install-btn {
    background: #b91c1c; color: #fff; border: none;
    border-radius: 20px; padding: 8px 16px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    white-space: nowrap; font-family: inherit;
}
.rwcalc-install-close {
    background: none; border: none; color: #888;
    font-size: 20px; cursor: pointer; padding: 4px; line-height: 1;
}

/* iOS hint */
.rwcalc-ios-hint {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a1a; color: #fff;
    padding: 16px; text-align: center;
    z-index: 9999; font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13px; line-height: 1.6;
    transform: translateY(100%); transition: transform 0.3s ease;
}
.rwcalc-ios-hint.show { transform: translateY(0); }
.rwcalc-ios-hint strong { display: block; margin-bottom: 6px; font-size: 15px; }
.rwcalc-ios-hint .share-icon { font-size: 20px; vertical-align: middle; }
.rwcalc-ios-close {
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    border-radius: 20px; padding: 6px 20px; margin-top: 12px;
    cursor: pointer; font-family: inherit; font-size: 13px;
}
