/* ==========================================================
   CoNest Account Final Polish V1
   Account-page presentation only.
   ========================================================== */


/* Hide older injected avatar layers inside the parent surfaces. */

.account-sidebar__profile .account-avatar img:not([data-cn-final-avatar="1"]),
.account-family-people img:not([data-cn-final-avatar="1"]) {
    display: none !important;
}


/* Original-quality avatars */

img[data-cn-final-avatar="1"] {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    object-fit: cover !important;
    object-position: center center !important;

    border-radius: inherit !important;

    image-rendering: auto !important;

    z-index: 100 !important;

    opacity: 1 !important;
}


/* ----------------------------------------------------------
   Call minutes balance
   ---------------------------------------------------------- */

.cn-account-call-balance {
    width: 100% !important;

    box-sizing: border-box !important;

    margin: 16px 0 18px !important;
    padding: 22px 24px !important;

    border:
        1px solid rgba(223,255,0,.16) !important;

    border-radius: 22px !important;

    background:
        radial-gradient(
            circle at top left,
            rgba(223,255,0,.075),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(12,16,11,.98),
            rgba(5,8,6,.98)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 18px 45px rgba(0,0,0,.22) !important;
}

.cn-account-call-balance h1,
.cn-account-call-balance h2,
.cn-account-call-balance h3 {
    margin-top: 0 !important;
}

.cn-account-call-balance > div {
    max-width: none !important;
}


/* ----------------------------------------------------------
   Child profiles
   ---------------------------------------------------------- */

.cn-account-children {
    margin-top: 18px;

    padding-top: 18px;

    border-top:
        1px solid rgba(255,255,255,.07);
}

.cn-account-children__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 13px;
}

.cn-account-children__heading span {
    display: block;

    margin-bottom: 4px;

    color: #7f887d;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.cn-account-children__heading strong {
    display: block;

    color: #fff;

    font-size: 17px;
    line-height: 1.2;
}

.cn-account-children__count {
    color: #dfff00;

    font-size: 11px;
    font-weight: 800;
}

.cn-account-children__grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 10px;
}

.cn-account-child {
    display: flex;

    align-items: center;

    min-width: 0;

    gap: 12px;

    padding: 13px;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 15px;

    background:
        rgba(255,255,255,.018);
}

.cn-account-child__avatar {
    position: relative;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;

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

    overflow: hidden;

    border:
        1px solid rgba(223,255,0,.22);

    border-radius: 14px;

    background:
        rgba(223,255,0,.09);

    color: #dfff00;

    font-size: 16px;
    font-weight: 900;
}

.cn-account-child__avatar img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: inherit;
}

.cn-account-child__copy {
    min-width: 0;
}

.cn-account-child__copy strong {
    display: block;

    overflow: hidden;

    color: #fff;

    font-size: 13px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.cn-account-child__copy span {
    display: block;

    margin-top: 3px;

    color: #939b91;

    font-size: 10px;
    line-height: 1.45;
}

.cn-account-child__copy small {
    display: block;

    margin-top: 5px;

    color: #dfff00;

    font-size: 9px;
    font-weight: 800;
}


/* Responsive */

@media (max-width: 820px) {

    .cn-account-children__grid {
        grid-template-columns: 1fr;
    }

    .cn-account-call-balance {
        padding: 18px !important;
    }
}
