/* Ny profil 2022 */
a.col-link {
    border-radius: 50px!important;
    padding: 10px 25px!important;
}


/* === PRISMATRISE - IKKE SLETT === */

#container .custom-prismatrise * {
    box-shadow: none;
    border: none;
    font-size: 16px !important;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
}

#container .custom-prismatrise td:nth-child(1),
#container .custom-prismatrise td:nth-child(1) * {
    text-align: left !important;
}

#container .custom-prismatrise thead {
    background-color: transparent !important;
}

#container .custom-prismatrise thead td {
    padding: 1em;
    white-space: nowrap;
    font-weight: bold !important;
}

#container .custom-prismatrise thead td:nth-child(1) {
    background-color: transparent !important;
}

#container .custom-prismatrise thead td:nth-child(2) {
    background-color: #f94c39 !important;
    color: #ffffff !important;
}

#container .custom-prismatrise thead td:nth-child(3) {
    background-color: #db402f !important;
    color: #ffffff !important;
}

#container .custom-prismatrise thead td:nth-child(4) {
    background-color: #c13223 !important;
    color: #ffffff !important;
}

#container .custom-prismatrise thead td:nth-child(5) {
    background-color: #a92819 !important;
    color: #ffffff !important;
}

#container .custom-prismatrise tbody td:nth-child(2),
#container .custom-prismatrise tfoot td:nth-child(2) {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

#container .custom-prismatrise tbody td:nth-child(3),
#container .custom-prismatrise tfoot td:nth-child(3) {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

#container .custom-prismatrise tbody td:nth-child(4),
#container .custom-prismatrise tfoot td:nth-child(4) {
    background-color: rgba(0, 0, 0, 0.06) !important;
}

#container .custom-prismatrise tbody td:nth-child(5),
#container .custom-prismatrise tfoot td:nth-child(5) {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

#container .custom-prismatrise tbody img {
    margin: 0 10px 10px;
    float: none;
    width: 30px;
    height: 30px;
    filter: grayscale(100%);
}

#container .custom-prismatrise tbody td {
    padding: 1em 1em 0 1em;
}

#container .custom-prismatrise h4,
#container .custom-prismatrise h4 strong {
    padding: 0;
    margin: 0;
    font-size: 22px !important;
}

#container .custom-prismatrise h4 {
    font-weight: bold;
}

#container .custom-prismatrise h5 {
    padding: 1em 0 0;
    margin: 0;
    font-weight: bold;
}

#container .custom-prismatrise tfoot {
    background-color: transparent !important;
}

#container .custom-prismatrise tfoot td {
    border: 0;
}

#container .custom-prismatrise tr:hover {
    background-color: transparent !important;
}

#container .custom-prismatrise tfoot a {
    margin: 1em !important;
    background-color: #282727;
    color: #ffffff !important;
    padding: 0.5em 1em;
    display: block;
    transition: all 0.25s ease-in-out;
    text-decoration: none;
    transform: scale(1);
}

#container .custom-prismatrise tfoot a:hover {
    transform: scale(1.1);
}

#container .custom-prismatrise .editorContent {
    overflow: auto;
}

@media all and (max-width: 959px) {
    #container .custom-prismatrise table * {
        font-size: 14px !important;
    }

    #container .custom-prismatrise tr {
        position: relative;
    }

    #container .custom-prismatrise td {
        transform: translateX(160px);
        max-width: 120px;
        height: 4em;
    }

    #container .custom-prismatrise td:nth-child(1) {
        position: absolute;
        min-width: 160px;
        left: 0;
        background-color: #ffffff !important;
        transform: translateX(0px);
        z-index: 1;
    }

    #container .custom-prismatrise tbody td {
        padding: 0 1em 0 1em;
    }

    #container .custom-prismatrise tbody td:nth-child(1) {
        padding: 1em 1em 0 1em;
    }

    #container .custom-prismatrise thead td:nth-child(1) {
        background-color: #ffffff !important;
    }

    #container .custom-prismatrise thead td:not(:nth-child(1)):not(:nth-child(2)):before {
        content: "v";
        font-family: "web-icons-2";
        position: absolute;
        left: -7px;;
        width: 14px;
        height: 14px;
        background-color: #ffffff;
        color: #db402f;
        border-radius: 50%;
        padding: 2px 0 0 2px;
        font-size: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #container #wrap .custom-prismatrise .tf-block {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #container .custom-prismatrise tfoot td {
        height: 6em;
    }

}


/* === SAMTYKKEDIALOG ===
   Malens interne CSS («ARTICLE GROUP BUTTON») har en naken button{color:#fff !important;background-color:#ef3c23 !important}.
   Den ga «Vis mer», lukkeknappen og pluss-knappene i samtykkedialogen rød flate. Her får knappene i dialogen tilbake
   fargene WIPS-komponenten selv setter. Teksten i Avvis/Aksepter er fortsatt svart (intern regel), det gir best kontrast. */
.consent-dialog-inner button:not(.button-element) {
    background-color: transparent !important;
}
.consent-dialog-inner button.show-more-button {
    color: inherit !important;
    font-family: inherit;
}
.consent-dialog-inner button.close-dialog {
    color: var(--modal-dialog-title-color) !important;
}
.consent-dialog-inner .expand > button {
    color: inherit !important;
}
.consent-dialog-inner button.button-element.outlined {
    color: var(--used-button-primary-color) !important;
}
.consent-dialog-inner button.button-element.filled {
    color: var(--used-button-primary-color-contrast) !important;
}
/* === END SAMTYKKEDIALOG === */
