.tgp-one-click {
    display: inline-flex;
    align-items: stretch;
    gap: 4px;
    min-height: 34px;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(6, 10, 18, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    flex: 0 0 auto;
}

.tgp-one-click[hidden],
.tgp-one-click.is-hidden {
    display: none !important;
}

.tgp-one-click.is-busy {
    opacity: 0.72;
    pointer-events: none;
}

.tgp-one-click--chart-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 44;
    min-height: 34px;
    pointer-events: auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tgp-one-click--chart-overlay:not([hidden]) ~ .tv-draw-toolbar {
    top: 58px;
}

.tgp-one-click--chart-overlay:not([hidden]) ~ .tv-active-indicators,
.tgp-one-click--chart-overlay:not([hidden]) ~ .indicator-legend {
    top: 104px;
}

.tgp-one-click--chart-overlay:not([hidden]) ~ .ohlc-overlay {
    top: 52px;
}

.tgp-one-click__side {
    width: 58px;
    min-width: 58px;
    border: 0;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.tgp-one-click__side:hover {
    filter: brightness(1.08);
}

.tgp-one-click__side:active {
    transform: translateY(1px);
}

.tgp-one-click__side--sell {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
}

.tgp-one-click__side--buy {
    background: linear-gradient(180deg, #06b6d4, #0369a1);
}

.tgp-one-click__body {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 3px 6px;
}

.tgp-one-click__symbol,
.tgp-one-click__status {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.tgp-one-click__symbol {
    color: #e5e7eb;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tgp-one-click__status {
    color: rgba(125, 211, 252, 0.9);
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tgp-one-click__field {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.tgp-one-click__field span {
    color: rgba(148, 163, 184, 0.92);
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.tgp-one-click__field input {
    width: 64px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    padding: 0 6px !important;
    font-size: 0.72rem !important;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    outline: none;
}

.tgp-one-click__field--amount input {
    width: 78px;
}

.tgp-one-click__field input:focus {
    border-color: rgba(34, 211, 238, 0.7) !important;
}

.tgp-one-click-modal {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

.tgp-one-click-modal.is-open {
    display: flex;
}

.tgp-one-click-modal__panel {
    width: min(480px, calc(100vw - 32px));
    border: 1px solid rgba(239, 68, 68, 0.24);
    border-radius: 8px;
    background: #101522;
    color: #e5e7eb;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    overflow: hidden;
}

.tgp-one-click-modal__head,
.tgp-one-click-modal__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tgp-one-click-modal__head {
    font-size: 0.82rem;
    font-weight: 900;
}

.tgp-one-click-modal__head i {
    color: #f59e0b;
}

.tgp-one-click-modal__body {
    padding: 14px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.78rem;
    line-height: 1.48;
}

.tgp-one-click-modal__order {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.tgp-one-click-modal__check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    color: rgba(226, 232, 240, 0.86);
}

.tgp-one-click-modal__check input {
    margin-top: 3px;
}

.tgp-one-click-modal__foot {
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
}

.tgp-one-click-modal__btn {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0 12px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.tgp-one-click-modal__btn--primary {
    border-color: rgba(34, 211, 238, 0.44);
    background: linear-gradient(135deg, #0891b2, #2563eb);
    color: #ffffff;
}

.tgp-one-click-modal__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 920px) {
    .tgp-one-click__status {
        display: none;
    }

    .tgp-one-click__field--amount input {
        width: 70px;
    }
}

@media (max-width: 720px) {
    .tgp-one-click {
        width: 100%;
        min-height: 38px;
        order: 30;
    }

    .tgp-one-click--chart-overlay {
        left: 0;
        right: 0;
        top: 0;
        width: auto;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-radius: 0;
        min-height: 42px;
    }

    .tgp-one-click--chart-overlay:not([hidden]) ~ .tv-active-indicators,
    .tgp-one-click--chart-overlay:not([hidden]) ~ .indicator-legend {
        top: 48px;
    }

    .tgp-one-click--chart-overlay:not([hidden]) ~ .ohlc-overlay {
        display: none;
    }

    .tgp-one-click__body {
        flex: 1 1 auto;
        justify-content: center;
        gap: 5px;
    }

    .tgp-one-click__side {
        min-width: 54px;
        width: 54px;
    }

    .tgp-one-click__symbol {
        max-width: 58px;
    }

    .tgp-one-click__field input {
        width: 58px;
    }

    .tgp-one-click__field--amount input {
        width: 72px;
    }
}

@media (max-width: 430px) {
    .tgp-one-click__symbol,
    .tgp-one-click__field--amount span {
        display: none;
    }

    .tgp-one-click__field--amount input {
        width: 76px;
    }
}
