.kpt3d-litere,
.kpt3d-configurator {
    --kpt3d-red: var(--wd-alternative-color, #e2183d);
    --kpt3d-red-soft: rgba(226, 24, 61, .06);
}

.kpt3d-badge {
    display: inline-block; margin: -5px 0 15px; padding: 3px 10px;
    border-radius: 20px; background: #e8f6ec; color: #1f8a3c;
    font-size: 12px; font-weight: 600;
}

.kpt3d-step { font-weight: 700; margin-right: 4px; }

/* Scenă / previzualizare */
.kpt3d-litere__preview,
.kpt3d-stage {
    background:
        radial-gradient(ellipse 90% 55% at 50% 38%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 70%),
        linear-gradient(180deg, #e9edf2 0%, #dde3ea 55%, #d1d8e1 100%);
    overflow: hidden;
}
.kpt3d-litere__preview { position: relative; width: 100%; height: 280px; margin-bottom: 20px; border-radius: 10px; font-size: 140px; }
.kpt3d-stage {
    position: absolute; inset: 0; z-index: 5; border-radius: inherit;
    container-type: size; display: none; cursor: grab;
}
.kpt3d-stage:active { cursor: grabbing; }
.kpt3d-stage.is-visible { display: block; }
.kpt3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.kpt3d-stage__close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 6px 12px; border: 0; border-radius: 20px;
    background: rgba(255,255,255,.9); color: #333; font-size: 12px; cursor: pointer;
}
.kpt3d-stage__hint {
    position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%);
    padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.8);
    color: #555; font-size: 12px; pointer-events: none; white-space: nowrap;
}
@media (min-width: 769px) {
    .kpt3d-has-stage .kpt3d-litere__preview { display: none; }
}

/* Literă fallback (fără WebGL) */
.kpt3d-letter {
    position: relative; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--kpt3d-font); font-weight: 700; line-height: 1; color: #b5b5b5;
}
.kpt3d-stage .kpt3d-letter { font-size: 170px; font-size: 50cqh; }
.kpt3d-is-3d .kpt3d-letter { display: none; }

/* Câmpuri */
.kpt3d-field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.kpt3d-field legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.kpt3d-field input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

/* Caractere */
.kpt3d-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.kpt3d-char { margin: 0; cursor: pointer; }
.kpt3d-char span {
    display: flex; align-items: center; justify-content: center;
    height: 44px; border: 2px solid #e5e5e5; border-radius: 8px; background: #fff;
    font-family: var(--kpt3d-font), sans-serif; font-weight: 700; font-size: 20px; color: #333;
    transition: border-color .15s, background .15s, color .15s;
}
.kpt3d-char:hover span { border-color: #bbb; }
.kpt3d-char input:checked + span { border-color: var(--kpt3d-red); background: var(--kpt3d-red); color: #fff; }
.kpt3d-char input:focus-visible + span { outline: 2px solid var(--kpt3d-red); outline-offset: 2px; }

/* Fonturi */
.kpt3d-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.kpt3d-font {
    display: flex; flex-direction: column; align-items: center; margin: 0; padding: 8px 6px 10px;
    border: 2px solid #e5e5e5; border-radius: 10px; background: #fff; cursor: pointer; text-align: center;
    transition: border-color .15s, background .15s;
}
.kpt3d-font:hover { border-color: #bbb; }
.kpt3d-font:has(input:checked) { border-color: var(--kpt3d-red); background: var(--kpt3d-red-soft); }
.kpt3d-font:has(input:focus-visible) { outline: 2px solid var(--kpt3d-red); outline-offset: 2px; }
.kpt3d-font__sample { display: flex; align-items: center; justify-content: center; height: 56px; margin-bottom: 4px; font-size: 36px; line-height: 1; font-weight: 700; color: #222; }
.kpt3d-font__name { font-size: 13px; font-weight: 600; color: #333; }
.kpt3d-font__note { font-size: 11px; color: #888; }

/* Utilizare (butoane) */
select.kpt3d-hidden-select { display: none !important; }
.kpt3d-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.kpt3d-pill {
    min-height: 42px; padding: 5px 22px;
    border: 2px solid var(--kpt3d-red); border-radius: 35px;
    background: #fff; color: var(--kpt3d-red);
    font-size: 13px; font-weight: 600; text-transform: uppercase; line-height: 1.2;
    cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.kpt3d-pill:hover { box-shadow: inset 0 0 0 1000px rgba(0,0,0,.05); }
.kpt3d-pill.is-active { background: var(--kpt3d-red); color: #fff; }
.kpt3d-pill.is-active:hover { box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); }
.kpt3d-pill small { display: block; font-size: 10px; font-weight: 400; opacity: .8; }

/* Culori */
.kpt3d-litere__color-name { font-weight: 400; color: #777; }
.kpt3d-litere__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.kpt3d-litere__hint { margin: 0; color: #999; font-size: 14px; }
.kpt3d-swatch {
    display: flex; align-items: center; gap: 8px; margin: 0;
    padding: 6px 10px; border: 2px solid #eee; border-radius: 8px;
    font-size: 13px; cursor: pointer; transition: border-color .15s;
}
.kpt3d-swatch:hover { border-color: #bbb; }
.kpt3d-swatch:has(input:checked) { border-color: var(--kpt3d-red); background: var(--kpt3d-red-soft); }
.kpt3d-swatch:has(input:focus-visible) { outline: 2px solid var(--kpt3d-red); outline-offset: 2px; }
.kpt3d-dot {
    display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.25); vertical-align: middle;
}

/* Rezumat */
.kpt3d-summary { margin: 0 0 20px; padding: 15px; border: 1px solid #eee; border-radius: 10px; background: #fafafa; }
.kpt3d-summary__title { margin: 0 0 8px; font-weight: 700; }
.kpt3d-summary table { width: 100%; margin: 0; border: 0; }
.kpt3d-summary th, .kpt3d-summary td { padding: 5px 0; border: 0; border-bottom: 1px solid #eee; font-size: 14px; background: none; }
.kpt3d-summary th { width: 40%; font-weight: 400; color: #777; text-align: left; }
.kpt3d-summary td .kpt3d-dot { width: 14px; height: 14px; margin-right: 6px; }
.kpt3d-summary__price th, .kpt3d-summary__price td { border-bottom: 0; padding-top: 10px; }
.kpt3d-summary__price td { font-size: 18px; font-weight: 700; }

.kpt3d-configurator .single_variation .woocommerce-variation-price { display: none; }

/* Miniaturi culori sub imagine */
.kpt3d-thumbs { clear: both; margin-top: 15px; }
.kpt3d-thumbs__title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #333; }
.kpt3d-thumbs__list {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
    scroll-snap-type: x proximity; scrollbar-width: thin;
}
.kpt3d-thumb {
    flex: 0 0 64px; width: 64px; height: 64px; padding: 0; margin: 0;
    border: 2px solid #e5e5e5; border-radius: 8px; overflow: hidden; cursor: pointer;
    background: linear-gradient(180deg, #e9edf2 0%, #d1d8e1 100%);
    scroll-snap-align: start; transition: border-color .15s;
}
.kpt3d-thumb:hover { border-color: #bbb; }
.kpt3d-thumb.is-active { border-color: var(--kpt3d-red, #e2183d); }
.kpt3d-thumb:focus-visible { outline: 2px solid var(--kpt3d-red, #e2183d); outline-offset: 2px; }
.kpt3d-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kpt3d-thumb__flat {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    font-family: var(--kpt3d-font), sans-serif; font-weight: 700; font-size: 38px;
    text-shadow: 0.02em 0.03em 0.04em rgba(0,0,0,.25);
}

/* Culori indisponibile */
.kpt3d-swatch.is-unavailable { cursor: not-allowed; opacity: .5; background: #f6f6f6; }
.kpt3d-swatch.is-unavailable:hover { border-color: #eee; }
.kpt3d-swatch.is-unavailable .kpt3d-dot { position: relative; overflow: hidden; }
.kpt3d-swatch.is-unavailable .kpt3d-dot::after {
    content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px;
    background: #c00; transform: rotate(-45deg);
}
.kpt3d-swatch__note { margin-left: auto; font-size: 10px; color: #999; text-transform: uppercase; }
.kpt3d-thumb.is-unavailable { cursor: not-allowed; opacity: .35; position: relative; }
.kpt3d-thumb.is-unavailable:hover { border-color: #e5e5e5; }
.kpt3d-thumb.is-unavailable::after {
    content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px;
    background: #c00; transform: rotate(-45deg);
}
