/* The phone bottom tab bar in the app's style (App\Support\AppTabBar). Loaded only with its switch on.
   Numbers are the app's (lib/features/layout/presentation/widgets/pawsket_tab_bar.dart): a floating card
   (margins 12 / 6, radius 26, hairline border, a soft shadow, a light blur under 92% white), tabs in equal
   slots, a 54x32 pill behind a 26px icon, an 11px label, a small orange tag. Colours are AppColors:
   ink 1A1033, idle 5B556E, purple 6633CC, purple50 F6F2FF, line ECE8F3. */

.pk-tabbar {
    position: fixed;
    inset-inline: 12px;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: none;
    align-items: stretch;
    height: 68px;
    box-sizing: border-box;
    border: 1px solid #ECE8F3;
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(26, 16, 51, .08);
    font-family: "IBM", sans-serif;
}

@media (max-width: 768px) {
    .pk-tabbar { display: flex; }

    /* The page's tail clears the floating card (the old bar was a flat strip, a smaller room). */
    body:has(.pk-tabbar):not(:has(.product__btn)):not(:has(.pk-buybar)):not(:has(#place-order-form)) {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 769px) {
    .pk-tabbar { display: none !important; }
}

.pk-tabbar__tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 2px;
    border-radius: 22px;
    color: #5B556E;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.pk-tabbar__tab.is-active { color: #6633CC; }

.pk-tabbar__tab:focus-visible {
    outline: 2px solid #6633CC;
    outline-offset: -3px;
}

.pk-tabbar__pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    max-width: 100%;
    height: 32px;
    border-radius: 16px;
    background: transparent;
    transition: background-color .2s ease;
}

.pk-tabbar__tab.is-active .pk-tabbar__pill { background: #F6F2FF; }

.pk-tabbar__icon {
    width: 26px;
    height: 26px;
    flex: none;
}

.pk-tabbar__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}

.pk-tabbar__tab.is-active .pk-tabbar__label { font-weight: 700; }

/* The tag on the icon ("Beta"): like a notification badge, up and past the icon's end. */
.pk-tabbar__tag {
    position: absolute;
    top: -8px;
    inset-inline-start: 58%;
    box-sizing: border-box;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 9px;
    background: #D9650B;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .pk-tabbar__pill { transition: none; }
}
