/* ===================== Weinkraft Kvíz – stílus ===================== */
.wk-root {
    --wk-wine: #4a1626;
    --wk-claret: #6e1f38;
    --wk-gold: #c6a15b;
    --wk-gold-soft: #e7d4a8;
    --wk-cream: #f4ece0;
    --wk-ink: #241319;
    --wk-ok: #5e8c5a;
    --wk-no: #a8443f;
    --wk-shadow: 0 18px 50px rgba(0, 0, 0, .45);

    position: fixed;
    right: 24px;
    bottom: 60px;
    z-index: 999999;
}

.wk-root * {
    box-sizing: border-box;
}

/* --- lebegő nyitógomb --- */
.wk-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at 35% 30%, var(--wk-claret), var(--wk-wine));
    box-shadow: var(--wk-shadow), 0 0 0 2px var(--wk-gold) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.wk-toggle:hover {
    transform: translateY(-2px) scale(1.04);
}

.wk-toggle svg {
    width: 30px;
    height: 30px;
}

.wk-toggle .wk-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(198, 161, 91, .6);
    animation: wk-pulse 2.6s infinite;
}

@keyframes wk-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 161, 91, .55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(198, 161, 91, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(198, 161, 91, 0);
    }
}

/* --- panel --- */
.wk-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--wk-wine), #3a1020);
    color: var(--wk-cream);
    border-radius: 18px;
    box-shadow: var(--wk-shadow);
    border: 1px solid rgba(198, 161, 91, .35);
    transform-origin: bottom right;
    opacity: 0;
    transform: translateY(12px) scale(.96);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.wk-root.is-open .wk-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wk-root.is-open .wk-pulse {
    display: none;
}

/* fejléc */
.wk-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(198, 161, 91, .25);
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, var(--wk-wine), rgba(74, 22, 38, .96));
    backdrop-filter: blur(2px);
}

.wk-mark {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .3px;
    line-height: 1;
}

.wk-mark small {
    display: block;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wk-gold);
    margin-top: 3px;
}

.wk-close {
    background: none;
    border: 0;
    color: var(--wk-gold-soft);
    cursor: pointer;
    font-size: 20px;
    line-height: 30px;
    margin-left: auto;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.wk-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* tartalom */
.wk-body {
    padding: 14px 16px 18px;
}

.wk-q {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 21px;
    line-height: 1.25;
    margin: 6px 0 14px;
}

.wk-meta {
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--wk-gold);
    font-size: 11px;
}

.wk-opts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wk-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(198, 161, 91, .25);
    color: var(--wk-cream);
    padding: 11px 12px;
    border-radius: 11px;
    line-height: 1.35;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.wk-opt:hover:not(:disabled) {
    background: rgba(255, 255, 255, .1);
    border-color: var(--wk-gold);
}

.wk-opt:active:not(:disabled) {
    transform: scale(.99);
}

.wk-opt:disabled {
    cursor: default;
}

.wk-letter {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--wk-gold);
    color: var(--wk-ink);
}

/* semleges kiemelés a kiválasztott válaszon (nincs jó/rossz jelölés) */
.wk-opt.is-chosen {
    border-color: var(--wk-gold);
    background: rgba(198, 161, 91, .16);
}

.wk-opt.is-chosen .wk-letter {
    background: var(--wk-gold-soft);
}

/* --- szintválasztó --- */
.wk-levels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.wk-level {
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(198, 161, 91, .3);
    color: var(--wk-cream);
    padding: 12px 14px;
    border-radius: 13px;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.wk-level:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--wk-gold);
    transform: translateY(-1px);
}

.wk-level:active {
    transform: scale(.99);
}

.wk-level-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: var(--wk-gold-soft);
}

.wk-level-line {
    display: block;
    font-size: 12px;
    opacity: .85;
    margin-top: 2px;
}

/* magyarázat / info */
.wk-feedback {
    margin-top: 12px;
    font-style: italic;
    line-height: 1.5;
    background: rgba(0, 0, 0, .18);
    border-left: 3px solid var(--wk-gold);
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
}

.wk-feedback b {
    color: var(--wk-gold-soft);
}

.wk-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--wk-gold-soft);
    text-decoration: none;
    border-bottom: 1px dotted var(--wk-gold);
    padding-bottom: 2px;
}

.wk-hint:hover {
    color: #fff;
}

.wk-hint svg {
    width: 14px;
    height: 14px;
}

/* --- termékkártya --- */
.wk-product {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(198, 161, 91, .3);
    border-radius: 13px;
    padding: 10px;
}

.wk-product-img {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 9px;
}

.wk-product-info {
    min-width: 0;
    flex: 1;
}

.wk-product-tag {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--wk-gold);
    margin-bottom: 2px;
}

.wk-product-name {
    line-height: 1.2;
    color: var(--wk-cream);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wk-product-price {
    color: var(--wk-gold-soft);
}

.wk-product-price del {
    opacity: .6;
    margin-right: 4px;
}

.wk-product-price ins {
    text-decoration: none;
    color: #fff;
}

.wk-product-cta {
    display: inline-block;
    margin-top: 8px;
    color: inherit;
    text-decoration: none;
    transition: filter .15s ease;
}

.wk-product-cta:hover {
    filter: brightness(1.07);
    color: inherit;
}

/* gombok */
.wk-btn {
    margin-top: 16px;
    width: 100%;
    border: 0;
    cursor: pointer;
    border-radius: 11px;
    padding: 12px;
    background: var(--wk-gold);
    color: var(--wk-ink);
    font-weight: 700;
    letter-spacing: .3px;
    transition: filter .15s ease, transform .1s ease;
}

.wk-btn:hover {
    filter: brightness(1.07);
}

.wk-btn:active {
    transform: scale(.99);
}

.wk-btn.ghost {
    background: transparent;
    color: var(--wk-gold-soft);
    border: 1px solid rgba(198, 161, 91, .4);
    font-weight: 600;
}

.wk-btn.ghost:hover {
    background: rgba(255, 255, 255, .06);
}

/* intro / vége */
.wk-center {
    text-align: center;
    padding: 8px 4px 4px;
}

.wk-center .wk-q {
    margin-top: 4px;
}

.wk-lead {
    line-height: 1.3;
    opacity: .88;
    margin: 0 0 6px;
}

.wk-seal {
    width: 84px;
    height: 84px;
    margin: 6px auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 30%, var(--wk-claret), var(--wk-wine));
    box-shadow: 0 0 0 3px var(--wk-gold) inset, var(--wk-shadow);
    font-size: 34px;
    color: var(--wk-gold-soft);
}

/* feliratkozó űrlap helye */
.wk-subscribe {
    margin-top: 14px;
    text-align: left;
}

.wk-subscribe-empty {
    border: 1px dashed rgba(198, 161, 91, .5);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    color: var(--wk-gold-soft);
    font-size: 13px;
    opacity: .8;
}

@media (prefers-reduced-motion: reduce) {
    .wk-root * {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width:420px) {
    .wk-root {
        left: 14px;
        bottom: 14px;
    }

    .wk-panel {
        bottom: 74px;
    }
}
