body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

main {
    padding: var(--side-spacing);
}

main {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    flex-flow: column;
    padding-right: 0;
}

main > div {
    max-width: 960px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-flow: column;
    justify-content: space-between;
    padding: 0 min(160px, calc(100vw * (1/9)))
}

main section, main form {
    display: flex;
    flex-flow: column;
    gap: 16px;
    width: 100%;
}

main > div > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.forgot-pass {
    align-items: center;
}

.forgot-pass > div {
    justify-content: center;
    gap: 70px;
}

form > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

aside {
    background: var(--color-primary-beige);
    width: 40%;
    display: flex;
    height: 100vh;
}

aside > div {
    padding: var(--side-spacing);
    background: var(--color-primary-beige);
    position: fixed;
    display: flex;
    flex-flow: column;
}

aside h2 {
    margin: 0;
    padding-bottom: 24px; 
    display: flex;
    justify-content: space-between;
}

aside h2 a {
    color: var(--color-gray-3);
}

aside nav {
    padding: 24px 0;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    flex-grow: 1;
    border: solid var(--color-gray-1);
    border-width: 1px 0;
}

aside nav div {
    display: flex;
    flex-flow: column;
}

aside nav a {
    color: var(--color-primary-blue);
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

aside >div >div {
    color: var(--color-gray-4);
    font-size: 14px;
    line-height: 16px;
}

main > div, aside > div {
    height: 100%;
}

.order-container {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr min-content;
    grid-template-rows: min-content 1fr;
    grid-auto-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 16px 40px;
    grid-auto-flow: row;
    grid-template-areas:
        ". ."
        "order-details order-details";
}

.order-container > h1 {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;;
}

.order-container * {
    overflow-wrap: break-word;
    word-break: break-all;
    margin: 0;
    padding: 0;
}

.order-container {
    margin-bottom: 28px;
}

.order-container > div {
    grid-area: order-details;
    border: 1px solid var(--color-gray-1);
    padding: 24px;
    display: flex;
}

.product-images {
    max-width: 40%;
    padding-left: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    grid-template-areas:
        "whole whole"
        "whole whole";
}

.product-images picture:only-child {
    grid-area: whole;
}

.product-images * {
    aspect-ratio: 1/1;
}

.order-details {
    display: flex;
    flex-flow: column;
    flex-grow: 1;
    gap: 12px;
}

.order-details h3 {
    border-bottom: 1px solid var(--color-gray-1);
    padding-bottom: 12px;
}

#single-order > div {
    border: 1px solid var(--color-gray-1);
    padding: 24px;
}

#single-order h2 {
    font-size: 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-1);
}

#single-order h2 svg {
    height: 100%;
    cursor: initial;
}

#single-order h2 span:first-of-type {
    flex-grow: 1;
}

.mobile-header {
    display: none;
}

#burger-button {
    display: none;
}

.close {
    display: none;
}

/* Start tablet & mobile specific rules */
@media only screen and (max-width: 850px) {
    aside {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        max-width: 350px;
    }

        .home {
            display: none;
        }

        .close {
            display: block;
        }

    #burger-button {
        display: block;
        margin: 1em;
    }

    main {
        padding: var(--side-spacing) 0;
    }

    main form {
        max-width: initial;
        padding: 0;
    }

    form>p {
        display: none;
    }

    main>form div:last-of-type {
        margin-top: 24px;
    }

    form div:last-of-type a {
        display: none;
    }

    form div:last-of-type button {
        width: 100%;
    }

    aside>span {
        display: none;
    }

    aside>div {
        max-width: initial;
    }

    aside>div h3 {
        display: none;
    }

    aside>div h3 svg {
        height: 100%;
    }

    .mobile-header {
        margin: 0;
        line-height: 40px;
        display: flex;
    }
}