/**
 * Release Date: 2024-12-21 20:08
 */

.uae-tool {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.uae-tool .form-currency,
.uae-tool .currency-converter-rate {
    max-width: 500px;
    margin: 0 auto;
}

.uae-tool .currency-converter-rate {
    margin: 1rem auto;
}

.uae-tool .currency-converter-rate>div:first-child {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.uae-tool .currency-converter-rate>div>span:first-child {
    font-size: 1rem;
    line-height: 1;
}

.uae-tool .currency-converter-rate>div>span:nth-child(2),
.uae-tool .currency-converter-rate>div>span:last-child {
    font-size: 1.5rem;
    line-height: 1;
}

.uae-tool .form-currency .row {
    display: flex;
    visibility: hidden;
}

.uae-tool .form-currency .row.fade-loop {
    background-color: grey;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    height: 100%;
    max-height: 420px;
    animation: fade 1s infinite alternate;
}

@keyframes fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.3;
    }
}


.uae-tool .form-currency .row.visible {
    visibility: visible;
    overflow: visible;
}

.uae-tool .form-currency .row .input {
    flex: 1 1 100%;
    position: relative;
}

.uae-tool .form-currency .input .loading {
    display: none;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background-color: #0366d6;
    border-radius: 50%;
    animation: fade 1s infinite alternate;
    border: 3px solid #d8eaff;
}

.uae-tool .form-currency input {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    height: 100%;
    width: 100%;
}

.uae-tool .lang-select-wrapper {
    min-width: max-content;
}

.uae-tool .form-currency select {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.uae-tool .select-currency {
    display: none;
}

.uae-tool .dropdown-list {
    padding-left: 0px;
    margin: 7px;
    visibility: inherit;
}

.uae-tool .dropdown-list img,
.btn-select img {
    width: 30px;
}

.uae-tool .dropdown-list li {
    list-style: none;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.uae-tool .dropdown-list li span {
    white-space: nowrap;
    overflow-x: hidden;
}

.uae-tool .dropdown-list li:hover {
    background-color: #F4F3F3;
}

.uae-tool .dropdown-list li img {
    margin: 5px;
}

.uae-tool .dropdown-list li span,
.btn-select li span {
    margin-left: 10px;
}

/* item list */

.uae-tool .b {
    display: none;
    /* width: 100%;
    max-width: inherit; */
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    right: 0;
    max-width: none;
    width: max-content;
    top: 100%;
    z-index: 99;
    background: white;
    overflow-y: auto;
}

.uae-tool .open {
    display: show !important;
}

.uae-tool .btn-select {
    background-color: #0366d6;
    color: rgb(255, 255, 255);
    cursor: pointer;
    display: flex;
    align-items: center;
    column-gap: 5px;
    max-width: 101px;
    width: 100%;
    padding: 10px 4px;
    border: 1px solid #e8e8e8;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    justify-content: center;
}

.uae-tool .btn-select li {
    list-style: none;
    float: left;
    padding-bottom: 0px;
    display: flex;
    flex-direction: row;
    max-width: calc(100% - 18px);
}

.uae-tool .btn-select svg {
    flex: 0 0 20px;
}

.uae-tool .btn-select svg path {
    fill: white;
}

.uae-tool .btn-select li span {
    white-space: nowrap;
    overflow-x: hidden;
}

.uae-tool .btn-select:hover li {
    margin-left: 0px;
}

.uae-tool .btn-select:hover {
    background-color: #004694;
    border: 1px solid transparent;
    box-shadow: inset 0 0px 0px 1px #ccc;


}

.uae-tool .btn-select:focus {
    outline: none;
}

/* .uae-tool .lang-select {
    position: relative;
} */


.uae-tool .form-currency .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 355px;
}

.uae-tool .form-currency .container .lang-select-wrapper {
    width: 48%;
    /* position: relative; */
}

.uae-tool .form-currency .container .switch {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: .7;
}

.uae-tool .switch .btn-switch {
    border-radius: 50%;
    width: 2rem;
    padding: 8px;
    display: flex;
    align-items: center;
    text-align: center;
    opacity: .6;
}

.uae-tool .switch .btn-switch:hover {
    opacity: 1;
}

.uae-tool .switch .btn-switch svg {
    width: 22px;
    height: 18px;
}

.uae-tool .switch .btn-switch svg path {
    fill: #ffffff;
}

@media only screen and (max-width: 560px) {
    .uae-tool .b {
        max-width: calc(100vw - 58px);
    }
}

@media only screen and (max-width: 460px) {
    .uae-tool .form-currency .row {
        display: block;
        width: 300px;
        margin: 0 auto;
    }

    .uae-tool .form-currency .container {
        width: 100%;
    }

    .uae-tool .btn-select {
        max-width: unset;
    }

    .uae-tool .dropdown.source .b {
        right: unset;
        left: 0;
    }
}


/* Side By Side Style */

.uae-tool .container.side-by-side .row {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.uae-tool .container.side-by-side .column {
    flex: 1 1 calc(50% - 10px);
}

.uae-tool .container.side-by-side .row .input {
    display: flex;
    align-items: center;
    border: 2px solid #dddd;
    border-radius: 7px;
    height: 3rem;
    position: relative;
}

.uae-tool .container.side-by-side .row input {
    width: 100%;
}

.uae-tool .container.side-by-side .dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.uae-tool .container.side-by-side .btn-select {
    background-color: transparent;
    border: none;
    color: inherit;
}

.uae-tool .container.side-by-side .btn-select:hover {
    box-shadow: unset;
}

.uae-tool .container.side-by-side .dropdown li {
    padding-left: unset !important;
    margin: unset !important;
}

.uae-tool .container.side-by-side .currency-converter-rate .rate {
    display: block;
}

.uae-tool .container.side-by-side .input>div {
    position: relative;
}

.uae-tool .container.side-by-side .input .loading {
    display: none;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background-color: #0366d6;
    border-radius: 50%;
    animation: fade 1s infinite alternate;
    border: 3px solid #d8eaff;
}

.uae-tool .container.side-by-side .row input,
.uae-tool .container.side-by-side .row input:active,
.uae-tool .container.side-by-side .row input:focus {
    background-color: transparent;
    border-color: transparent;
    outline: none;
    box-shadow: none;
}

.uae-tool .container.side-by-side .row img {
    width: 24px;
    height: 24px;
}

.uae-tool .container.side-by-side .row .select-currency {
    flex: 0 0 3rem;
    gap: 5px;
    margin-right: 5px;
    cursor: pointer;
}

.uae-tool .container.side-by-side .row .input path {
    fill: #9d9d9d;
}

.uae-tool .container.side-by-side .btn-switch {
    background-color: transparent;
    padding: 0;
    width: auto;
}

.uae-tool .container.side-by-side .btn-switch path {
    fill: #6d6d6d;
}

@media only screen and (max-width: 460px) {
    .uae-tool .container.side-by-side .row.container {
        flex-direction: column;
    }

    .uae-tool .container.side-by-side .btn-switch svg {
        transform: rotate(90deg);
        transform-origin: center;
    }
}




.uae-tool .b::-webkit-scrollbar {
    width: 10px;
}

.uae-tool .b::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.uae-tool .b::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.uae-tool .b::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.uae-tool .b::-webkit-scrollbar-button {
    display: none;
}