.ba26-converter,
.ba26-converter *{
    box-sizing:border-box;
}

.ba26-converter{
    --ba26-ink:#233940;
    --ba26-muted:#60747b;
    --ba26-line:#d7e1e4;
    --ba26-soft:#f2f6f7;
    --ba26-accent:#aa0033;
    --ba26-blue:#58737d;
    position:relative;
    width:100%;
    margin:0 auto;
    overflow:visible;
    background:#fff;
    border:1px solid var(--ba26-line);
    border-radius:24px;
    box-shadow:0 14px 40px rgba(35,57,64,.08);
    color:var(--ba26-ink);
    font-family:inherit;
}

.ba26-converter__tabs{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    overflow:hidden;
    border-radius:24px 24px 0 0;
    border-bottom:1px solid var(--ba26-line);
    background:#fff;
}

.ba26-converter__tab{
    position:relative;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    min-height:76px!important;
    margin:0!important;
    padding:14px 10px!important;
    border:0!important;
    border-right:1px solid var(--ba26-line)!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    color:var(--ba26-muted)!important;
    font-family:inherit!important;
    font-size:14px!important;
    line-height:1.2!important;
    font-weight:600!important;
    cursor:pointer;
    transition:background .2s ease,color .2s ease;
}

.ba26-converter__tab:last-child{border-right:0!important;}

.ba26-converter__tab::after{
    content:"";
    position:absolute;
    left:18%;
    right:18%;
    bottom:0;
    height:3px;
    border-radius:3px 3px 0 0;
    background:transparent;
}

.ba26-converter__tab:hover{
    background:#f8fafb!important;
    color:var(--ba26-ink)!important;
}

.ba26-converter__tab.is-active{
    color:var(--ba26-accent)!important;
    background:#fbf8f9!important;
}

.ba26-converter__tab.is-active::after{background:var(--ba26-accent);}

.ba26-converter__tab-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    flex:0 0 28px;
}

.ba26-converter__tab-icon svg{
    width:25px;
    height:25px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.ba26-converter__body{
    display:grid;
    grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);
    align-items:stretch;
}

.ba26-converter__side{
    padding:34px 38px 38px;
    background:#fff;
}

.ba26-converter__side--result{
    background:var(--ba26-soft);
}

.ba26-converter__eyebrow{
    margin:0 0 20px;
    color:var(--ba26-accent);
    font-size:13px;
    font-weight:700;
    letter-spacing:.11em;
}

.ba26-converter__label{
    display:block;
    margin:0 0 8px;
    color:var(--ba26-ink);
    font-size:14px;
    font-weight:600;
}

.ba26-converter__label + .ba26-converter__select,
.ba26-converter__select + .ba26-converter__label{
    margin-bottom:22px;
}

.ba26-converter__select,
.ba26-converter__input{
    display:block!important;
    width:100%!important;
    height:54px!important;
    margin:0!important;
    padding:0 16px!important;
    border:1.5px solid #b7c9ce!important;
    border-radius:12px!important;
    outline:none!important;
    background:#fff!important;
    box-shadow:none!important;
    color:var(--ba26-ink)!important;
    font-family:inherit!important;
    font-size:16px!important;
    line-height:52px!important;
    font-weight:500!important;
    transition:border-color .2s ease,box-shadow .2s ease;
}

.ba26-converter__select:focus,
.ba26-converter__input:focus{
    border-color:var(--ba26-blue)!important;
    box-shadow:0 0 0 3px rgba(88,115,125,.10)!important;
}

.ba26-converter__input::placeholder{
    color:#93a0a5;
    opacity:1;
    font-weight:400;
}

.ba26-converter__direction{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:linear-gradient(90deg,#fff 0,#fff 50%,var(--ba26-soft) 50%,var(--ba26-soft) 100%);
}

.ba26-converter__direction span{
    position:relative;
    width:36px;
    height:2px;
    background:var(--ba26-blue);
}

.ba26-converter__direction span:first-child::after,
.ba26-converter__direction span:last-child::before{
    content:"";
    position:absolute;
    top:50%;
    width:8px;
    height:8px;
    border-top:2px solid var(--ba26-blue);
    border-right:2px solid var(--ba26-blue);
}

.ba26-converter__direction span:first-child::after{
    right:0;
    transform:translateY(-50%) rotate(45deg);
}

.ba26-converter__direction span:last-child::before{
    left:0;
    transform:translateY(-50%) rotate(-135deg);
}

.ba26-converter__result{
    display:flex;
    align-items:baseline;
    gap:10px;
    min-height:80px;
    padding:14px 0 0;
}

.ba26-converter__result-value{
    color:var(--ba26-accent);
    font-size:48px;
    line-height:1;
    font-weight:700;
    letter-spacing:-.03em;
    overflow-wrap:anywhere;
}

.ba26-converter__result-unit{
    color:var(--ba26-blue);
    font-size:15px;
    font-weight:700;
}

.ba26-converter__footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-height:90px;
    padding:18px 22px 18px 38px;
    border-top:1px solid var(--ba26-line);
    border-radius:0 0 24px 24px;
    background:#fff;
}

.ba26-converter__footer>p{
    flex:1 1 250px;
    margin:0!important;
    color:var(--ba26-muted);
    font-size:13px;
    line-height:1.5;
}

.ba26-converter__actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
}

.ba26-converter__action{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    flex:0 0 auto;
    height:42px!important;
    margin:0!important;
    padding:0 15px!important;
    border:1.5px solid var(--ba26-blue)!important;
    border-radius:999px!important;
    background:#fff!important;
    box-shadow:none!important;
    color:var(--ba26-blue)!important;
    font-family:inherit!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1!important;
    white-space:nowrap;
    cursor:pointer;
    transition:background .2s ease,color .2s ease,border-color .2s ease,opacity .2s ease,transform .2s ease;
}

.ba26-converter__action:hover:not(:disabled){
    background:var(--ba26-blue)!important;
    color:#fff!important;
    transform:translateY(-1px);
}

.ba26-converter__action--pdf{
    border-color:var(--ba26-accent)!important;
    background:var(--ba26-accent)!important;
    color:#fff!important;
}

.ba26-converter__action--pdf:hover:not(:disabled){
    border-color:#870029!important;
    background:#870029!important;
}

.ba26-converter__action--reset{
    border-color:#b8c4c8!important;
    color:#66777d!important;
}

.ba26-converter__action--reset:hover:not(:disabled){
    border-color:var(--ba26-blue)!important;
    background:#fff!important;
    color:var(--ba26-blue)!important;
}

.ba26-converter__action:disabled{
    opacity:.38;
    cursor:not-allowed;
    transform:none!important;
}

.ba26-converter__action.is-loading{
    opacity:.65;
    pointer-events:none;
}

.ba26-converter__action svg{
    width:16px;
    height:16px;
    flex:0 0 16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.ba26-converter__share-wrap{position:relative;}

.ba26-converter__share-menu{
    position:absolute;
    z-index:40;
    right:0;
    bottom:calc(100% + 10px);
    min-width:180px;
    padding:7px;
    border:1px solid var(--ba26-line);
    border-radius:13px;
    background:#fff;
    box-shadow:0 14px 34px rgba(37,54,61,.16);
}

.ba26-converter__share-menu[hidden]{display:none!important;}

.ba26-converter__share-item{
    display:block!important;
    width:100%!important;
    min-height:38px!important;
    margin:0!important;
    padding:8px 12px!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--ba26-ink)!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:1.2!important;
    text-align:left!important;
    cursor:pointer;
}

.ba26-converter__share-item:hover{
    background:var(--ba26-soft)!important;
    color:var(--ba26-accent)!important;
}

.ba26-converter__toast{
    position:fixed;
    z-index:99999;
    right:24px;
    bottom:24px;
    max-width:min(360px,calc(100vw - 48px));
    padding:12px 16px;
    border-radius:10px;
    background:var(--ba26-ink);
    color:#fff;
    font-size:13px;
    font-weight:600;
    line-height:1.4;
    box-shadow:0 12px 30px rgba(37,54,61,.22);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}

.ba26-converter__toast--show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.ba26-converter__toast--error{background:#8b1836;}

@media(max-width:980px){
    .ba26-converter__footer{
        align-items:flex-start;
        flex-direction:column;
        padding-left:24px;
        padding-right:24px;
    }
    .ba26-converter__actions{
        width:100%;
        justify-content:flex-start;
    }
}

@media(max-width:900px){
    .ba26-converter__tab{
        flex-direction:column;
        gap:5px!important;
        min-height:84px!important;
        font-size:12px!important;
    }

    .ba26-converter__body{
        grid-template-columns:1fr;
    }

    .ba26-converter__direction{
        height:54px;
        flex-direction:row;
        background:linear-gradient(180deg,#fff 0,#fff 50%,var(--ba26-soft) 50%,var(--ba26-soft) 100%);
    }

    .ba26-converter__direction span{width:30px;}
}

@media(max-width:640px){
    .ba26-converter{
        border-radius:18px;
    }

    .ba26-converter__tabs{
        display:flex;
        overflow-x:auto;
        border-radius:18px 18px 0 0;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }

    .ba26-converter__tabs::-webkit-scrollbar{display:none;}

    .ba26-converter__tab{
        flex:0 0 104px;
        min-height:78px!important;
        padding:11px 7px!important;
        font-size:11px!important;
    }

    .ba26-converter__tab-icon{
        width:24px;
        height:24px;
    }

    .ba26-converter__tab-icon svg{
        width:22px;
        height:22px;
    }

    .ba26-converter__side{
        padding:26px 20px 28px;
    }

    .ba26-converter__side--result{padding-top:28px;}
    .ba26-converter__eyebrow{margin-bottom:15px;}

    .ba26-converter__select,
    .ba26-converter__input{
        height:52px!important;
        line-height:50px!important;
        font-size:16px!important;
    }

    .ba26-converter__result{min-height:68px;}
    .ba26-converter__result-value{font-size:40px;}

    .ba26-converter__footer{
        padding:18px 20px 20px;
        border-radius:0 0 18px 18px;
    }

    .ba26-converter__actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .ba26-converter__action,
    .ba26-converter__share-wrap,
    .ba26-converter__share-wrap>.ba26-converter__action{
        width:100%!important;
    }

    .ba26-converter__action{height:46px!important;}

    .ba26-converter__share-menu{
        left:0;
        right:auto;
        width:100%;
        min-width:190px;
    }
}

@media(max-width:480px){
    .ba26-converter__side{padding:22px 16px 24px;}
    .ba26-converter__footer{padding:16px;}
    .ba26-converter__actions{grid-template-columns:1fr;}
    .ba26-converter__share-menu{width:100%;}
    .ba26-converter__toast{
        right:16px;
        bottom:16px;
        max-width:calc(100vw - 32px);
    }
}
