@keyframes lt-vb-popup-in {
    0% {
        opacity: 0;
        transform: translate3d(0, 36px, 0) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes lt-vb-popup-out {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(0.96);
    }
}

.lt-vb-popup {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 99999;
    max-width: min(24rem, calc(100vw - 2rem));
    transform-origin: bottom right;
}

.lt-vb-popup[hidden] {
    display: none !important;
}

.lt-vb-popup__card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 4px 12px rgba(14, 92, 168, 0.08),
        0 16px 48px rgba(14, 92, 168, 0.16);
    padding: 1.35rem 1.35rem 1.2rem;
    border: 1px solid rgba(14, 92, 168, 0.1);
    overflow: hidden;
    transform-origin: bottom right;
}

.lt-vb-popup.is-entering .lt-vb-popup__card {
    animation: lt-vb-popup-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lt-vb-popup.is-exiting .lt-vb-popup__card {
    animation: lt-vb-popup-out 0.28s ease-in forwards;
}

.lt-vb-popup__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0E5CA8, #ED731F);
}

.lt-vb-popup__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 92, 168, 0.1), rgba(237, 115, 31, 0.14));
    color: #0E5CA8;
}

.lt-vb-popup__badge svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.lt-vb-popup__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #5c5c5c;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lt-vb-popup__close:hover,
.lt-vb-popup__close:focus-visible {
    background: rgba(14, 92, 168, 0.08);
    color: #0E5CA8;
    outline: none;
}

.lt-vb-popup__title {
    margin: 0 2rem 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0E5CA8;
}

.lt-vb-popup__text {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a5568;
}

.lt-vb-popup__actions {
    display: flex;
    gap: 0.65rem;
}

.lt-vb-popup__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lt-vb-popup__btn--cta:hover,
.lt-vb-popup__btn--cta:focus-visible {
    transform: translateY(-1px);
}

/* Theme-resistant: sites often override `a` / button colors */
.lt-vb-popup a.lt-vb-popup__btn--cta,
.lt-vb-popup a.lt-vb-popup__btn--cta:link,
.lt-vb-popup a.lt-vb-popup__btn--cta:visited {
    background: #ED731F !important;
    color: #fff !important;
    border: 2px solid #ED731F !important;
}

.lt-vb-popup a.lt-vb-popup__btn--cta:hover,
.lt-vb-popup a.lt-vb-popup__btn--cta:focus,
.lt-vb-popup a.lt-vb-popup__btn--cta:focus-visible,
.lt-vb-popup a.lt-vb-popup__btn--cta:active {
    background: #d96516 !important;
    border-color: #d96516 !important;
    color: #fff !important;
    outline: none;
}

.lt-vb-popup button.lt-vb-popup__btn--dismiss {
    background: #fff !important;
    color: #0E5CA8 !important;
    border: 2px solid rgba(14, 92, 168, 0.2) !important;
}

.lt-vb-popup button.lt-vb-popup__btn--dismiss:hover,
.lt-vb-popup button.lt-vb-popup__btn--dismiss:focus,
.lt-vb-popup button.lt-vb-popup__btn--dismiss:focus-visible {
    background: rgba(14, 92, 168, 0.06) !important;
    border-color: #0E5CA8 !important;
    color: #0E5CA8 !important;
    outline: none;
}

@media (max-width: 480px) {
    .lt-vb-popup {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }

    .lt-vb-popup__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {

    .lt-vb-popup.is-entering .lt-vb-popup__card,
    .lt-vb-popup.is-exiting .lt-vb-popup__card {
        animation: none;
    }
}

/* Draadcore-theme verbergt [aria-hidden="true"] globaal; badge en ×-teken terugzetten. */
html body#root .lt-vb-popup__badge {
    display: flex;
}

html body#root .lt-vb-popup__close span {
    display: inline;
}