/* Arian #1 hotfix: correct dropdown directions and chevrons. */
.c-menu > .apm-products-item {
    position: relative;
}
.c-menu > .apm-products-item > a {
    display: inline-flex;
    align-items: center;
}
.c-menu > .apm-products-item > .apm-products-toggle,
.apm-products-dropdown .apm-raw-toggle {
    border: 0;
    padding: 5px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    min-width: 27px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.apm-products-toggle span,
.apm-raw-toggle span {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transition: transform .18s ease;
}
/* top-level chevron: down by default, up on hover/open */
.apm-products-toggle {
    color: var(--color-white-80,#e6eaf1) !important;
}
.apm-products-toggle span {
    transform: rotate(45deg);
    margin-top: -3px;
}
.c-menu > .apm-products-item:hover > .apm-products-toggle span,
.c-menu > .apm-products-item:focus-within > .apm-products-toggle span,
.c-menu > .apm-products-item.apm-expanded > .apm-products-toggle span {
    transform: rotate(-135deg);
    margin-top: 2px;
}
/* first dropdown: open downward */
.c-menu > .apm-products-item > .apm-products-dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: auto;
    width: 245px;
    max-width: min(280px, 90vw);
    padding: 9px;
    margin: 0;
    list-style: none;
    background: #102c4f;
    color: #fff;
    border-radius: 8px;
    z-index: 110;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.c-menu > .apm-products-item:hover > .apm-products-dropdown,
.c-menu > .apm-products-item:focus-within > .apm-products-dropdown,
.c-menu > .apm-products-item.apm-expanded > .apm-products-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.apm-products-dropdown > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,.13);
    direction: rtl;
}
.apm-products-dropdown > li:last-child {
    border-bottom: 0;
}
.apm-products-dropdown a {
    display: block;
    padding: 10px 9px;
    color: #f6f8ff !important;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    line-height: 1.7;
    text-align: right;
    border-radius: 5px;
}
.apm-products-dropdown > li > a {
    flex: 1;
}
.apm-products-dropdown a:hover,
.apm-products-dropdown a:focus {
    background: rgba(255,255,255,.13);
    color: #fff !important;
}
/* nested chevron: left, and submenu opens on the left side */
.apm-products-dropdown .apm-raw-toggle {
    color: #fff;
}
.apm-products-dropdown .apm-raw-toggle span {
    transform: rotate(135deg);
}
.apm-raw-parent > .apm-raw-children {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -8px;
    right: calc(100% - 2px);
    left: auto;
    list-style: none;
    width: 240px;
    margin: 0;
    padding: 8px;
    background: #102c4f;
    border-radius: 8px;
    z-index: 111;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.apm-raw-parent:hover > .apm-raw-children,
.apm-raw-parent:focus-within > .apm-raw-children,
.apm-raw-parent.apm-expanded > .apm-raw-children {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}
.apm-raw-children > li {
    display: block;
    width: 100%;
}
.apm-raw-children a {
    display: block;
}
@media (max-width: 979px) {
    .c-menu > .apm-products-item {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center !important;
    }
    .c-menu > .apm-products-item > a {
        flex: 1;
    }
    .c-menu > .apm-products-item > .apm-products-dropdown {
        position: static;
        display: none;
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        transform: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        max-height: none;
        overflow: visible;
        margin: 0 8px 0 0;
        padding: 6px;
        background: rgba(255,255,255,.06);
        box-shadow: none;
        border-radius: 6px;
    }
    .c-menu > .apm-products-item:hover > .apm-products-dropdown,
    .c-menu > .apm-products-item:focus-within > .apm-products-dropdown {
        display: none;
    }
    .c-menu > .apm-products-item.apm-expanded > .apm-products-dropdown {
        display: flex !important;
    }
    .apm-products-dropdown > li {
        display: flex;
    }
    .apm-raw-parent > .apm-raw-children {
        position: static;
        display: none;
        flex-basis: 100%;
        margin: 0;
        padding: 0 12px;
        width: 100%;
        background: transparent;
        box-shadow: none;
        transform: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .apm-raw-parent:hover > .apm-raw-children,
    .apm-raw-parent:focus-within > .apm-raw-children {
        display: none;
    }
    .apm-raw-parent.apm-expanded > .apm-raw-children {
        display: flex;
    }
    .apm-products-dropdown a {
        color: #fff !important;
    }
}
