/* Homepage: Currency calculator widget
--------------------------------------------- */

.hero-section__calculator {
    position: absolute !important;
    right: 264px;
    top: 660px;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.calc-widget {
    width: 480px;
    border-radius: 22px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid #474747;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.25);
    isolation: isolate;
}

.calc-widget__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    color: #fff;
    margin: 0;
}

.calc-widget__tabs {
    background: #000;
    border-radius: 101px;
    padding: 6px;
    display: flex;
    gap: 4px;
}

.calc-widget__tab {
    flex: 1;
    height: 54px;
    border-radius: 90px;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    isolation: isolate;
}

.calc-widget__tab--active {
    background: rgba(23, 25, 26, 0.2);
    color: #F8CD04;
}

.calc-widget__tab--active::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom right, #fff 0%, #ffffff00 46%, #ffffff00 50%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.calc-widget__currencies {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

.calc-widget__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #212121;
    border-radius: 10px;
    padding: 6px 18px 6px 6px;
}

.calc-widget__row-currency {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 17px;
    min-width: 189px;
    max-width: 245px;
    border-radius: 8px;
}

.calc-widget__row-currency--active {
    background: rgba(255, 255, 255, 0.1);
}

.calc-widget__flag {
    width: 47px;
    height: 47px;
    border-radius: 10px;
    background-image: url('../images/flags.png');
    background-repeat: no-repeat;
    background-size: auto;
    flex-shrink: 0;
    display: block;
}

/* Adjust background-position once you know the flags.png sprite layout */
.calc-widget__flag--emoji {
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
}

.calc-widget__currency-info {
    min-width: 0;
    max-width: 150px;
}

.calc-widget__currency-name {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.calc-widget__currency-select {
    display: block;
    width: 100%;
    max-width: 150px;
    border: 0;
    outline: 0;
    padding: 0 18px 0 0;
    background-color: transparent;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.35;
    cursor: pointer;
    text-overflow: ellipsis;
}

.calc-widget__currency-select option {
    background: #212121;
    color: #fff;
}

.calc-widget__currency-select:focus-visible {
    outline: 2px solid #F8CD04;
    outline-offset: 3px;
    border-radius: 2px;
}

.calc-widget__currency-code {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #B4B4B4;
}

.calc-widget__row-amount {
    text-align: right;
    min-width: 105px;
    overflow: hidden;
}

.calc-widget__amount {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #F5F5F5;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.calc-widget__amount[hidden] {
    display: none !important;
}

.calc-widget__label {
    display: block;
    font-size: 12px;
    color: #B4B4B4;
}

input.calc-widget__amount {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    text-align: right;
    color: #F5F5F5;
    font-family: inherit;
}

input.calc-widget__amount:focus {
    outline: none;
    color: #F5F5F5;
}

.calc-widget__swap {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 63px;
    height: 63px;
    background: #040405;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.calc-widget__swap svg {
    width: 36px;
    height: 36px;
    color: #F8CD04;
    display: block;
}

.calc-widget__btn.button {
    width: 100%;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 0 14px 0 rgba(248, 205, 4, 0.5);
}

.calc-widget__btn .button-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    width: -webkit-fill-available;
    padding-left: 30px;
}

.calc-widget__btn .button-circle {
    margin-left: auto;
}

.calc-widget__info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.calc-widget__info-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    flex-shrink: 0;
    color: #F8CD04;
    display: block;
}

.calc-widget__info-text {
    font-size: 15px;
    color: #B4B4B4;
    line-height: 1.4;
}


/* ============================================================
   # MEDIA: 1200px
   ============================================================ */

@media screen and (max-width: 1200px) {
    .hero-section__calculator {
        right: 34px;
        top: 410px;
    }
}

/* ============================================================
   # MEDIA: 992px
   ============================================================ */

@media (max-width: 992px) {
    .hero-section__calculator {
        top: 610px;
    }
}

/* ============================================================
   # MEDIA: 576px
   ============================================================ */

@media (max-width: 576px) {
    .hero-section__calculator {
        position: relative !important;
        top: 0;
        right: 0;
        width: 516px;
        margin: 280px auto 0;
    }

    .calc-widget {
        width: 100%;
    }
}
