#recalculate_btn {
    cursor: pointer;
}

.calculator button .loader {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
}

#recalculate_btn.loading {
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#searach_option_input {
    padding: 0;
    font-size: 16px;
    letter-spacing: 0;
    text-align: left;
}

@keyframes l5 {
    0% {
        box-shadow: 20px 0 #000, -20px 0 #0002;
        background: #000
    }

    33% {
        box-shadow: 20px 0 #000, -20px 0 #0002;
        background: #0002
    }

    66% {
        box-shadow: 20px 0 #0002, -20px 0 #000;
        background: #0002
    }

    100% {
        box-shadow: 20px 0 #0002, -20px 0 #000;
        background: #000
    }
}

.hero-module__image.calculator_wrap {
    #exchangeList {
        &.active-list {
            display: block;
        }
    }
}

.currency-converter-black {
    .loading-data {
        .best-offer #rate::after {
            opacity: 0;
        }
    }
}

.calculator {
    &.active-list {
        box-shadow: 0px 20px 40px 50px #0000008c;

        #toggle-btn-exchange {
            svg {
                transform: rotate(180deg);
            }
        }
    }
}

@media(min-width:992px) {
    .hero-module__image.calculator_wrap {
        position: relative;
        width: 100%;
        min-height: 520px;
        z-index: 999;

        .calculator {
            position: absolute;
            right: 0;
            left: 0;
            margin: 0 auto;
        }
    }
}

#zen.not-best #price {
    color: #a3a3a3;
    text-align: right;
    font-family: Nunito;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}

.wrapper-offers-currency-to-sort:has(.not-best) {
    .exchange-item:not(#zen) {
        opacity: 0.5;
    }
}

.option .currency-name {
    font-weight: 300;
    font-size: 11px;
    line-height: 20px;
}

.online-currency #paste_exchangelist_here_why_zen #exchangeList .wrapper-offers-currency-to-sort {
    .exchange-item:not(.best-offer) {
        .content {
            display: flex;
            flex-wrap: wrap;

            #price {
                order: -1;
                font-size: 16px !important;
                color: #A3A3A3 !important;
                text-align: right;
                font-family: Nunito;
                font-style: normal;
                font-weight: 500;
                line-height: 24px;
            }

            #rate {
                color: #F0F0F0 !important;
                text-align: right;
                font-family: Nunito;
                font-size: 12px !important;
                font-style: normal;
                font-weight: 500;
                line-height: 16px;

                &::before {
                    content: "(";
                    margin-right: 1px;
                }

                &::after {
                    content: ")";
                    margin-left: 1px;
                }
            }
        }
    }
}

.zen-exchange-section-offers .exchange-row.highlight-row:has(+ .zen-exchange-section-offers--information-wrapper .zen-exchange-section-offers--showinformationbutton.active) {
    border-radius: 49.5px 49.5px 0 0 !important;
}

.zen-exchange-section-offers--information-wrapper:has(.zen-exchange-section-offers--showinformationbutton.active) {
    background: #222;
    border-radius: 0 0 49.5px 49.5px;
    margin-top: -20px;
    padding-top: 15px;
    padding-bottom: 30px;
}

#paste_exchangelist_here_why_zen .wrapper-offers-currency-to-sort .exchange-item:has(.zen-exchange-section-offers--information-wrapper) {
    flex-wrap: wrap;
    padding-bottom: 0;

    .zen-exchange-section-offers--information-wrapper {

        text-align: left;
        margin-top: 0px;
        margin-bottom: 0px;
        width: 100%;

        .zen-exchange-section-offers--information {
            display: none;
        }

        .zen-exchange-section-offers--information p {
            font-size: 12px;
        }

        .zen-exchange-section-offers--information.active {
            display: block;
            padding-top: 10px;
        }
    }

    .zen-exchange-section-offers--showinformationbutton {
        border: unset;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 3px;
        border-radius: 3px;

        &.active {
            transform: rotate(180deg);
        }
    }
}

@media(max-width:1024px) {
    #paste_exchangelist_here_why_zen .wrapper-offers-currency-to-sort .exchange-item {
        padding: 25px 40px 25px 20px !important;
        opacity: 1 !important;

        &:first-child {
            display: flex;
            position: relative;
            border-radius: 49.5px;
            background: #222;
        }
    }

    #paste_exchangelist_here_why_zen .exchange-item.exchange-item-first {
        border-bottom: 0;
    }

    #paste_exchangelist_here_why_zen .wrapper-offers-currency-to-sort .exchange-item:has(.zen-exchange-section-offers--information-wrapper) {
        background: #222;

        .zen-exchange-section-offers--information-wrapper {
            padding-bottom: 0;

            p {
                margin-bottom: 0;
            }
        }

        .zen-exchange-section-offers--showinformationbutton {
            position: absolute;
            right: 5px;
            left: unset;
            top: 25px;
            width: 25px;
            height: 25px;
        }
    }

}

.calculator {
    .wrapper-for-sufix {
        position: relative;
    }

    .wrapper-for-sufix::after {
        position: absolute;
        content: attr(data-sufix);
        right: -35px;
        top: 60%;
        transform: translateY(-50%);
        color: white;
    }

    .calculator.selected-currency-with-image #valueToCalculate,
    .calculator.selected-currency-with-image #resultValue {
        field-sizing: content;
        width: auto;
    }
}

.calculator_wrap.loading {
    &::after {
        content: "";
        position: absolute;
        top: 33%;
        left: 0;
        right: 0;
        transform: translate(-50%, -50%);
        border: 4px solid transparent;
        border-top-color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }

    .calculator {
        filter: blur(5px);
        pointer-events: none;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}