.closeMyAccountButton,
.showMyAccountButton {
    cursor: pointer;
}

.my-account-flyout {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}

.my-account-wrapper {
    position: absolute;
    top: 0;
    right: -30vw;
    height: 100%;
    width: 30vw;
    background: #fff;
    transition: all 0.5s ease-in-out;
}

.my-account-header {
    padding: 20px 5%;
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
}

.my-account-header h2 {
    width: 100%;
}

.my-account-links {
    padding: 20px 5%;
}

.my-account-flyout .my-account-wrapper .my-account-header .my-account-heading {
    display: flex;
}

.my-account-flyout .my-account-wrapper .my-account-header .my-account-heading .icon-account {
    background-image: url(https://coffeeteca.com.au/wp-content/themes/coffeeteca-child-reset/dist/images/icon-account.svg);
    height: 20px;
    width: 18px;
    margin-right: 10px;
}

@media (max-width: 1024px) {
    .my-account-wrapper {
        position: absolute;
        top: 0;
        right: -80vw;
        height: 100%;
        width: 80vw;
        background: #fff;
        transition: all 0.5s ease-in-out;
    }   
}

@media (max-width: 590px) {
    .my-account-wrapper {
        position: absolute;
        top: 0;
        right: -98vw;
        height: 100%;
        width: calc(100vw - 60px);
        background: #fff;
        transition: all 0.5s ease-in-out;
    }   
}
