.jvr-megamenu-header {
    display: flex;
    gap: 2em;
    justify-content: center;
}

.jvr-megamenu-wrapper {
    display: inline-block;
    position: relative;
}

.jvr-megamenu-top a {
    color: var(--jvr-color-toplink, #ededed) !important;
    font-family: var(--e-global-typography-secondary-font-family), sans-serif !important;
    font-weight: 500;
    transition: color .16s;
}

.jvr-megamenu-top a:hover {
    color: var(--jvr-color-toplink-hover, #ffffff) !important;
}

.jvr-megamenu-top .jvr-menu-icon {
    margin-left: 0.35em;
    font-size: 0.96em;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.jvr-megamenu-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: var(--jvr-bg-color, #ffffff);
    border-radius: 0 0 calc(var(--jvr-radius, 12) * 1px) calc(var(--jvr-radius, 12) * 1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    z-index: 10;
    padding: 30px;
    /* Animation */
    animation: jvrFadeUp 0.25s ease-out forwards;
    transform-origin: top center;
}

@keyframes jvrFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jvr-mega-dyn-img {
    max-width: 90%;
    margin-top: 0.7em;
    display: none;
}

.jvr-mega-dyn-content {
    width: 25%;
    margin-right: 30px;
}

.jvr-megamenu-row {
    display: flex;
    gap: 30px;
}

.jvr-megamenu-col {
    /* Dynamic width calculation based on variable, default 3 columns logic (33%) if variable fails, but we want 25% logic actually if including the description col */
    /* Wait, the description col is fixed width 25%. The remaining 75% is divided by column count. */
    flex: 1;
    /* Let flexbox handle it? No, we need wrapping maybe? */
    /* Actually the previous logic was explicit widths. */
    width: calc(75% / var(--jvr-column-count, 3));
    min-width: 0;
    margin: 0;
}

.jvr-megamenu-heading a {
    font-weight: bold;
    text-decoration: none;
    color: var(--jvr-color-heading, #333);
}

.jvr-megamenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jvr-megamenu-list li {
    margin-bottom: 0.25em;
    cursor: pointer;
}

.jvr-megamenu-list .jvr-menu-section a {
    font-weight: bold;
}

.jvr-megamenu-list .jvr-menu-section {
    margin-top: 20px;
    margin-bottom: 4px;
}

.jvr-megamenu-list .jvr-menu-section:first-child {
    margin-top: 0;
    font-size: 1em !important;
}

.jvr-megamenu-list li a {
    color: var(--jvr-color-link, #222);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
    transition: color .16s;
}

.jvr-megamenu-list li a:hover {
    color: var(--jvr-color-linkhover, #016fc5);
    text-decoration: underline;
}

.jvr-megamenu-list .jvr-menu-section a {
    color: var(--jvr-color-heading, #333);
}

.jvr-mega-dyn-titel {
    max-width: 90%;
    color: var(--jvr-color-heading, #333);
}

p.jvr-mega-dyn-beskrivelse {
    font-size: 0.8em;
    max-width: 90%;
    color: var(--jvr-color-desc, #555);
}

li.jvr-mega-link.jvr-megamenu-grandchild a {
    font-size: 0.8em !important;
}

.jvr-teleported.jvr-megamenu-dropdown {
    position: fixed !important;
    margin: 0 !important;
    z-index: 99999;
    border-radius: 0 0 calc(var(--jvr-radius, 12) * 1px) calc(var(--jvr-radius, 12) * 1px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    background: var(--jvr-bg-color, #ffffff);
}

@media (max-width:900px) {
    .jvr-megamenu-row {
        flex-direction: column;
    }

    .jvr-megamenu-col,
    .jvr-mega-dyn-content {
        width: 100% !important;
        margin-right: 0;
    }
}