/* Customer account page. Desktop layout and the stacked phone layout
   (max-width: 819px) live together here. */

/* Customer account: readable desktop composition + stacked mobile */
.tk-account-page > .tk-card[role="status"] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    padding: 12px 16px;
}
.tk-account-page > .tk-card[role="status"] p { margin: 0; }
.tk-account-layout {
    display: grid;
    gap: 16px;
    align-items: start;
}
.tk-account-layout__heading {
    font-size: 1.08rem;
    margin: 0 0 16px;
}
.tk-account-layout__fields {
    display: grid;
    gap: 0 16px;
}
.tk-account-layout__verify {
    margin: 4px 0 18px;
    padding: 14px 14px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-raised);
}
.tk-account-layout__verify .tk-label {
    margin-bottom: 8px;
}
.tk-account-layout__verify .tk-help {
    margin-top: 8px;
}
.tk-account-layout__save {
    min-width: 9rem;
}
.tk-account-layout__aside {
    display: grid;
    gap: 12px;
}
.tk-account-layout__security .tk-muted {
    margin-bottom: 16px;
}
.tk-account-layout__note {
    margin: 0;
    padding: 0 2px;
    line-height: 1.45;
}
.tk-account-addresses {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.tk-account-addresses__head {
    margin-bottom: 16px;
}
.tk-account-addresses__head h2 {
    font-size: 1.28rem;
    margin: 0 0 .35rem;
}
.tk-account-addresses__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 36rem);
    justify-content: start;
}
.tk-account-address__title {
    margin-bottom: 12px;
}
.tk-account-address__actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

@media (min-width: 820px) {
    .tk-account-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(240px, .95fr);
        gap: 20px;
    }
    .tk-account-layout__fields {
        grid-template-columns: 1fr 1fr;
    }
    .tk-account-layout__email {
        grid-column: 1 / -1;
    }
    .tk-account-layout__security {
        position: sticky;
        top: 16px;
    }
    .tk-account-addresses__grid {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 36rem));
    }
}

@media (max-width: 819px) {
    .tk-account-layout__profile.tk-card--pad-lg,
    .tk-account-layout__security.tk-card--pad-lg {
        padding: 18px 16px;
    }
    .tk-account-layout__save,
    .tk-account-layout__security .tk-btn {
        width: 100%;
    }
    .tk-account-addresses {
        margin-top: 26px;
        padding-top: 20px;
    }
}
