/* ─── SPO Frontend v4.5 ─── */

.spo-blocks-wrap { margin: 20px 0 0; }
.spo-block { margin-bottom: 20px; }

/* ── Block header ── */
.spo-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: #006633;
    border-radius: 8px;
    margin-bottom: 8px;
}
.spo-header-icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: rgba(255,255,255,.85);
}
.spo-block-title {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin: 0;
}

/* ── Options list ── */
.spo-options-wrap { display: flex; flex-direction: column; gap: 6px; }

/* ── Option card ── */
.spo-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
}
.spo-option:hover {
    border-color: #b0c4b8;
    background: #f7faf8;
}
.spo-option.is-selected {
    border-color: #006633;
    background: #f0faf4;
    box-shadow: 0 0 0 3px rgba(0,102,51,.08);
}

/* Custom checkbox */
.spo-checkbox-box {
    width: 22px; height: 22px;
    min-width: 22px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .15s;
    box-sizing: border-box;
}
.spo-checkbox-box svg {
    width: 11px; height: 9px;
    opacity: 0;
    color: #fff;
    transition: opacity .15s;
    display: block;
}
.spo-option:hover .spo-checkbox-box { border-color: #006633; }
.spo-option.is-selected .spo-checkbox-box {
    border-color: #006633;
    background: #006633;
}
.spo-option.is-selected .spo-checkbox-box svg { opacity: 1; }

/* Thumbnail */
.spo-opt-thumb { flex-shrink: 0; }
.spo-opt-thumb img {
    width: 52px; height: 52px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    border: 1px solid #e5e7eb;
}

/* Info */
.spo-opt-info { flex: 1; min-width: 0; }
.spo-opt-name {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin-bottom: 1px;
}
.spo-opt-price { font-size: .82rem; color: #555; }

/* ── Qty stepper — pure divs, zero browser interference ── */
.spo-opt-qty {
    display: none;
    align-items: center;
    flex-shrink: 0;
    /* one continuous rounded bar */
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid #c8cdd2;
    background: #fff;
    box-sizing: border-box;
}
.spo-option.is-selected .spo-opt-qty { display: flex; }

.spo-q-minus,
.spo-q-plus {
    /* reset ALL browser button styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    all: unset;
    /* our styles */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #f3f4f6;
    color: #374151;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1;
    transition: background .1s;
    -webkit-tap-highlight-color: transparent;
}
.spo-q-minus { border-right: 1.5px solid #c8cdd2; }
.spo-q-plus  { border-left:  1.5px solid #c8cdd2; }
.spo-q-minus:hover,
.spo-q-plus:hover { background: #e5e7eb; }
.spo-q-minus:active,
.spo-q-plus:active { background: #d1d5db; }

.spo-q-display {
    width: 30px;
    min-width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 700;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    line-height: 1;
    text-align: center;
}

/* "Toevoegen" CTA */
.spo-opt-cta {
    font-size: .72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 9px;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    transition: all .15s;
}
.spo-option:hover .spo-opt-cta {
    border-color: #006633;
    color: #006633;
}
.spo-option.is-selected .spo-opt-cta { display: none; }

/* ── Total bar ── */
.spo-total-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    font-size: .72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.spo-total-bar.is-visible { display: flex; }
.spo-total-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 480px) {
    .spo-option { flex-wrap: wrap; }
    .spo-opt-cta { display: none; }
}
