﻿/* General start */

@font-face {
    font-family: Roboto Flex;
    font-style: normal;
    font-display: swap;
    src: url('Fonts/RobotoFlex-VariableFont.woff2'), url('Fonts/RobotoFlex-VariableFont.ttf');
}

body {
    margin: 0 0 0 0;
    overflow-y: scroll;
    /* Always display scrollbar to prevent layout shift */
}

main {
    padding: 0 20px;
}

h1, h2, h3, p, li {
    overflow-wrap: break-word;
}

.interface {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.main-heading-text {
    font-family: Roboto Flex, Arial;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: -0.5px;
    margin-top: 48px;
    margin-bottom: 40px;
}

.bread-text {
    font-family: Roboto Flex, Arial;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin-top: 0px;
    margin-bottom: 0px;
}

a {
    text-decoration: none;
}

.link {
    color: #1E00BE;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

    .link:hover {
        text-decoration-thickness: 2px;
    }

    .link:focus-visible {
        outline: 2px solid #000;
        outline-offset: 2px;
    }

.footer-container {
    margin-bottom: 40px;
}

.no-script-info {
    font-family: Roboto Flex, Arial;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin-top: 32px;
}

.login-options {
    margin-bottom: 40px;
}

    .login-options .main-btn {
        margin-bottom: 12px;
    }

        .login-options .main-btn:last-child {
            margin-bottom: 0px;
        }

/* General end */

/* Spacing start */

.bottom-padding-40 {
    padding-bottom: 40px;
}

.margin-top-16 {
    margin-top: 16px;
}

/* Spacing End */

/* Header start */

header {
    display: flex;
    align-items: center;
    background: transparent;
    height: 64px;
    padding: 0px 32px;
    border-bottom: 1px solid #E0E0E0;
}

.header-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header-left-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
}

#scb-logotype {
    display: flex;
}

    #scb-logotype svg {
            fill: #000000;
        }

    #scb-logotype:focus-visible {
            outline: 2px solid #1E00BE;
            outline-offset: 2px;
        }

.log-out-btn {
    display: flex;
    align-items: center;
    color: #000;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
}

    .log-out-btn svg {
            fill: #000;
            margin-right: 12px;
        }

    .log-out-btn span {
            font-family: Roboto Flex, Arial;
            font-size: 14px;
            font-style: normal;
            font-weight: 600;
            line-height: 14px;
        }

    .log-out-btn:hover {
            background-color: #F7F7F7;
            text-decoration: none;
        }

    .log-out-btn:focus:hover {
            background-color: #F0F0F0;
        }

    .log-out-btn:focus-visible {
            background-color: transparent;
            outline-offset: 2px;
            outline: 2px solid #1E00BE;
        }

@media (max-width: 1024px) {
    header {
        padding: 0px 24px;
    }
}

@media (max-width: 640px) {
    header {
        padding: 0px 20px;
    }
}

/* Header End */

/* Operational information Start */

.operational-information {
    display: flex;
    margin-bottom: 40px;
    background-color: #FFF5D1;
    padding: 16px;
    border-radius: 12px;
}

    .operational-information .operational-information-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .operational-information-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .operational-information-header {
        margin-top: 0px;
        margin-bottom: 8px;
        font-family: Roboto Flex, Arial;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
    }

    .operational-information-bread-text {
        font-family: Roboto Flex, Arial;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

/* Operational information end */

/* Input start */

.login-input-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.login-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

    .login-input:last-child {
        margin-bottom: 0px;
    }

    .login-input label {
        font-family: Roboto Flex, Arial;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
        margin-bottom: 4px;
    }

    .login-input input {
        padding: 12px;
        font-family: Roboto Flex, Arial;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        width: 100%;
        border: 1px solid #949494;
        border-radius: 8px;
    }

        .login-input input:hover {
            background-color: rgba(0, 0, 0, 0.03);
        }

        .login-input input:focus {
            outline: 1px solid #222222;
        }

        .login-input input.input-error {
            border-color: #D53110;
            padding-right: 36px;
            /*Tar höjd för felsymbolen så text inte döljs av symbolen, symbolens bredd + befintlig padding på input*/
        }

            .login-input input.input-error:focus {
                outline-color: #D53110;
            }

.login-submit-inputs {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.login-submit-input {
    margin-bottom: 12px;
}

    .login-submit-input:last-child {
        margin-bottom: 0px;
    }

/* Input end */

/* Error handling start */

.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .input-wrapper .error-icon {
        position: absolute;
        margin-right: 12px;
        pointer-events: none;
    }

.input-error-message {
    font-family: Roboto Flex, Arial;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    color: #D53110;
    margin-bottom: 4px;
}

.error-message {
    display: flex;
    flex-direction: row;
    margin-bottom: 40px;
}

    .error-message svg {
        margin-right: 12px;
        flex-shrink: 0;
    }

    .error-message p {
        font-family: Roboto Flex, Arial;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        color: #D53110;
        margin: 0;
    }

/* Error handling end */

/* General buttons start */

.main-btn {
    display: flex;
    justify-content: center;
    align-content: center;
    background-color: #1E00BE;
    padding: 12px 28px;
    color: #FFFFFF;
    border: 1px solid #1E00BE;
    border-radius: 50px;
    font-family: Roboto Flex, Arial;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
}

    .main-btn:last-child {
        margin-bottom: 0px;
    }

    .main-btn:hover {
        background-color: #140080;
        text-decoration: none;
    }

    .main-btn:focus:hover {
        background-color: #11006B;
    }

    .main-btn:focus-visible {
        outline-offset: 2px;
        outline: 2px solid #1E00BE;
        background-color: #1E00BE;
    }

.secondary-btn {
    display: flex;
    justify-content: center;
    align-content: center;
    background-color: transparent;
    padding: 12px 20px;
    color: #1E00BE;
    border: 1px solid #1E00BE;
    border-radius: 50px;
    font-family: Roboto Flex, Arial;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
}

    .secondary-btn:hover {
        background-color: #EDEBFA;
        text-decoration: none;
    }

    .secondary-btn:focus:hover {
        background-color: #DEDAF6;
    }

    .secondary-btn:focus-visible {
        background-color: #FFFFFF;
        outline-offset: 2px;
        outline: 2px solid #1E00BE;
    }

/* General buttons End*/

/* Collapsable Start */

.expand-less,
.expand-more {
    display: none;
    pointer-events: none;
}

.collapsable-wrapper h2 {
    margin: 0;
}

.collapsable-wrapper:last-child {
    border-bottom: 1px solid #E0E0E0;
}

.collapsable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    width: 100%;
    cursor: pointer;
    padding: 16px;
    border-top: 1px solid #E0E0E0;
    border-bottom: none;
    border-left: none;
    border-right: none;

}

    .collapsable .collapsable-icon {
        pointer-events: none;
    }

    .collapsable:hover {
        background-color: #F7F7F7;
    }

    .collapsable .collapsable-header {
        font-size: 16px;
        font-family: Roboto Flex, Arial;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
        text-align: left;
        outline: none;
        margin-top: 0px;
        margin-bottom: 0px;
        pointer-events: none;
    }

    .collapsable[aria-expanded="false"] .expand-more {
        display: block;
    }

    .collapsable[aria-expanded="true"] {
        border-bottom: none;
    }

        .collapsable[aria-expanded="true"] .expand-less {
            display: block;
        }

.collapsable-content-wrapper {
    overflow: hidden;
    display: none;
    max-height: 0; /* Set new max-height in scripts */
    transition: max-height 0.1s ease-out;
    transition-delay: 0ms;
}

    /* Applied in scripts */
    .collapsable-content-wrapper.show {
        display: block;
    }

    .collapsable-content-wrapper h3 {
        font-family: Roboto Flex, Arial;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        margin-bottom: 0px;
        margin-top: 16px;
    }

.collapsable-content {
    padding: 16px;
}

    .collapsable-content p {
        font-family: Roboto Flex, Arial;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .collapsable-content ul {
        padding-left: 24px;
    }

    .collapsable-content li {
        font-family: Roboto Flex, Arial;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
    }

        .collapsable-content li:not(:last-child) {
            margin-bottom: 8px;
        }

@media (prefers-reduced-motion) {
    .collapsable-content-wrapper {
        transition: none;
    }
}

/* Collapsable End */

/* Modal Start */

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

    .modal[aria-hidden="true"] {
        display: none;
    }

.modal-content {
    display: flex;
    width: 640px;
    flex-direction: column;
    background-color: #FFFFFF;
    margin-left: 32px;
    margin-right: 32px;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #FFFFFF;
    box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.10), 0px 20px 25px -5px rgba(0, 0, 0, 0.10);
}

    .modal-content h2 {
        font-family: Roboto Flex, Arial;
        font-size: 21px;
        font-style: normal;
        font-weight: 600;
        line-height: 30px;
        letter-spacing: -0.25px;
        margin: 0;
        margin-bottom: 8px;
    }

    .modal-content p {
        font-family: Roboto Flex, Arial;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        margin-top: 0px;
        margin-bottom: 24px;
    }

.modal-btn-wrapper {
    display: flex;
}

@media (max-width: 640px) {
    .modal-content {
        padding: 24px;
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Modal End */

.select-lang {
    color: #0f0865;
    font-weight: 700;
    cursor: pointer;
    font-family: Roboto Flex, Arial;
    font-size: 13px;
}