/* =========================================================
   SAFESPARESONLINE - WORLD CLASS CURRENCY MODULE
   ========================================================= */

:root{

    --currency-primary: #47823d;
    --currency-primary-dark: #35642d;

    --currency-text-dark: #1f2937;
    --currency-text-light: #6b7280;

    --currency-border: #e5e7eb;

    --currency-bg: #ffffff;
    --currency-hover: #f9fafb;

    --currency-shadow:
        0 10px 25px rgba(0,0,0,0.08);

    --currency-radius: 18px;

    --currency-transition: 0.25s ease;

    --currency-backdrop:
        rgba(255,255,255,0.78);

    --currency-blur: blur(18px);
}


/* =========================================================
   Currency Trigger
   ========================================================= */

.currency-converter{

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    cursor: pointer;

    transition: var(--currency-transition);

    user-select: none;

    flex-shrink: 0;

    z-index: 50;
}

.currency-converter img{

    width: 42px;

    height: 42px;

    object-fit: contain;

    border-radius: 50%;

    flex-shrink: 0;
}

.selected-currency-code{

    font-size: 20px;

    font-weight: 600;

    color: var(--currency-text-dark);

    line-height: 1;
}

.currency-converter:hover{

    transform: translateY(-1px);
}


/* =========================================================
   Currency Dropdown Container
   ========================================================= */

.CurreContainer{

    position: absolute;

    top: calc(100% + 18px);
    right: auto;

    width: 260px;
    left: 0;
    transform: translateY(12px) scale(0.98);

    background: var(--currency-backdrop);

    backdrop-filter: var(--currency-blur);

    -webkit-backdrop-filter: var(--currency-blur);

    border: 1px solid rgba(255,255,255,0.4);

    border-radius: var(--currency-radius);

    box-shadow: var(--currency-shadow);

    z-index: 200;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;


    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
            
    pointer-events: auto;

    display:block;

}

.header-top .currency-converter{

    margin-left: 10px;
}


/* =========================================================
   Open State
   ========================================================= */

.CurreContainer.active{

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
    display:block;
}


/* =========================================================
   Currency Header
   ========================================================= */

.Currencyheading{

    font-size: 16px;
    font-weight: 700;

    color: var(--currency-text-dark);

    padding: 20px 22px 10px;

    margin: 0;

    letter-spacing: -.3px;
}


/* =========================================================
   Currency List
   ========================================================= */

.Currency-dropdown{

    padding: 6px 10px 14px;

    max-height: 380px;

    overflow-y: auto;
}

.Currency-dropdown ul{

    list-style: none;

    margin: 0;
    padding: 0;
}


/* =========================================================
   Currency Item
   ========================================================= */

.currency-option{

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 10px 12px;

    border-radius: 14px;

    cursor: pointer;

    transition: var(--currency-transition);

    border: 1px solid transparent;

    margin-bottom: 8px;
}

.currency-option:hover{

    background: var(--currency-hover);

    border-color: var(--currency-border);

    transform: translateX(2px);
}


/* =========================================================
   Active Currency
   ========================================================= */

.currency-option.active{

    background:
        rgba(71,130,61,0.08);

    border-color:
        rgba(71,130,61,0.22);
}


/* =========================================================
   Left Side
   ========================================================= */

.currency-left{

    display: flex;
    align-items: center;

    gap: 14px;
}


/* =========================================================
   Flag
   ========================================================= */

.currency-flag{

    width: 34px;
    height: 34px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    background: #fff;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.06);

    flex-shrink: 0;
}


/* =========================================================
   Currency Info
   ========================================================= */

.currency-info{

    display: flex;
    flex-direction: column;
}

.currency-code{

    font-size: 14px;
    font-weight: 700;

    color: var(--currency-text-dark);

    line-height: 1.1;
}

.currency-name{

    font-size: 13px;

    color: var(--currency-text-light);

    margin-top: 3px;
}


/* =========================================================
   Business Rate
   ========================================================= */

.currency-rate{

    font-size: 11px;

    color: var(--currency-primary);

    font-weight: 600;

    margin-top: 4px;
}


/* =========================================================
   Active Tick
   ========================================================= */

.currency-check{

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: var(--currency-primary);

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;

    opacity: 0;

    transform: scale(.7);

    transition: var(--currency-transition);
}

.currency-option.active .currency-check{

    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   Scrollbar
   ========================================================= */

.Currency-dropdown::-webkit-scrollbar{

    width: 6px;
}

.Currency-dropdown::-webkit-scrollbar-thumb{

    background:
        rgba(71,130,61,0.35);

    border-radius: 20px;
}


@media(max-width:900px){

    .CurreContainer{

        width: 260px;
    }

}

@media(max-width:900px){

    .mobile-currency-clone{

        position: relative;
    }

    .mobile-currency-clone .CurreContainer{

        position: absolute;

        top: calc(100% + 12px);

        left: 50%;

        transform: translateX(-50%) translateY(10px);

        width: 220px;

        z-index: 9999;
    }

    .mobile-currency-clone .CurreContainer.active{

        transform:
            translateX(-50%)
            translateY(0);
    }

    .mobile-currency-clone .currency-option{

        padding: 8px 10px;
    }

    .mobile-currency-clone .currency-code{

        font-size: 13px;
    }

    .mobile-currency-clone .currency-name{

        font-size: 11px;
    }

    .mobile-currency-clone .currency-flag{

        width: 28px;
        height: 28px;
        font-size: 18px;
    }

}
