/* Mobile bottom navigation component. Loaded globally. */

/* Mobile bottom nav base */

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding:
        7px max(10px, env(safe-area-inset-left, 0px))
        max(10px, calc(var(--safe-area-bottom) + 8px))
        max(10px, env(safe-area-inset-right, 0px));
    border-radius: 0;
    background: rgba(255, 255, 255, 0.965);
    border-top: 1px solid rgba(223, 226, 232, 0.96);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -12px 30px rgba(21, 27, 38, 0.055);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: none;
    z-index: 600;
    overflow: hidden;
    isolation: isolate;
    transition: opacity 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    contain: paint;
}

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

.mobile-bottom-nav__inner {
    width: min(430px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.mobile-bottom-nav__inner--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-bottom-nav__link {
    position: relative;
    text-decoration: none;
    color: #747a85;
    font-size: 10px;
    letter-spacing: 0.005em;
    text-transform: none;
    font-weight: 650;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-height: 62px;
    padding: 7px 2px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 18px;
    text-align: center;
    line-height: 1.05;
}

.mobile-bottom-nav__link svg {
    width: 18px;
    height: 18px;
}

.mobile-bottom-nav__link svg path,
.mobile-bottom-nav__link svg rect,
.mobile-bottom-nav__link svg circle {
    transition: stroke 0.2s ease, fill 0.2s ease;
}

.mobile-bottom-nav__link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.mobile-bottom-nav__link span:last-child {
    display: block;
    line-height: 1.05;
}

.mobile-bottom-nav__label {
    display: block;
    max-width: 88px;
    line-height: 1.05;
    white-space: normal;
    text-wrap: balance;
}

.mobile-bottom-nav__link--two-line {
    min-height: 54px;
}

.mobile-bottom-nav__link .mobile-bottom-nav__label br {
    display: block;
}

.mobile-bottom-nav__link.is-active,
.mobile-bottom-nav__link:focus,
.mobile-bottom-nav__link:hover {
    color: #ef252f;
    background: #fff6f6;
    outline: none;
}

.mobile-bottom-nav__link.is-active {
    background: transparent;
    box-shadow: none;
    color: #ef252f;
}

.mobile-bottom-nav__icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-bottom-nav__icon--wide {
    width: 46px;
}

.mobile-bottom-nav__icon-art {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.mobile-bottom-nav__icon-art--amazon {
    width: 46px;
    height: 15px;
}

.mobile-bottom-nav__icon-art--bonus {
    width: 25px;
    height: 25px;
}

.mobile-bottom-nav__icon-logo--amazon {
    display: block;
    width: 46px;
    height: 15px;
    background-color: transparent;
    background-image: var(--mobile-bottom-nav-icon-url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-image: none;
    mask-image: none;
}

body.has-modal .mobile-bottom-nav {
    opacity: 0;
    pointer-events: none;
}

.mobile-crossworx-social-launcher {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(82px + var(--safe-area-bottom));
    z-index: 610;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #18253d;
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font: inherit;
    cursor: pointer;
}

.mobile-crossworx-social-launcher__icon {
    display: grid;
    grid-template-columns: repeat(2, 6px);
    grid-template-rows: repeat(2, 6px);
    gap: 3px;
}

.mobile-crossworx-social-launcher__icon span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d4f, #f97316);
}

.mobile-crossworx-social-launcher__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.has-modal .mobile-crossworx-social-launcher {
    opacity: 0;
    pointer-events: none;
}

.mobile-crossworx-social-modal {
    align-items: flex-end;
    justify-content: center;
    padding:
        0 max(10px, env(safe-area-inset-left, 0px))
        calc(86px + var(--safe-area-bottom))
        max(10px, env(safe-area-inset-right, 0px));
}

.mobile-crossworx-social-modal__dialog {
    width: min(100%, 460px);
    max-height: min(68vh, 520px);
    padding: 18px 16px;
    border-radius: 26px;
    gap: 14px;
    text-align: left;
    overflow: hidden;
}

.mobile-crossworx-social-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mobile-crossworx-social-modal__headline {
    display: grid;
    gap: 6px;
}

.mobile-crossworx-social-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
}

.mobile-crossworx-social-modal__intro {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.mobile-crossworx-social-modal__close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 999px;
    background: #ffffff;
    color: #1f2937;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mobile-crossworx-social-modal__list {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.mobile-crossworx-social-modal__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
    color: #0f172a;
    text-decoration: none;
}

.mobile-crossworx-social-modal__item:focus-visible,
.mobile-crossworx-social-modal__item:hover {
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow: 0 14px 26px -24px rgba(239, 68, 68, 0.48);
}

.mobile-crossworx-social-modal__item-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.mobile-crossworx-social-modal__item-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-crossworx-social-modal__item-icon--instagram {
    background: linear-gradient(135deg, #f97316, #ec4899 55%, #8b5cf6);
}

.mobile-crossworx-social-modal__item-icon--facebook {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.mobile-crossworx-social-modal__item-icon--linkedin {
    background: linear-gradient(135deg, #0a66c2, #0f4c81);
}

.mobile-crossworx-social-modal__item-icon--youtube {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.mobile-crossworx-social-modal__item-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
    flex: 1 1 auto;
}

.mobile-crossworx-social-modal__item-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}

.mobile-crossworx-social-modal__item-meta {
    font-size: 11.5px;
    line-height: 1.35;
    color: #64748b;
    word-break: break-word;
}

.mobile-crossworx-social-modal__item-arrow {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.mobile-crossworx-social-modal__item-arrow svg {
    width: 18px;
    height: 18px;
}

/* Mobile bottom nav display */

@media (max-width: 640px) {
.mobile-bottom-nav {
        display: flex;
    }

    .mobile-crossworx-social-launcher {
        display: inline-flex;
    }
}

/* Mobile bottom nav compact mobile overrides */

@media (max-width: 640px) {
    .mobile-bottom-nav {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        min-height: 72px !important;
        padding:
            3px max(8px, env(safe-area-inset-left, 0px))
            max(7px, calc(var(--safe-area-bottom) + 4px))
            max(8px, env(safe-area-inset-right, 0px)) !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border-top: 1px solid rgba(223, 226, 232, 0.68) !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        box-shadow: 0 -10px 26px rgba(21, 27, 38, 0.045) !important;
        backdrop-filter: blur(24px) saturate(128%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(128%) !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        will-change: auto !important;
    }

    .mobile-bottom-nav__inner {
        width: min(430px, 100%) !important;
        gap: 1px !important;
        transform: translateY(5px);
    }

    .mobile-bottom-nav__link {
        position: relative !important;
        min-height: 46px !important;
        display: grid !important;
        justify-items: center !important;
        align-content: center !important;
        gap: 2px !important;
        padding: 3px 2px 2px !important;
        border-radius: 13px !important;
        color: #747a85 !important;
        font-size: 9.5px !important;
        font-weight: 650 !important;
        letter-spacing: 0.005em !important;
        line-height: 1.05 !important;
        text-transform: none !important;
        text-align: center !important;
    }

    .mobile-bottom-nav__link span:last-child {
        display: block !important;
        font-size: 9px !important;
        line-height: 1.05 !important;
    }

    .mobile-bottom-nav__label {
        max-width: 88px !important;
        font-size: 9px !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    .mobile-bottom-nav__link--two-line {
        min-height: 46px !important;
    }

    .mobile-bottom-nav__icon {
        width: 22px !important;
        height: 22px !important;
        margin-bottom: 0 !important;
    }

    .mobile-bottom-nav__icon--wide {
        width: 39px !important;
    }

    .mobile-bottom-nav__icon-art {
        width: 22px !important;
        height: 22px !important;
    }

    .mobile-bottom-nav__icon-art--amazon {
        width: 39px !important;
        height: 12px !important;
    }

    .mobile-bottom-nav__icon-logo--amazon {
        width: 39px !important;
        height: 12px !important;
    }

    .mobile-bottom-nav__icon-art--bonus {
        width: 22px !important;
        height: 22px !important;
    }

    .mobile-bottom-nav__link svg,
    .mobile-bottom-nav__link img {
        width: 20px !important;
        height: 20px !important;
    }

    .mobile-bottom-nav__link.is-active {
        background: transparent !important;
        box-shadow: none !important;
        color: #ef252f !important;
    }

    .mobile-bottom-nav__link.is-active::after {
        content: none !important;
    }

    .mobile-bottom-nav__link:hover,
    .mobile-bottom-nav__link:focus {
        color: #ef252f !important;
        background: #fff6f6 !important;
    }

    .mobile-crossworx-social-launcher {
        right: max(12px, env(safe-area-inset-right, 0px)) !important;
        bottom: calc(92px + var(--safe-area-bottom)) !important;
        gap: 7px !important;
        padding: 8px 12px !important;
        border-radius: 999px !important;
    }

    .mobile-crossworx-social-launcher__label {
        font-size: 10px !important;
        letter-spacing: 0.045em !important;
    }

    .mobile-crossworx-social-modal {
        padding:
            0 max(8px, env(safe-area-inset-left, 0px))
            calc(102px + var(--safe-area-bottom))
            max(8px, env(safe-area-inset-right, 0px)) !important;
    }

    .mobile-crossworx-social-modal__dialog {
        width: 100% !important;
        max-height: min(70vh, 500px) !important;
        padding: 16px 14px !important;
        border-radius: 24px !important;
        gap: 12px !important;
    }

    .mobile-crossworx-social-modal__title {
        font-size: 16px !important;
    }

    .mobile-crossworx-social-modal__intro {
        font-size: 11px !important;
    }

    .mobile-crossworx-social-modal__close {
        width: 32px !important;
        height: 32px !important;
        font-size: 22px !important;
    }

    .mobile-crossworx-social-modal__list {
        gap: 8px !important;
    }

    .mobile-crossworx-social-modal__item {
        gap: 10px !important;
        padding: 11px 12px !important;
        border-radius: 16px !important;
    }

    .mobile-crossworx-social-modal__item-icon {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
        border-radius: 12px !important;
    }

    .mobile-crossworx-social-modal__item-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .mobile-crossworx-social-modal__item-title {
        font-size: 13px !important;
    }

    .mobile-crossworx-social-modal__item-meta {
        font-size: 10.5px !important;
    }
}

@media (min-width: 641px) {
    .mobile-crossworx-social-launcher,
    .mobile-crossworx-social-modal {
        display: none !important;
    }
}
