.btn-cta {
    cursor: pointer;
}

/* ====================
Account Address Header
==================== */

.as__account__address-header {
    color: #707070;
}

.as__accounts {
    display: flex;
    flex-direction: column;
}

/* ====================
Account - Add Account Button Wrapper
==================== */
.as__account__add-account-button-wrapper {
    order: 1;
    position: relative;
    z-index: 1;
}

@media screen and (min-width: 1026px) {
    .as__account__add-account-button-wrapper {
        order: 0;
    }
}

/* ====================
Account - Account List Container
==================== */
.as__accounts-container {
    display: flex;
    flex-direction: column;
    order: 0;
}

@media screen and (min-width: 1026px) {
    .as__accounts-container {
        order: 1;
    }
}

/* ====================
Account Info
==================== */

.as__account_wrapper {
    width: 100%;

    display: flex;

    margin-bottom: 40px;
    border-bottom: 2px solid #ccc;
}

.as__account__wrapper:not(:last-of-type) {
    margin-bottom: 24px;
    /* border-bottom: 1px solid #ccc; */
}

@media screen and (min-width: 1026px) {
    .as__account__wrapper:not(:last-of-type) {
        margin-bottom: 40px;
    }
}

/* Account Info - Address */

.as__account__address-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

/* ====================
Account Types
==================== */

.as__account__types {
    position: relative;
}

.as__account__type__wrapper {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #ccc;
}

@media screen and (min-width: 1026px) {
    .as__account__type__wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 30px;
    }
}

.as__account__type__content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
}

@media screen and (min-width: 1026px) {

    .as__account__type__content-container {
        flex-direction: row;
    }
}

.as__account__type__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

@media screen and (min-width: 1026px) {
    .as__account__type__content {
        justify-content: flex-start;
        align-items: center;

    }
}

/* Account Types - Type - Icon */

.as__account__type__icon-container {
    order: 1;
    width: auto;
    display: flex;
    justify-content: flex-end;
}

@media screen and (min-width: 1026px) {
    .as__account__type__icon-container {
        width: auto;
        justify-content: flex-start;
        order: 0;
        margin-right: 20px;
    }
}


/* Account Types - Type - Label */

.as__account__type__content-text {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
}

/* Account Types - Type - Nickname */

.as__account__type__account-nickname-text {
    display: none;
    color: #707070;
}

.as__account__type__account-nickname-text.mc__active {
    display: block;
}

/* Account Types - Type - Nickname - field */

.as__account__type__account-nickname-input__wrapper {
    width: 100%;
    display: none;
}

.as__account__type__account-nickname-input__wrapper.mc__active {
    display: block;
}

/* Account Types - Type - Nickname - field - Label */

.as__account__type__account-nickname-input__wrapper label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #868686;
}

.as__account__type__account-nickname-input__wrapper label.as__account_error {
    color: #ea5e5f;
}

/* Account Types - Type - Nickname - field - Label */

.as__account__type__account-nickname-input__wrapper.active label {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 12px;
    background: rgb(299, 299, 299);
    top: -9px;
    left: 8px;
    transform: none;
}

/* Account Types - Type - Nickname - field - Input */

.as__account__type__account-nickname-input__wrapper input {
    height: 50px;
    width: 100%;
    max-width: 350px;
    border: 1px solid #cccccc;
}

.as__account__type__account-nickname-input__wrapper input.as__account_error {
    border: 1px solid #ea5e5f;
}

/* Account Types - Type - ID and Status Wrapper */

.as__account__type__idAndStatus {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.as__account__type__id {
    position: relative;
}

.as__account__type__id::after {
    content: '';
    display: block;
    height: 12px;
    width: 1px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #cccccc;
}

/* Account Types - Buttons */

.as__account__type__edit-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: calc(100% + 48px);
    margin-top: 24px;
    margin-right: -24px;
    margin-bottom: -24px;
    margin-left: -24px;
    padding-top: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
    padding-left: 24px;
    background-color: #f9f9f9;
}

@media screen and (min-width: 1026px) {
    .as__account__type__edit-buttons {
        justify-content: flex-end;
        width: 100%;
        margin-left: auto;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
        background-color: transparent;
    }
}

.as__account__type__edit-nickname,
.as__account__type__update-nickname,
.as__account__type__unlink,
.as__account__type__update-cancel {
    display: none;
}

.as__account__type__edit-nickname.mc__active,
.as__account__type__update-nickname.mc__active,
.as__account__type__unlink.mc__active,
.as__account__type__update-cancel.mc__active {
    display: block;
}

.as__account__type__unlink::after,
.as__account__type__update-cancel::after {
    content: '';
    display: block;
    height: 12px;
    width: 1px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #cccccc;
}

/* Account Type - Dropdown */

.as__account__dropdown-container {
    width: 100%;
    padding-top: 48px;
}

@media screen and (min-width: 1026px) {
    .as__account__dropdown-container {
        margin-top: 40px;
        margin-left: 48px;
        padding-top: 32px;
        border-top: 1px solid #ccc;
    }
}

.as__account__dropdown {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding-left: 20px;
}

.as__account__dropdown div {
    padding-top: 8px;
    padding-bottom: 8px;
}


/* ====================
Account Settings - Modal
==================== */

/* Account Settings - Modal - Main Overlay and wrapper */
.as__modal_overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: none;
    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.3);

    pointer-events: none;
    z-index: 10;
}

/* Account Settings - Modal - active */
.as__modal_overlay.mc__active {
    display: flex;
    align-items: flex-start;
    padding-top: 90px;
    pointer-events: auto;
}

@media screen and (min-width: 1026px) {
    .as__modal_overlay.mc__active {
        align-items: center;
        padding-top: 0;
    }
}

.as__modal__add_account.mc__active,
.as__modal__unlink.mc__active,
.as__modal.mc__active {
    display: flex;

}

/* Account Settings - Modal - Wrapper */
.as__modal {
    display: none;
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 106px);

    justify-content: flex-start;
    align-items: center;
    flex-direction: column;

    background-color: white;

    padding: 32px;
    margin-right: 16px;
    margin-left: 16px;

    overflow-y: auto;
}

@media screen and (min-width: 1026px) {
    .as__modal {
        justify-content: center;
        padding: 64px;
    }
}

/* Account Settings - Modal - Close Button */

.as__modal__close-button {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
}

/* Account Settings - Modal - Content */

.as__modal__content {
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Account Settings - Modal - Current and Found Account List Wrapper */

.as__modal__add_account__current-accounts,
.as__modal__add-account__found-accounts {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Account Settings - Modal - Current and Found Account Items */

.as__modal__add-account__current-account,
.as__modal__add-account__found-account {
    display: flex;
    font-size: 0.75rem;
    /* why does this break the modal position???? */
    width: 100%;
}

@media screen and (min-width: 1026px) {

    .as__modal__add-account__current-account,
    .as__modal__add-account__found-account {
        font-size: 1rem;
    }
}

/* Account Settings - Modal - Current Account Items */

.as__modal__add-account__current-account {
    justify-content: flex-start;
}

/* Account Settings - Modal - Found Account Items */

.as__modal__add-account__found-account {
    justify-content: flex-start;
    align-items: center;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #CCCCCC;
    cursor: pointer;
}

/* Account Settings - Modal - Found Account Item Active */

.as__modal__add-account__found-account.mc__active {
    border-color: #0392CF;
}

/* Account Settings - Modal - Found Account Item Checkbox */

.as__modal__add-account__found-account .as__modal__add-account__checkbox {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #CCCCCC;
}

/* Account Settings - Modal - Found Account Item Checkmark */

.as__modal__add-account__found-account .as__modal__add-account__checkbox svg {
    display: none;
}

/* Account Settings - Modal - Found Account Item Active Checkmark */

.as__modal__add-account__found-account.mc__active .as__modal__add-account__checkbox svg {
    display: block;
}

/* Account Settings - Modal - Buttons Container */

.as__modal__add-account__buttons-container,
.as_modal__unlink__buttons-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

@media screen and (min-width: 1026px) {

    .as__modal__add-account__buttons-container,
    .as_modal__unlink__buttons-container {
        justify-content: center;
        align-items: center;
        flex-direction: row;
    }
}

/* Account Settings - Modal - Buttons */

.as__modal__add-account__confirm-button {
    opacity: 0.3;
    pointer-events: none;
}

.as__modal__add-account__confirm-button.mc__active {
    pointer-events: all;
    opacity: 1;
}

.as__modal__unlink__cancel-button,
.as__modal__add-account__cancel-button {
    border: 1px solid;
    color: #0D123D;
    text-decoration: none;
    cursor: pointer;
    padding-top: 1rem;
    padding-bottom: 1rem;
}


@media screen and (min-width: 1026px) {

    .as__modal__unlink__cancel-button,
    .as__modal__add-account__cancel-button {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.loader {
    border: 3px solid rgba(0, 0, 0, 0);
    border-radius: 50%;
    border-top: 5px solid #8ad74a;
    border-right: 5px solid #8ad74a;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 0.7s linear infinite;
    /* Safari */
    animation: spin 0.7s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lds-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #8ad74a transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.as__hide {
    display: none;
}