/* Pure Woo Commerce Pro: keuze-weergaves van Extra velden.
   currentColor-basis zodat licht en donker thema kloppen; hover en focus
   expliciet; mobiel wrapt alles binnen de container (huisregels). */

.pwc-field--choice { margin: 0 0 12px; }

.pwc-keuze {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.pwc-keuze--radio { flex-direction: column; gap: 4px; }

.pwc-keuze-optie {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    max-width: 100%;
}

.pwc-keuze-tekst { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }

.pwc-keuze-meerprijs {
    font-size: 0.85em;
    opacity: 0.75;
    white-space: nowrap;
}

.pwc-veld-meerprijs { display: block; margin-top: 2px; }

/* Tegels: afbeelding plus label plus meerprijs, radio visueel verborgen maar
   focusbaar; geselecteerd = rand in de tekstkleur van het theme. */
.pwc-keuze--tegels { gap: 10px; }

.pwc-tegel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border: 2px solid rgba(128, 128, 128, 0.35);
    border-radius: 8px;
    padding: 8px;
    width: 96px;
    max-width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.pwc-tegel:hover { border-color: currentColor; }

.pwc-tegel input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.pwc-tegel:has(input:checked) {
    border-color: currentColor;
    box-shadow: 0 0 0 1px currentColor inset;
}

.pwc-tegel:has(input:focus-visible) {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.pwc-tegel-beeld { display: block; margin: 0 auto 6px; }

.pwc-tegel-img,
.pwc-tegel-beeld img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.pwc-tegel-leeg {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 4px;
    background: rgba(128, 128, 128, 0.15);
}

.pwc-tegel .pwc-keuze-tekst {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.pwc-tegel .pwc-keuze-label { font-size: 0.9em; overflow-wrap: anywhere; }

/* Live totaal onder de velden. */
.pwc-veld-totaal {
    margin: 10px 0 0;
    font-weight: 600;
}

/* Mobiel: tegels iets kleiner, nooit breder dan het scherm. */
@media (max-width: 600px) {
    .pwc-keuze { max-width: 100%; }
    .pwc-tegel { width: 84px; }
    .pwc-tegel-img,
    .pwc-tegel-beeld img,
    .pwc-tegel-leeg { width: 60px; height: 60px; }
}

/* Tegel-zoom: zwevende grote weergave van de optie-afbeelding (mouse-over of
   toetsenbord-focus, alleen op apparaten met een muis). */
.pwc-tegel-zoom {
    position: absolute;
    z-index: 100000;
    padding: 6px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.pwc-tegel-zoom img {
    display: block;
    max-width: min(320px, 60vw);
    max-height: 320px;
    width: auto;
    height: auto;
}

/* Uitklap-keuzevelden: native details/summary, dus ook zonder JavaScript
   gewoon uitklapbaar. De samenvatting toont de gekozen optie. */
.pwc-keuze-details {
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    margin: 4px 0 0;
}

.pwc-keuze-details > summary.pwc-keuze-summary {
    cursor: pointer;
    padding: 8px 12px;
    font-weight: 600;
    list-style: revert;
}

.pwc-keuze-details[open] > summary.pwc-keuze-summary {
    border-bottom: 1px solid #e5e5e5;
}

.pwc-keuze-details > .pwc-keuze {
    padding: 10px 12px;
}

.pwc-keuze-details > summary.pwc-keuze-summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}