/* Phone tab bar. Text that sits on a solid green background stays white. */

.badge.bg-success,
a.badge.bg-success,
.btn-success,
.btn-success.btn-sm {
    color: #fff;
}

.shefa-visitor-links {
    display: none;
}

.shefa-member-tabs {
    display: none;
}

@media (max-width: 991.98px) {
    .btn.btn-success:not(.btn-sm) {
        font-weight: 700;
        font-size: 1.1875rem;
        line-height: 1.2;
    }

    html.shefa-has-member-tabs body,
    html.shefa-has-member-tabs .shefa-hg-main-scroll {
        padding-bottom: 6.25rem;
        scroll-padding-bottom: 6.25rem;
    }

    html.shefa-has-member-tabs .shefa-admin-dash-shell,
    html.shefa-has-member-tabs .content-wrapper {
        padding-bottom: 6.25rem;
    }

    html.shefa-has-member-tabs .shefa-topbar-mobile-actions .shefa-cart-link,
    html.shefa-has-member-tabs #menu-toggle,
    html.shefa-has-member-tabs #shefa-user-dash-shell > .shefa-dash-mobile-menu {
        display: none !important;
    }

    .shefa-visitor-links {
        display: flex;
        flex: 1 0 100%;
        gap: 0.85rem;
        align-items: center;
        padding: 0.15rem 0.15rem 0.35rem;
        order: 3;
    }

    .shefa-visitor-links a {
        color: #2f6b2c;
        font-size: 0.92rem;
        font-weight: 700;
        text-decoration: none;
    }

    .shefa-topbar-inner {
        flex-wrap: wrap;
    }

    .shefa-member-tabs {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: #fff;
        border-top: 1px solid #d7e6d4;
        padding: 0.15rem 0.25rem calc(0.2rem + env(safe-area-inset-bottom));
        justify-content: space-around;
        gap: 0.1rem;
    }

    .shefa-member-tab {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 3.4rem;
        color: #3d4a3c;
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 600;
        border-top: 3px solid transparent;
        position: relative;
    }

    .shefa-member-tab.is-active {
        color: #2f6b2c;
        border-top-color: #3f8a3b;
    }

    .shefa-member-tab-icon {
        position: relative;
        font-size: 1.05rem;
        line-height: 1;
        margin-bottom: 0.15rem;
    }

    .shefa-member-tab-count {
        position: absolute;
        top: -0.35rem;
        right: -0.7rem;
        min-width: 1.05rem;
        height: 1.05rem;
        padding: 0 0.2rem;
        border-radius: 999px;
        background: #fff;
        color: #173616;
        border: 1px solid #3f8a3b;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 1.05rem;
        text-align: center;
    }

    .shefa-member-tab-dot {
        position: absolute;
        top: -0.15rem;
        right: -0.35rem;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: #c2410c;
    }
}

.shefa-account-home {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shefa-account-card,
.shefa-join-farm-box,
.shefa-share-card {
    background: #f3faf1;
    border: 1px solid #d5ead2;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.shefa-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e4efe2;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.shefa-account-row:last-child {
    border-bottom: 0;
}

.shefa-account-group {
    background: #fff;
    border: 1px solid #e4efe2;
    border-radius: 1rem;
    padding: 0.15rem 0.9rem;
}

.shefa-share-card .shefa-share-join {
    font-weight: 700;
    font-size: 1.1875rem;
}

.shefa-account-todo + .shefa-account-todo {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #d5ead2;
}
