:root {
    --etc-mobile-sticky-height: 68px;
    --etc-mobile-sticky-bg: #fff;
    --etc-mobile-sticky-text: #222529;
    --etc-mobile-sticky-border: #e7e7e7;
    --etc-mobile-sticky-accent: #c97c3a;
    --etc-mobile-sticky-accent-soft: #fff4eb;
    --etc-mobile-sticky-shadow: 0 -10px 28px rgba(15, 23, 42, 0.1);
}

.etc-mobile-sticky-shell {
    display: none;
}

@media (max-width: 575.98px) {
    .etc-mobile-sticky-shell,
    .etc-mobile-sticky-shell * {
        box-sizing: border-box;
    }

    body.has-etc-mobile-sticky-navbar {
        padding-bottom: calc(var(--etc-mobile-sticky-height) + env(safe-area-inset-bottom, 0px));
    }

    body.has-etc-mobile-sticky-navbar footer {
        margin-bottom: 0;
    }

    .etc-mobile-sticky-shell {
        display: block;
    }

    .etc-mobile-sticky-navbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: flex;
        min-height: var(--etc-mobile-sticky-height);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border-top: 1px solid var(--etc-mobile-sticky-border);
        background: var(--etc-mobile-sticky-bg);
        box-shadow: var(--etc-mobile-sticky-shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(110%);
        transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
    }

    .etc-mobile-sticky-shell.is-fixed .etc-mobile-sticky-navbar {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .etc-mobile-sticky-navbar__item {
        flex: 1 1 20%;
        min-width: 0;
    }

    .etc-mobile-sticky-navbar__item + .etc-mobile-sticky-navbar__item {
        border-left: 1px solid var(--etc-mobile-sticky-border);
    }

    .etc-mobile-sticky-navbar__link {
        display: flex;
        height: 100%;
        min-height: var(--etc-mobile-sticky-height);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 2px;
        color: var(--etc-mobile-sticky-text);
        font-family: inherit;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
    }

    .etc-mobile-sticky-navbar__link:hover,
    .etc-mobile-sticky-navbar__link:focus,
    .etc-mobile-sticky-navbar__link.is-active {
        color: var(--etc-mobile-sticky-accent);
        text-decoration: none;
    }

    .etc-mobile-sticky-navbar__icon {
        position: relative;
        display: inline-flex;
        min-width: 28px;
        min-height: 28px;
        align-items: center;
        justify-content: center;
        color: inherit;
    }

    .etc-mobile-sticky-navbar__icon > i {
        color: inherit;
        font-size: 25px;
        line-height: 1;
    }

    .etc-mobile-sticky-navbar__label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .etc-mobile-sticky-navbar__count {
        position: absolute;
        top: -1px;
        right: -7px;
        display: inline-flex;
        min-width: 17px;
        height: 17px;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--etc-mobile-sticky-accent);
        color: #fff;
        font-size: 10px;
        font-style: normal;
        font-weight: 800;
        line-height: 1;
    }

    .etc-mobile-sticky-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1198;
        background: rgba(17, 24, 39, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .24s ease, visibility .24s ease;
    }

    .etc-mobile-sticky-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .etc-mobile-sticky-contact-menu {
        position: fixed;
        left: 50%;
        bottom: calc(var(--etc-mobile-sticky-height) + env(safe-area-inset-bottom, 0px) + 12px);
        z-index: 1199;
        display: grid;
        width: min(92vw, 360px);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        padding: 14px 12px;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, 16px);
        transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
    }

    .etc-mobile-sticky-contact-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .etc-mobile-sticky-contact-menu__item {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 8px 4px;
        color: var(--etc-mobile-sticky-text);
        text-align: center;
        text-decoration: none;
    }

    .etc-mobile-sticky-contact-menu__item:hover,
    .etc-mobile-sticky-contact-menu__item:focus {
        color: var(--etc-mobile-sticky-accent);
        text-decoration: none;
    }

    .etc-mobile-sticky-contact-menu__icon {
        display: inline-flex;
        width: 52px;
        height: 52px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--etc-mobile-sticky-accent-soft);
        color: var(--etc-mobile-sticky-accent);
        font-size: 22px;
        box-shadow: inset 0 0 0 1px rgba(201, 124, 58, 0.15);
    }

    .etc-mobile-sticky-contact-menu__label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        color: inherit;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .etc-mobile-sticky-contact-menu {
        gap: 6px;
        padding: 12px 8px;
    }

    .etc-mobile-sticky-contact-menu__icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
