/**
 * Currency switcher CSS.
 * @since 2.12.0
 * Copyright (c) 2021, TIV.NET INC. All Rights Reserved.
 */

.woocommerce-currency-switcher .selector,
.woocommerce-currency-switcher .dropdown-content {
    border: 1px solid silver;
    cursor: pointer;
}

.nav-menu .woocommerce-currency-switcher .selector {
    border: none;
}

/* Some themes use flex, so let's force block */
.widget.widget-woocommerce-currency-switcher {
    display: block;
}

.widget .woocommerce-currency-switcher {
    min-width: 100%;
}

.woocommerce-currency-switcher .currency-flag {
    margin: 4px 2px -3px 5px;
}

.woocommerce-currency-switcher .currency-no-flag {
    display: inline-block;
    margin-left: 3px;
}

.woocommerce-currency-switcher .chevron-down {
    float: right;
}

.woocommerce-currency-switcher .chevron-down:after {
    content: "^";
    display: inline-block;
    padding: 0 .3em;
    transform: rotate(180deg) scaleX(1.8);
}

.woocommerce-currency-switcher {
    position: relative;
    display: inline-block;
}

.woocommerce-currency-switcher .dropdown-content {
    background-color: white;
    display: none;
    position: absolute;
    min-width: 100%;
    z-index: 99999;
}

.woocommerce-currency-switcher:hover .dropdown-content {
    display: block;
    /*
    Uncomment flex rules if necessary.
     */
    /*flex-direction: column;*/
    /*flex-wrap: wrap;*/
    /*align-content: flex-start;*/
    /*justify-content: center;*/
    /*align-items: flex-start;*/
}

.woocommerce-currency-switcher .dropdown-content form,
.woocommerce-currency-switcher .dropdown-content button {
    color: initial;
    background: initial;
    margin: 0;
    padding: 0;
    font-weight: initial;
    width: 100%;
    text-align: initial;
    white-space: nowrap;
}

.woocommerce-currency-switcher .selector:hover,
.woocommerce-currency-switcher .dropdown-content button:hover {
    color: white;
    background-color: black;
}

.woocommerce-currency-switcher:hover .selector {
    border-bottom: none;
}

/*
* Fix Storefront handheld menu
*/

/* Set overflow visible. Otherwise, dropdown is hidden */
.theme-storefront .main-navigation.toggled .handheld-navigation {
    overflow: visible;
}

/* Hide the Storefront's chevrons in buttons */
.theme-storefront .main-navigation.toggled .handheld-navigation ul.menu li .woocommerce-currency-switcher button:after {
    display: none;
    content: "";
}
