.error-401,
.error-403,
.error-404,
.error-500,
.error-503 {
    font-family: 'AvenirNext', 'AvenirNextPForBBG', 'Avenir', Arial, Helvetica, sans-serif;
    display: flex;
    align-items: baseline;
    padding-top: 3%;
    width: 100%;
    color: #232323;
    justify-content: center;
    flex: 1;
}

.error-grid {
    height: 100vh;
    align-items: center;
    background-image: linear-gradient(
            30deg,
            #E1E1E1 0.77%,
            transparent 0.77%,
            transparent 50%,
            #E1E1E1 50%,
            #E1E1E1 50.77%,
            transparent 50.77%,
            transparent 100%
        ),
        linear-gradient(
            150deg,
            #E1E1E1 0.77%,
            transparent 0.77%,
            transparent 50%,
            #E1E1E1 50%,
            #E1E1E1 50.77%,
            transparent 50.77%,
            transparent 100%
        ),
        linear-gradient(
            90deg,
            #E1E1E1 0.77%,
            transparent 0.77%,
            transparent 50%,
            #E1E1E1 50%,
            #E1E1E1 50.77%,
            transparent 50.77%,
            transparent 100%
        );
    background-size:
        130px 75.06px,
        130px 75.06px,
        130px 130px;
    background-position-x: -1px;
    background-color: #F0F0F0;
}

.error-info-content h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 10px 0 0 0;
}

.request-id p {
    color: #787878; /* grey[450] in bb-ui */
}

.buttons-container button {
    color: #232323;
    display: inline-block;
    width: 140px;
    height: 40px;
    min-width: 40px;
    font-size: 14px;
    line-height: 19px;
    margin-right: 20px;
    padding: 6px 12px;
    color: inherit;
    text-align: center;
    outline: none;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid #646464;
    transition: color 0.2s ease-out 0s, background-color 0.2s ease-out 0s, border-color 0.2s ease-out 0s;
}

.buttons-container button:hover {
    color: #232323;
    background-color: #E1E1E1;
    border-color: #646464;
}

.error-contents .links dt {
    font-weight: 600;
}

.error-contents .links dd {
    margin: 15px 0;
}

.error-contents a,
.error-contents a:hover,
.error-contents a:visited {
    color: #0062dd; /* bb-ui primary link blue[600] */
    text-decoration: none;
    text-transform: capitalize;
}

.error-code {
    align-self: self-start;
    background-color: #EBEBEB;
    padding: 10px;
    font-size: 20px;
    font-family: RobotoMono, monospace;
    border-radius: 5px;
}

#wps-bbwc-global-footer {
    bottom: 0;
    width: 100%;
}

/* Grid layout:
 * |--------------------------------------|
 * | error-info-icon | error-info-content |
 * |             divide-line              |
 * |                 | help-content       |
 * |                 | request-id         |
 * |--------------------------------------|
 */
.error-info-icon {
    grid-row: 1;
    grid-column: 1;
}

.error-info-content {
    display: flex;
    flex-direction: column;

    gap: 30px;
    grid-row: 1;
    grid-column: 2 / 7;
}

.divide-line {
    border-top: 0.5px solid #787878; /* grey[450] in bb-ui */
    grid-row: 2;
    grid-column: 1 / 7;
    margin: 50px 0 30px 0;
}

.error-contents .links {
    font-size: 16px;
    line-height: 18.4px;
    grid-row: 3;
    grid-column: 2 / 7;
}

.request-id {
    font-size: 12px;
    color: #a5a5a5;
    grid-row: 4;
    grid-column: 2 / 7;
}

.error-contents {
    width: 40%;
    text-align: left;
    background-color: #FFFFFF;
    padding: 3%;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-column-gap: 5%;
}

.buttons-container {
    align-self: self-start;
    margin: 40px 0 30px 0;
}
