/*
 * FYNDA 2.7L
 * Replace only the Chats navigation artwork.
 *
 * Paper plane points horizontally right.
 * No changes to routes or tab behaviour.
 */

#app .fynda-bottom-nav.premium-navigation
a[data-fynda-chat-nav="1"] .fynda-nav-symbol {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
    overflow: visible !important;
}

/* Hide the old chat-bubble artwork, not the tab. */

#app .fynda-bottom-nav.premium-navigation
a[data-fynda-chat-nav="1"]
.fynda-nav-symbol > * {
    opacity: 0 !important;
}

/*
 * Outlined paper plane:
 * right-facing and horizontally aligned.
 * Inherits navigation icon colour.
 */

#app .fynda-bottom-nav.premium-navigation
a[data-fynda-chat-nav="1"]
.fynda-nav-symbol::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    background-color: currentColor !important;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 5L28 16L4 27L9.5 16Z' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.5 16H27' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 5L28 16L4 27L9.5 16Z' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.5 16H27' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");

    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;

    pointer-events: none !important;
    transform: none !important;
}

@media (max-width: 299px) {
    #app .fynda-bottom-nav.premium-navigation
    a[data-fynda-chat-nav="1"] .fynda-nav-symbol,
    #app .fynda-bottom-nav.premium-navigation
    a[data-fynda-chat-nav="1"] .fynda-nav-symbol::after {
        width: 22px !important;
        height: 22px !important;
    }
}
