
.okbz-tool {
    --okbz-accent: #ffb03a;
    --okbz-line: #cfc6be;
    --okbz-text: #9b948e;

    width: 100%;
    background: transparent;
}

.okbz-tool,
.okbz-tool * {
    box-sizing: border-box;
}

.okbz-canvas {
    position: relative;
    width: min(100%, 1180px);
    aspect-ratio: 1.65 / 1;
    margin: 0 auto;
}

.okbz-face {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    display: block;
    width: min(47%, 560px);
    max-height: 94%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
}

.okbz-lines {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.okbz-lines line {
    stroke: var(--okbz-line);
    stroke-width: 1.3;
    vector-effect: non-scaling-stroke;
}

.okbz-zone {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.okbz-hotspot {
    position: absolute;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff !important;
    background: #ddd4cc;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none !important;
    transform: translate(-50%, -50%);
    box-shadow: 0 3px 10px rgba(70, 61, 54, .04);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
    pointer-events: auto;
}

.okbz-hotspot.is-highlight {
    background: var(--okbz-accent);
}

.okbz-hotspot:hover,
.okbz-hotspot:focus-visible {
    color: #fff !important;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 8px 22px rgba(70, 61, 54, .12);
}

.okbz-label {
    position: absolute;
    color: var(--okbz-text) !important;
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateY(-50%);
    transition: color .18s ease;
    pointer-events: auto;
}

.okbz-label-left {
    transform: translate(-100%, -50%);
    text-align: right;
}

.okbz-label-right {
    text-align: left;
}

.okbz-label:hover {
    color: #6f6862 !important;
}

.okbz-mobile-list {
    display: none;
}

@media (max-width: 900px) {
    .okbz-canvas {
        aspect-ratio: 1.35 / 1;
    }

    .okbz-face {
        width: min(54%, 500px);
    }

    .okbz-label {
        font-size: 11px;
    }

    .okbz-hotspot {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

@media (max-width: 700px) {
    .okbz-tool {
        width: 100%;
    }

    /* Houd exact dezelfde verhouding als desktop, zodat alle ingestelde
       hotspotposities ook op mobiel kloppen. */
    .okbz-canvas {
        width: 100%;
        aspect-ratio: 1.65 / 1;
        margin: 0 auto;
        overflow: visible;
    }

    .okbz-face {
        width: min(47%, 560px);
        max-height: 94%;
    }

    .okbz-lines,
    .okbz-label {
        display: none;
    }

    /* Op mobiel houden we de zichtbare markers bewust heel klein.
       Het daadwerkelijke klikvlak blijft groter voor bediening met een duim. */
    .okbz-hotspot {
        width: 30px;
        height: 30px;
        border: 0;
        background: transparent !important;
        box-shadow: none;
        font-size: 0;
    }

    .okbz-hotspot > span {
        display: block;
        width: 10px;
        height: 10px;
        border: 2px solid rgba(255,255,255,.92);
        border-radius: 50%;
        background: #d8cec5;
        box-shadow: 0 2px 5px rgba(70,61,54,.16);
        transition:
            width .18s ease,
            height .18s ease,
            background-color .18s ease,
            box-shadow .18s ease;
    }

    .okbz-hotspot.is-highlight > span {
        background: var(--okbz-accent);
    }

    .okbz-hotspot:hover,
    .okbz-hotspot:focus-visible {
        background: transparent !important;
        transform: translate(-50%, -50%);
        box-shadow: none;
    }

    .okbz-hotspot.is-mobile-active {
        z-index: 8;
        background: transparent !important;
        transform: translate(-50%, -50%);
        box-shadow: none;
    }

    .okbz-hotspot.is-mobile-active > span {
        width: 15px;
        height: 15px;
        background: var(--okbz-accent);
        box-shadow:
            0 0 0 5px rgba(255,176,58,.18),
            0 3px 8px rgba(70,61,54,.18);
    }

    .okbz-mobile-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 22px;
    }

    .okbz-mobile-list a,
    .okbz-mobile-item {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 54px;
        padding: 11px 14px;
        border: 1px solid rgba(155, 148, 142, .25);
        border-radius: 12px;
        color: var(--okbz-text) !important;
        background: rgba(255,255,255,.72);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .03em;
        line-height: 1.3;
        text-decoration: none !important;
        text-transform: uppercase;
        transition:
            border-color .18s ease,
            background-color .18s ease,
            transform .18s ease;
    }

    .okbz-mobile-list a > span:first-child,
    .okbz-mobile-item > span:first-child {
        display: grid;
        place-items: center;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        color: #fff;
        background: #d8cec5;
        font-size: 19px;
        transition: background-color .18s ease, transform .18s ease;
    }

    .okbz-mobile-label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .okbz-mobile-arrow {
        flex: 0 0 auto;
        margin-left: auto;
        color: var(--okbz-accent);
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity .18s ease, transform .18s ease;
    }

    .okbz-mobile-list a.is-mobile-active .okbz-mobile-arrow,
    .okbz-mobile-item.is-mobile-active .okbz-mobile-arrow {
        opacity: 1;
        transform: translateX(0);
    }

    .okbz-mobile-list a.is-mobile-active,
    .okbz-mobile-item.is-mobile-active {
        border-color: rgba(255,176,58,.6);
        background: #fff;
        transform: translateY(-1px);
    }

    .okbz-mobile-list a.is-mobile-active {
        cursor: pointer;
    }

    .okbz-mobile-list a.is-mobile-active > span:first-child,
    .okbz-mobile-item.is-mobile-active > span:first-child {
        background: var(--okbz-accent);
        transform: scale(1.08);
    }
}

@media (max-width: 480px) {
    .okbz-hotspot {
        width: 28px;
        height: 28px;
    }

    .okbz-hotspot > span {
        width: 9px;
        height: 9px;
    }

    .okbz-hotspot.is-mobile-active > span {
        width: 14px;
        height: 14px;
    }
}
