/* input(515,1): run-time error CSS1019: Unexpected token, found '}'
input(659,1): run-time error CSS1019: Unexpected token, found '}' */
/* ==========================================================================
   navbar.css — Single source of truth for the Farmbucks navbar.

   Edit this file. WebOptimizer serves a minified version at
   /css/navbar.min.css which is what _Layout.cshtml references.

   Structure:
   1. Base desktop styles
   2. @supports override for translucent + backdrop-filter
   3. .fbx-nav-account-visible — signed-in dropdown (desktop styles)
   4. .fbx-nav-link-messages-new — notification pulsate
   5. @media (max-width: 991px) — ALL mobile overrides in one block
   6. @media (min-width: 992px) — desktop reset (safety for breakpoint resize)
   7. .fbx-navbar.menu-open — solid-white override when mobile menu is open
   ========================================================================== */


/* ---------- 1. Base desktop styles ---------- */

.fbx-navbar {
    background-color: #fff;
    padding: calc(.875rem - 3px) 0 calc(.5rem - 3px);
    justify-content: space-between;
    flex-wrap: wrap;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: box-shadow .3s ease-in-out;
}

.fbx-navbar.is-scrolled {
    -webkit-box-shadow: 0 .5rem 1rem 0 rgba(0, 0, 0, .08);
    box-shadow: 0 .5rem 1rem 0 rgba(0, 0, 0, .08);
}

.fbx-navbar > .fbx-container {
    display: flex;
}

.fbx-navbar .fbx-navbar-brand {
    margin-right: 2rem;
    position: relative;
}

.fbx-navbar-toggler {
    border: solid 1px #c0c5c3;
    background-color: transparent;
    padding: 0 1rem 0 .75rem;
    margin: 0 0 0 auto;
    height: 41px;
    width: auto;
    overflow: visible;
    text-indent: 0;
    border-radius: 2rem;
    position: relative;
    z-index: 1002000;
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    color: #484b4f;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, background-color .2s ease-in-out;
}

.fbx-navbar-toggler:hover {
    border-color: #2fac66;
    box-shadow: inset 0 0 0 1px #2fac66;
    background-color: #f5fbf7;
}

.fbx-navbar-toggler-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 16px;
    flex-shrink: 0;
}

.fbx-navbar-toggler-dash {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    margin-left: 0;
    background-color: #484b4f;
    display: block;
    height: 2px;
    border-radius: 1px;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.fbx-navbar-toggler-icon > .fbx-navbar-toggler-dash:first-child  { top: 0; }
.fbx-navbar-toggler-icon > .fbx-navbar-toggler-dash:nth-child(2) { top: 7px; }
.fbx-navbar-toggler-icon > .fbx-navbar-toggler-dash:last-child   { top: 14px; }

.fbx-navbar-toggler-label {
    display: inline-block;
    font-size: .875rem;
    letter-spacing: .02em;
}

/* Animate dashes into an X when the menu is open */
.fbx-navbar.menu-open .fbx-navbar-toggler-icon > .fbx-navbar-toggler-dash:first-child {
    top: 7px;
    transform: rotate(45deg);
}

.fbx-navbar.menu-open .fbx-navbar-toggler-icon > .fbx-navbar-toggler-dash:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.fbx-navbar.menu-open .fbx-navbar-toggler-icon > .fbx-navbar-toggler-dash:last-child {
    top: 7px;
    transform: rotate(-45deg);
}

.fbx-navbar-collapse {
    display: none;
    flex-grow: 1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    z-index: 1001000;
    transition: height 0.4s;
}

.fbx-navbar-nav {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
}

.fbx-navbar-nav:last-of-type {
    margin-left: auto;
}

.fbx-navbar-nav > li {
    margin-right: .5rem;
}

.fbx-navbar-nav > li:last-of-type {
    margin-right: 0;
}

.fbx-navbar-nav > li > a.fbx-nav-link {
    font-weight: bold;
    text-decoration: none;
    color: #484b4f;
    padding: .625rem 1rem;
    border: 1px solid #c0c5c3;
    border-radius: 2rem;
    display: inline-block;
    line-height: 1.2;
    outline: 0 !important;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, background-color .2s ease-in-out;
}

.fbx-navbar-nav > li > a.fbx-nav-link:hover,
.fbx-navbar-nav > li > a.fbx-nav-link.active {
    border-color: #2fac66;
    box-shadow: inset 0 0 0 1px #2fac66;
    background-color: #f5fbf7;
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-messages > svg {
    width: 24px;
    vertical-align: middle;
    margin-right: .375rem;
    margin-top: -2px;
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user {
    position: relative;
    padding: .325rem;
    display: flex;
    align-items: center;
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user i {
    display: inline-block;
    font-style: normal;
    background: var(--bg, hsl(210, 40%, 92%));
    width: 30px;
    height: 30px;
    line-height: 31px;
    text-align: center;
    border-radius: 30px;
    font-size: 0.875rem;
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user span {
    margin: 0 .625rem 0 .5rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user span { display: none; }
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user > img.fbx-nav-avatar {
    display: none;
    position: absolute;
    width: 33px;
    height: 33px;
    top: 3px;
    left: 3px;
    border-radius: 33px;
}

.fbx-navbar-nav > li > ul {
    display: none;
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-signin {
    border-color: #24844d;
    color: #24844d;
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-signin:hover {
    border-color: #2fac66;
    color: #2fac66;
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-signup {
    border-color: #24844d;
    background-color: #24844d;
    color: #fff;
}

.fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-signup:hover {
    border-color: #2fac66;
    background-color: #2fac66;
}


/* ---------- 2. @supports override: translucent + backdrop-filter ---------- */

@supports ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
    .fbx-navbar {
        background-color: rgba(255, 255, 255, 0.8);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
    }
}


/* ---------- 3. .fbx-nav-account-visible — signed-in dropdown (desktop defaults) ---------- */

.fbx-nav-account {
    display: none;
}

.fbx-nav-account-visible {
    display: block;
}

.fbx-nav-account-visible ul {
    display: flex !important;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style-type: none;
    font-size: 2rem;
    font-weight: bold;
}

.fbx-nav-account-visible > ul > li {
    padding-left: 1rem;
    padding-right: 1rem;
}

.fbx-nav-account-visible > ul > li > hr {
    display: none;
}

.fbx-nav-account-visible a {
    padding: 1rem 1rem 1rem 3rem;
    font-weight: 700;
    color: #484b4f;
    line-height: 1.2;
    text-decoration: none;
    display: block;
    border-radius: .325rem;
}

.fbx-nav-account-visible a:hover {
    text-decoration: none;
    border-color: #2fac66;
    box-shadow: inset 0 0 0 2px #2fac66;
    background-color: #f5fbf7;
}

.fbx-nav-account-visible a svg {
    width: 32px;
    margin-top: -3px;
    margin-right: 1rem;
    opacity: .75;
}

.fbx-nav-account-user {
    display: none;
}


/* ---------- 4. .fbx-nav-link-messages-new — notification pulsate ---------- */

.fbx-nav-link-messages-new {
    position: relative;
}

@keyframes notification-pulsate {
    0%   { background-color: #2fac66; box-shadow: 0 0 0 1px rgba(47, 172, 102, 0); }
    100% { background-color: #ac552f; box-shadow: 0 0 0 4px rgba(172, 85, 47, .5); }
}

/* Notification dot — positioned at top-right of the envelope icon.
   Desktop default; mobile overrides inside @media (max-width: 991px). */
.fbx-nav-link-messages-new::before {
    content: '';
    position: absolute;
    width: .625rem;
    height: .625rem;
    background-color: #2fac66;
    border-radius: .625rem;
    top: 5px;
    left: calc(1rem + 16px);
    animation: notification-pulsate .5s infinite alternate;
}


/* ==========================================================================
   5. @media (max-width: 991px) — ALL mobile overrides (single block)
   ========================================================================== */

@media (max-width: 991px) {

    /* Lock page scroll while the mobile menu is open —
       only the menu panel itself scrolls if content overflows. */
    body.fbx-menu-open {
        overflow: hidden;
    }

    /* Mobile menu panel: full-screen overlay below the 4rem navbar */
    .fbx-navbar-collapse {
        display: flex;
        flex-direction: column;
        top: 4rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-1rem);
        transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
    }

    .fbx-navbar-collapse.expanded {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        height: calc(100vh - 4rem);
        height: calc(100dvh - 4rem);
        overflow: auto;
        background-color: #fff;
        transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s;
    }

    @supports ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
        .fbx-navbar-collapse.expanded {
            background-color: rgba(255, 255, 255, 0.8);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            backdrop-filter: saturate(180%) blur(20px);
        }
    }

    .fbx-navbar-collapse.expanded .fbx-navbar-nav {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
        padding: 1rem 0;
    }

    /* Separator between the two nav lists (public links ↔ signed-in / auth links) */
    .fbx-navbar-collapse.expanded .fbx-navbar-nav + .fbx-navbar-nav {
        border-top: 2px solid #e5e5e7;
    }

    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li {
        margin: 0;
        opacity: 0;
        transform: translateX(-1rem);
        animation: fbxNavItemIn .35s ease forwards;
    }

    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li:nth-child(1) { animation-delay: .10s; }
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li:nth-child(2) { animation-delay: .15s; }
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li:nth-child(3) { animation-delay: .20s; }
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li:nth-child(4) { animation-delay: .25s; }
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li:nth-child(5) { animation-delay: .30s; }
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li:nth-child(6) { animation-delay: .35s; }
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li:nth-child(7) { animation-delay: .40s; }
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li:nth-child(8) { animation-delay: .45s; }

    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li > a.fbx-nav-link {
        border: none;
        border-radius: 0;
        font-size: 1.125rem;
        width: 100%;
        padding: 1rem 1.5rem;
    }

    /* Messages + User links: icon + text layout aligned with plain text links above */
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-messages,
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-messages > svg,
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user i {
        width: 30px;
        height: 30px;
        margin: 0 .625rem 0 0;
        flex-shrink: 0;
    }

    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user span {
        margin: 0;
    }

    /* Notification dot — top-right corner of the 30px icon on mobile.
       Link padding: 1rem 1.5rem; icon starts at 1.5rem and is 30px wide. */
    .fbx-navbar-collapse.expanded .fbx-navbar-nav > li > a.fbx-nav-link-messages-new::before {
        top: calc(1rem + 1px);
        left: calc(1.5rem + 22px);
    }

    @keyframes fbxNavItemIn {
        to { opacity: 1; transform: none; }
    }

    /* Mobile full-screen account menu (signed-in user's dropdown) */
    .fbx-nav-account-visible {
        top: 4rem;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 4rem);
        height: calc(100dvh - 4rem);
        overflow: visible;
        background-color: #fff;
        z-index: 1001500;
    }

    .fbx-nav-account-visible ul {
        font-size: 1rem;
        padding: .5rem 0;
    }

    .fbx-nav-account-visible > ul > li {
        padding-left: 3rem;
        padding-right: .5rem;
    }

    .fbx-nav-account-visible > ul > li > hr {
        display: block;
        margin: .5rem 0;
        background-color: #f5f5f7;
        opacity: 1;
    }

    .fbx-nav-account-visible a {
        font-size: 1rem;
        padding: .75rem 1rem;
        font-weight: 500;
    }

    .fbx-nav-account-visible a svg {
        width: 20px;
        margin-right: .75rem;
        opacity: .5;
    }

    .fbx-nav-account-user {
        display: block;
        padding: .75rem 1rem;
        font-size: 1rem;
    }

    .fbx-nav-account-user-email {
        display: block;
        font-size: .875rem;
        color: #8a8f95;
        font-weight: 400;
    }

    /* Hide the user info block (with close button) and the following hr on mobile —
       the mobile menu already shows the user's name in the parent navbar. */
    .fbx-nav-account-visible > ul > li:first-child,
    .fbx-nav-account-visible > ul > li:nth-child(2) {
        display: none;
    }
}


/* ==========================================================================
   6. @media (min-width: 992px) — desktop reset + signed-in side panel
   ========================================================================== */

@media (min-width: 992px) {

    /* Reset the mobile overlay state so resizing across the breakpoint works */
    .fbx-navbar-collapse,
    .fbx-navbar-collapse.expanded {
        display: flex;
        position: static;
        top: auto;
        height: auto;
        width: auto;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .fbx-navbar-toggler {
        display: none;
    }

    /* Desktop-only messages icon styling */
    .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-messages {
        line-height: 0;
        padding-top: 7px;
        padding-bottom: 8px;
    }

    .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-messages span {
        display: none;
    }

    .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-messages > svg {
        margin-right: 0;
    }

    .fbx-navbar-nav > li > a.fbx-nav-link.fbx-nav-link-user > img.fbx-nav-avatar {
        display: inline-block;
    }

    /* Signed-in account menu — slide-in side panel from the right.
       NOTE: .fbx-navbar has backdrop-filter in @supports, which creates a new
       containing block for position:fixed descendants. Use 100vw/100vh so the
       overlay still fills the viewport. */
    .fbx-nav-account-visible {
        background-color: rgba(0, 0, 0, .5);
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        animation: fbx-nav-account-bg .4s 1;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    @keyframes fbx-nav-account-bg {
        0%   { background-color: rgba(0, 0, 0, 0); }
        100% { background-color: rgba(0, 0, 0, .5); }
    }

    .fbx-nav-account-visible ul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        background-color: #fff;
        width: 320px;
        animation: fbx-nav-account-slide .4s 1;
        border-radius: 0;
        overflow: auto;
    }

    .fbx-nav-account-visible a {
        font-size: 1rem;
        padding: .75rem 1rem;
        font-weight: 500;
    }

    .fbx-nav-account-visible > ul > li > hr {
        display: block;
        margin-top: .5rem;
        margin-bottom: .5rem;
        background-color: #f5f5f7 !important;
        opacity: 1;
    }

    .fbx-nav-account-user {
        padding: .5rem 1rem;
        font-size: 1rem;
        display: block;
    }

    .fbx-nav-account-user-email {
        display: block;
        font-size: .875rem;
        font-weight: 500;
        opacity: .5;
    }

    .fbx-nav-account-user-close {
        display: block;
        padding: .5rem 0;
        text-align: right;
    }

    .fbx-nav-account-user-close button {
        width: 2rem;
        height: 2rem;
        font-size: 1.5rem;
        background-color: #fff;
        border: none;
        border-radius: .5rem;
        cursor: pointer;
        line-height: 1 !important;
    }

    .fbx-nav-account-user-close button:hover {
        border-color: #2fac66;
        box-shadow: inset 0 0 0 2px #2fac66;
        background-color: #f5fbf7;
    }

    @keyframes fbx-nav-account-slide {
        0%   { right: -320px; }
        100% { right: 0; }
    }

    .fbx-nav-account-visible a svg {
        width: 20px;
        margin-right: .75rem;
        opacity: .5;
    }
}


/* ==========================================================================
   7. .fbx-navbar.menu-open — force solid white when mobile menu is open
   (prevents double translucent-blurred layers stacking)
   ========================================================================== */

.fbx-navbar.menu-open,
.fbx-navbar.menu-open .fbx-navbar-collapse.expanded {
    background-color: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
