.lock,
.swap {
    cursor: pointer !important;
}

.lock {
    color: #7e8999 !important;
    transition:
        color .16s ease,
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.lock:hover {
    transform: translateY(-1px);
    color: var(--text) !important;
}

.lock.locked {
    color: var(--cyan2) !important;
    border-color: rgba(40,199,250,.42) !important;
    background: rgba(40,199,250,.09) !important;
}

.swap {
    color: #aeb8c6 !important;
    transition:
        color .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.swap:hover {
    color: var(--text) !important;
    border-color: rgba(40,199,250,.38) !important;
    background: rgba(40,199,250,.06) !important;
}

.swap:disabled {
    opacity: .35;
    cursor: not-allowed !important;
}

.component.lockedComponent {
    border-color: rgba(40,199,250,.24);
}

.drawerOverlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.57);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.drawerOverlay.show {
    opacity: 1;
    pointer-events: auto;
}

.swapDrawer {
    position: fixed;
    z-index: 1001;
    right: 0;
    top: 0;
    width: min(620px, 100%);
    height: 100dvh;
    background:
        radial-gradient(
            circle at 90% -5%,
            rgba(40,199,250,.12),
            transparent 28%
        ),
        #0d1014;
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform .26s cubic-bezier(.2,.8,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -30px 0 80px rgba(0,0,0,.42);
}

.swapDrawer.show {
    transform: translateX(0);
}

.drawerHead {
    padding:
        max(22px, env(safe-area-inset-top))
        22px
        17px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.drawerEyebrow {
    color: var(--cyan2);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.drawerTitle {
    margin: 6px 0 0;
    font-size: 24px;
    letter-spacing: -.035em;
}

.drawerClose {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface2);
    color: var(--text);
    font-size: 19px;
    cursor: pointer;
}

.drawerMeta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 22px 0;
}

.drawerStat {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--muted);
    font-size: 11px;
}

.drawerStat strong {
    color: var(--text);
}

.drawerList {
    flex: 1;
    overflow: auto;
    padding: 14px 14px 120px;
}

.swapOption {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    padding: 15px;
    margin-bottom: 9px;
}

.swapOption.current {
    border-color: rgba(40,199,250,.42);
    background:
        linear-gradient(
            145deg,
            rgba(40,199,250,.07),
            transparent
        ),
        var(--surface);
}

.swapOption.rebuild {
    opacity: .67;
}

.optionTop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.optionName {
    font-size: 14px;
    line-height: 1.38;
    font-weight: 720;
}

.optionPrice {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 850;
}

.optionSupplier {
    color: var(--muted);
    font-size: 11px;
    margin-top: 6px;
}

.optionBottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
}

.optionDelta {
    font-size: 12px;
    color: var(--muted);
}

.optionDelta.good {
    color: var(--green);
}

.optionDelta.bad {
    color: var(--yellow);
}

.optionStatus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    border-radius: 999px;
    padding: 6px 9px;
    border: 1px solid var(--line);
}

.optionStatus.ok {
    color: var(--green);
    border-color: rgba(99,230,165,.22);
    background: rgba(99,230,165,.05);
}

.optionStatus.current {
    color: var(--cyan2);
    border-color: rgba(40,199,250,.22);
}

.optionStatus.rebuild {
    color: var(--yellow);
    border-color: rgba(255,200,87,.22);
    background: rgba(255,200,87,.04);
}

.applySwap {
    border: 0;
    border-radius: 10px;
    background: var(--cyan);
    color: #031016;
    padding: 8px 11px;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.applySwap:disabled {
    background: #252b34;
    color: #707986;
    cursor: not-allowed;
}

.optionReasons {
    margin-top: 9px;
    font-size: 10px;
    line-height: 1.4;
    color: #7e8794;
}

.drawerLoading {
    color: var(--muted);
    padding: 30px 10px;
    text-align: center;
    font-size: 13px;
}

.swapToast {
    position: fixed;
    z-index: 1100;
    left: 50%;
    bottom:
        calc(
            25px
            + env(safe-area-inset-bottom)
        );
    transform:
        translate(
            -50%,
            20px
        );
    opacity: 0;
    pointer-events: none;
    background: #151a20;
    border: 1px solid var(--line2);
    border-radius: 13px;
    padding: 11px 14px;
    font-size: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,.42);
    transition:
        opacity .18s ease,
        transform .18s ease;
}

.swapToast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media(max-width: 760px) {

    .swapDrawer {
        top: auto;
        bottom: 0;
        width: 100%;
        height: min(88dvh, 840px);
        border-left: 0;
        border-top: 1px solid var(--line);
        border-radius: 26px 26px 0 0;
        transform: translateY(102%);
    }

    .swapDrawer.show {
        transform: translateY(0);
    }

    .drawerHead {
        padding-top: 20px;
    }
}
