.internal__bookmark {
    width: fit-content;
    min-height: 4rem;
    margin: -1.2rem 0 3.2rem;
    padding: .8rem 1.2rem;
    border: 1px solid rgba(5, 43, 140, .3);
    border-radius: .6rem;
    background-color: rgba(5, 43, 140, .04);
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    cursor: pointer;
    color: #052b8c;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.internal__bookmark::after {
    content: 'Salvar matéria';
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 120%;
    color: #052b8c;
}

.internal__bookmark > svg {
    width: 1.6rem;
    height: 2rem;
}

.internal__bookmark:hover,
.internal__bookmark:focus-visible {
    border-color: #052b8c;
    background-color: rgba(5, 43, 140, .1);
    transform: translateY(-1px);
}

.internal__bookmark:focus-visible {
    outline: 2px solid rgba(5, 43, 140, .25);
    outline-offset: 2px;
}

.internal__bookmark.bookmark-save--saved {
    border-color: #052b8c;
    background-color: rgba(5, 43, 140, .1);
}

.internal__bookmark.bookmark-save--saved::after {
    content: 'Matéria salva';
    color: #052b8c;
}

.internal__bookmark.dso.bookmark-save--saved > svg {
    fill: #3a3fb8 !important;
}

.internal__bookmark.dso.bookmark-save--saved > svg > path {
    fill: #3a3fb8 !important;
    stroke: #3a3fb8 !important;
}

.internal__bookmark.bookmark-save--saved:hover,
.internal__bookmark.bookmark-save--saved:focus-visible {
    background-color: rgba(5, 43, 140, .16);
}

/* Modal de acesso aos favoritos, seguindo os componentes do tema. */
.not-authorized {
    width: min(52rem, calc(100% - 3.2rem));
    max-width: none;
    border: 0;
    box-shadow: 0 0 0 100vmax rgba(4, 22, 56, .62);
}

.not-authorized__container {
    width: 100%;
    padding: 3.2rem 3.2rem 3rem;
    border: 1px solid #e8e8e8;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 2rem 6rem rgba(4, 22, 56, .25);
    font-family: 'Nunito', sans-serif;
}

.not-authorized__container > h4 {
    margin: 0 2.4rem .8rem;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 120%;
    color: #12141b;
}

.not-authorized__container > p {
    margin: 0 0 2.4rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 150%;
    color: #6e788a;
}

.not-authorized__container > p a {
    color: #052b8c;
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.not-authorized__container > a,
.not-authorized__container .btn {
    min-height: 4.4rem;
    margin: 0;
    padding: 1.2rem 2.4rem;
    border: 0;
    border-radius: .6rem;
    background: #052b8c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 120%;
    letter-spacing: .02em;
    color: #fff;
    transition: background-color .2s ease, transform .2s ease;
}

.not-authorized__container > a:hover,
.not-authorized__container > a:focus-visible,
.not-authorized__container .btn:hover,
.not-authorized__container .btn:focus-visible {
    background: #174995;
    transform: translateY(-1px);
}

.not-authorized__container > a:focus-visible,
.not-authorized__container .btn:focus-visible {
    outline: 2px solid rgba(5, 43, 140, .3);
    outline-offset: 3px;
}

.not-authorized__close {
    top: 1.2rem;
    right: 1.2rem;
    width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    border-radius: 50%;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    color: #6e788a;
    transition: background-color .2s ease, color .2s ease;
}

.not-authorized__close:hover,
.not-authorized__close:focus-visible {
    background: #e8eaf0;
    color: #12141b;
}

.not-authorized__close:focus-visible {
    outline: 2px solid rgba(5, 43, 140, .3);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .internal__bookmark {
        margin-bottom: 2.4rem;
    }

    .not-authorized__container {
        padding: 2.8rem 2rem 2.4rem;
    }

    .not-authorized__container > h4 {
        margin-right: 1.6rem;
        margin-left: 1.6rem;
        font-size: 2rem;
    }

    .not-authorized__container > a,
    .not-authorized__container .btn {
        width: 100%;
    }
}
