.pitays-mobile-bottom-nav {
    display: none;
}

.pitays-toast-link {
    display: block;
    margin-top: 2px;
    color: #249b48 !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.pitays-toast-link:hover {
    color: #157a34 !important;
}

@media (max-width: 760px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

    .pitays-mobile-bottom-nav {
        position: fixed;
        z-index: 80;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: calc(68px + env(safe-area-inset-bottom));
        padding: 7px env(safe-area-inset-right) calc(5px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
        border-top: 1px solid #e4e8ee;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 28px rgba(15, 23, 42, .10);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .pitays-mobile-bottom-link {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 56px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        border-radius: 12px;
        color: #536174;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .pitays-mobile-bottom-link:active {
        background: color-mix(in srgb, var(--pitays-primary, #f47c0d) 8%, #fff);
    }

    .pitays-mobile-bottom-link.is-active {
        color: var(--pitays-primary, #f47c0d);
        font-weight: 900;
    }

    .pitays-mobile-bottom-icon {
        position: relative;
        display: grid;
        width: 27px;
        height: 27px;
        place-items: center;
    }

    .pitays-mobile-bottom-icon svg {
        display: block;
        width: 25px;
        height: 25px;
    }

    .pitays-mobile-bottom-link.is-active .pitays-mobile-icon-fill {
        fill: currentColor;
        stroke: currentColor;
    }

    .pitays-mobile-bottom-badge {
        position: absolute;
        top: -5px;
        right: -9px;
        display: grid;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        place-items: center;
        border: 2px solid #fff;
        border-radius: 999px;
        background: var(--pitays-primary, #f47c0d);
        color: #fff;
        font-size: 9px;
        font-weight: 900;
        line-height: 1;
    }

    .pitays-mobile-bottom-badge.is-empty {
        display: none;
    }

    .pitays-toast-stack {
        top: auto !important;
        right: 12px !important;
        bottom: calc(84px + env(safe-area-inset-bottom)) !important;
        left: 12px !important;
        display: flex !important;
        width: auto !important;
        align-items: center !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    html body .pitays-toast {
        display: grid !important;
        width: 100% !important;
        max-width: 380px !important;
        min-height: 62px !important;
        height: auto !important;
        grid-template-columns: 32px minmax(0, 1fr) 28px !important;
        gap: 10px !important;
        align-items: center !important;
        padding: 10px 10px 10px 12px !important;
        border: 1px solid #d8eadf !important;
        border-left: 1px solid #d8eadf !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: 0 12px 32px rgba(15, 35, 26, .16) !important;
        color: #283b31 !important;
        pointer-events: auto !important;
        animation: pitays-mobile-toast-in .24s ease-out both;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    html body .pitays-toast-icon {
        width: 32px !important;
        height: 32px !important;
        background: #35b85c !important;
        font-size: 17px !important;
        box-shadow: 0 5px 13px rgba(53, 184, 92, .22);
    }

    html body .pitays-toast-copy {
        min-width: 0;
    }

    html body .pitays-toast strong {
        overflow: hidden;
        color: #26372e !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html body .pitays-toast-link,
    html body .pitays-toast small {
        margin-top: 2px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    html body .pitays-toast-close {
        display: grid;
        width: 28px;
        height: 28px;
        padding: 0 !important;
        place-items: center;
        border-radius: 50% !important;
        color: #7a8a81 !important;
        font-size: 18px !important;
        line-height: 1;
        cursor: pointer;
    }

    html body .pitays-toast-close:active {
        background: #f0f4f1 !important;
    }

    html body .pitays-toast.is-error {
        border-color: #f2d3d0 !important;
        color: #7b2924 !important;
    }

    html body .pitays-toast.is-error .pitays-toast-icon {
        background: #dd4b43 !important;
        box-shadow: 0 5px 13px rgba(221, 75, 67, .22);
    }

    html body .pitays-toast.is-error strong,
    html body .pitays-toast.is-error small {
        color: #8b302a !important;
    }

    html body .pitays-toast.hiding {
        opacity: 0 !important;
        transform: translateY(10px) scale(.98) !important;
        transition: opacity .2s ease, transform .2s ease !important;
    }
}

@keyframes pitays-mobile-toast-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 360px) {
    .pitays-mobile-bottom-link {
        font-size: 9.5px;
    }
}
