.lobstr-trade-screen {
    overflow-y: auto;

    background: #fff;
    min-height: 100vh;
    width: 100vw;
    font-family: 'Avenir Next', sans-serif;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 95px; /* место под кнопку */
}

.lobstr-trade-header {
    background: #1697a6;
    padding: 0 0 18px 0;
}

.lobstr-trade-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
}

.lobstr-trade-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto;
}

.lobstr-trade-menu-btn,
.lobstr-trade-refresh-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 0 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}


.lobstr-trade-filter-label {
    color: #b0bfc9;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 400;
    padding-top: 3px;
    padding-right: 10px;
    min-width: 92px;
    text-align: center;
    font-family: 'Avenir Next', sans-serif;

}

.lobstr-trade-filter-dropdown {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 18px;
    font-weight: 600;
    color: #22303d;
    outline: none;
    padding-left: 20px;
    flex: 1;
    font-family: 'Avenir Next', sans-serif;
    border-left: 1px solid #f0f1f2;
}

.lobstr-trade-filter-selected {
    color: #22303d;
    font-weight: 500;
    font-size: 15px;
}

.lobstr-trade-filter-placeholder {
    color: #b0bfc9;
    font-size: 14px;
    font-weight: 400;
    margin-top: 2px;
}

.lobstr-trade-filter-arrow {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-30%);
    pointer-events: none;
}

.lobstr-trade-filter-dropdown {
    padding-right: 26px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    line-height: 1.5;
}

.lobstr-trade-filter-dropdown svg {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.lobstr-trade-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 14px 4px 14px;
}

.lobstr-trade-top-title {
    color: #22303d;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.15;
}

.lobstr-trade-sort-btn {
    background: #f4f8fa;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    color: #22303d;
    font-weight: 500;
    padding: 7px 16px 7px 16px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: none;
    transition: background 0.13s;
}

.lobstr-trade-markets-list {
    /*flex: 1 1 auto;*/
    height: calc(100vh - 350px);
    overflow-y: auto;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.lobstr-trade-market-item {
    display: flex;
    align-items: center;
    background: none;
    margin: 0 11px 10px 11px;
    padding: 13px 11px 13px 11px;
    min-height: 52px;
    transition: box-shadow 0.16s;
    cursor: pointer;
    font-family: 'Avenir Next', sans-serif;

}

.lobstr-trade-market-item:active {
    box-shadow: 0 4px 16px rgba(25, 41, 51, 0.10);
}

.lobstr-trade-market-logos {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.lobstr-trade-market-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f6f8;
    object-fit: contain;
    box-shadow: 0 1px 2px rgba(20, 40, 50, 0.05);
}

.lobstr-trade-market-logo + .lobstr-trade-market-logo {
    margin-left: -8px;
    border: 2px solid #fff;
}

.lobstr-trade-market-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lobstr-trade-market-pair {
    font-size: 16px;
    font-weight: 400;
    color: #22303d;
    letter-spacing: 0.1px;
    margin-bottom: 1px;
    font-family: 'Avenir Next', sans-serif;

}

.lobstr-trade-market-domains {
    font-size: 13.5px;
    color: #b0bfc9;
    font-weight: 400;
}

.lobstr-trade-market-stats {
    min-width: 66px;
    text-align: right;
}

.lobstr-trade-market-volume {
    font-size: 18px;
    font-weight: 400;
    color: #22303d;
}

.lobstr-trade-market-change {
    font-size: 14px;
    font-weight: 400;
    margin-top: 2px;
}

.lobstr-trade-market-change.minus {
    color: #ff5a5f;
}

.lobstr-trade-market-change.plus {
    color: #16bf49;
}

.lobstr-trade-market-change {
    color: #b0bfc9;
}

.lobstr-trade-custom-btn-wrapper {
    display: flex;
    justify-content: center;
    background: #fff;
    height: 125px;
    width: 100%;
    box-shadow: 0 -4px 16px rgba(25, 41, 51, 0.2);
    position: fixed;
    bottom: 0;
}

.lobstr-trade-custom-btn {
    width: 100%;
    margin: 10px 20px;
    height: 65px;
    padding: 15px 20px;
    background: #eee;
    border: none;
    border-radius: 8px;
    color: #1697a6;
    font-weight: 700;
    font-size: 16px;
    display: block;
}


/* market overview */
.lobstr-market-details-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f9fcfd;
    z-index: 15;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: fadeIn .23s;
}

.lobstr-market-details-popup.hidden {
    display: none;
}

.lobstr-market-details {
    background: #eaf4f8;
    min-height: 100vh;
    font-family: 'Avenir Next', Arial, sans-serif;
    color: #22303d;
}

.lobstr-market-header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: #1697a6;
    padding: 0 12px;
}

.lobstr-market-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1697a6;
    height: 62px;
}

.lobstr-market-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.lobstr-market-back,
.lobstr-market-history {
    background: none;
    border: none;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lobstr-market-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.lobstr-trade-filter-block {
    background: #fff;
    margin: 0 16px;
    border-radius: 6px;
    padding: 14px 10px;
    display: flex;
    align-items: flex-start;
    font-family: 'Avenir Next', sans-serif;
    box-shadow: 0 2px 8px rgba(25, 41, 51, 0.04);
    flex-direction: row;
    position: relative;
    top: 0;
    z-index: 2;
    margin-top: 12px;
}

.lobstr-market-asset-bar {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 6px;
    padding: 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(25, 41, 51, 0.04);
}

.lobstr-market-asset-block {
    display: flex;
    align-items: center;
}

.lobstr-market-asset-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-right: 8px;
    background: none;
}

.lobstr-market-asset-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lobstr-market-asset-code {
    font-weight: 400;
    font-size: 16px;
}

.lobstr-market-asset-domain {
    color: #878787;
    font-size: 11px;
    font-weight: 400;
    margin-top: 1px;
}

.lobstr-market-asset-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 7px;
}

.lobstr-market-tabs {
    display: flex;
    justify-content: space-around;
    background: #fff;
    margin: 0 0 0 0;
    border-bottom: 2px solid #eaf4f8;
    border-radius: 80px 8px 0 0;
}

.lobstr-market-tab {
    background: none;
    border: none;
    flex: 1;
    text-align: center;
    color: #b0bfc9;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 0 10px 0;
    transition: color 0.14s;
    cursor: pointer;
}

.lobstr-market-tab.active {
    color: #16bf49;
    border-bottom: 2.5px solid #16bf49;
    background: none;
}

.lobstr-market-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    column-gap: 24px;
    background: none;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lobstr-market-stats-label {
    color: #b0bfc9;
    font-size: 14px;
    font-weight: 400;
}

.lobstr-market-stats-value {
    color: #22303d;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.lobstr-market-stats-value.plus {
    color: #16bf49;
}

.lobstr-market-stats-value.minus {
    color: #ff5a5f;
}

.lobstr-market-body {
    background: #fff;
    overflow-y: auto;
    height: calc(100vh - 250px);
}

/* Asset balances, Asset details */
.lobstr-market-section {
    background: none;
    margin-bottom: 18px;
    padding: 15px 13px 10px 13px;
    border-bottom: 1px solid #eeee;

}

.lobstr-market-section-title {
    color: #3b556c;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lobstr-market-price {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    margin-top: 12px;
    margin-bottom: 2px;
}

.lobstr-market-price-date {
    color: rgba(161, 161, 161, 0.8);
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 2px;
}

.lobstr-market-price-currency {
    font-size: 24px;
    color: #000;
    font-weight: 400;
}

.lobstr-market-balances-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lobstr-market-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border: none;
    background: none;
}

.lobstr-market-balance-row:last-child {
    border: none;
    background: none;
}

.lobstr-market-balance-label {
    font-size: 14px;
    color: #b0bfc9;
}

.lobstr-market-balance-value {
    font-size: 14px;
    font-weight: 500;
    color: #22303d;
    margin-top: 5px;
}

.lobstr-market-balance-arrow {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    /*background: url('assets/chevron-right.svg') center/18px 18px no-repeat;*/
    cursor: pointer;
    opacity: 0.6;
}

.lobstr-market-stats-section {
    background: none;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 15px 13px 10px 13px;
}

.lobstr-market-stats-title {
    color: #3b556c;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Asset details (list) */
.lobstr-market-assets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lobstr-market-asset-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.lobstr-market-asset-info-row:last-child {
    border-bottom: none;
}

.lobstr-market-asset-details-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eaf4f8;
    margin-right: 6px;
}

.lobstr-market-asset-details-code {
    font-size: 16px;
    font-weight: 400;
    color: #22303d;
}

.lobstr-market-asset-details-desc {
    font-size: 14px;
    color: #b0bfc9;
    margin-top: 1px;
}

.lobstr-market-asset-details-arrow {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: 0.6;
    margin-left: auto;
}

/* Buy/Sell кнопки прибиты к низу */
.lobstr-market-actions-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    gap: 12px;
    padding: 18px 16px 22px 16px;
    box-shadow: 0 -4px 10px rgba(30, 60, 80, 0.2);
    z-index: 20;
}

.lobstr-market-buy,
.lobstr-market-sell {
    flex: 1;
    background: #16bf49;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    padding: 24px 0;
    border-radius: 6px;
    cursor: pointer;
}

.lobstr-market-sell {
    background: rgba(234, 244, 248, 0.73);
    color: #16bf49;
}


/********** BUY/SELL **********/
.lobstr-trade-popup-backdrop {
    position: fixed;
    z-index: 22;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.44);
    transition: opacity .22s;

}


.lobstr-trade-popup-backdrop.hidden {
    display: none;
}

.lobstr-trade-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 23;
    margin: 0;
    height: 75%;
    width: 100%;
    box-shadow: 0 4px 36px rgba(22, 151, 166, 0.09);
    display: flex;
    flex-direction: column;
    animation: slide-in-bottom .35s cubic-bezier(.4, 1, .3, 1);
}

.lobstr-trade-popup.slide-in {
    animation: slide-in-bottom .35s cubic-bezier(.4, 1, .3, 1);
}

.lobstr-trade-popup.slide-out {
    animation: slide-out-bottom .35s cubic-bezier(.4, 1, .3, 1);
}

@keyframes slide-in-bottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slide-out-bottom {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.lobstr-trade-popup.hidden {
    display: none;
}

.lobstr-trade-popup-header {
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 8px 0 6px;
    background: #1697a6;
    border-radius: 18px 18px 0 0;
}

.lobstr-trade-popup-back {
    background: none;
    border: none;
    margin-right: 2px;
    cursor: pointer;
}

.lobstr-trade-popup-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-left: 6px;
    letter-spacing: 0.1px;
}

.lobstr-trade-popup-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #eaf4f8;
    margin: 0;
}

.lobstr-trade-popup-tab {
    background: none;
    border: none;
    flex: 1;
    text-align: center;
    color: #b0bfc9;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 0 10px 0;
    cursor: pointer;
    transition: color 0.12s;
}

.lobstr-trade-popup-tab.active {
    color: #16bf49;
    border-bottom: 2.5px solid #16bf49;
    background: none;
}

.lobstr-trade-popup-form {
    padding: 18px 15px 8px 15px;
    flex: 1 1 auto;
    overflow-y: auto;
}

.lobstr-trade-popup-switch {
    display: flex;
    margin-bottom: 16px;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid #eaf4f8;
    background: #f5fafc;
    width: 50%;
    max-width: 320px;
    padding: 2px;
    margin-left: auto;
}

.lobstr-trade-popup-switch button {

    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #b0bfc9;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.lobstr-trade-popup-switch button.active {
    background: #fff;
    color: #22303d;
}

.lobstr-trade-popup-form-block {
    margin-bottom: 18px;
}

.lobstr-trade-popup-label {
    font-size: 14px;
    color: #b0bfc9;
    margin-bottom: 7px;
    display: block;
    font-weight: 400;
}

.lobstr-trade-popup-input-group {
    display: flex;
    align-items: center;
    background: #f2f7fa;
    border-radius: 5px;
    padding: 6px 13px;
    margin-bottom: 6px;
    border: 1.5px solid #eaf4f8;
}

.lobstr-trade-popup-input::placeholder {
    color: rgba(97, 107, 113, 0.56);
    font-size: 16px;
    font-weight: 400;
}

.lobstr-trade-popup-input {
    border: none;
    background: none;
    font-size: 16px;
    color: #616b71;
    font-weight: 400;
    flex: 1;
    outline: none;
    min-width: 0;
}

.lobstr-trade-popup-input:read-only {
    color: #b0bfc9;
}

.lobstr-trade-popup-asset {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lobstr-trade-popup-asset-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eaf4f8;
}

.lobstr-trade-popup-asset-code {
    font-size: 16px;
    font-weight: 400;
    color: #22303d;
}

.lobstr-trade-popup-precent-form-block {
    display: flex;
    flex-direction: column;
}

.lobstr-trade-popup-percent-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 2px;
}

.lobstr-trade-popup-percent-row button {
    background: #fff;
    border: 1.2px solid #eaf4f8;
    font-size: 14px;
    color: #b0bfc9;
    font-weight: 500;
    padding: 5px 24px;
    cursor: pointer;
    transition: background 0.12s;
}

.lobstr-trade-popup-percent-row button:active {
    background: #eaf4f8;
}

.lobstr-trade-popup-available {
    font-size: 14px;
    color: #b0bfc9;
    margin-left: auto;
}

.lobstr-trade-popup-available-value {
    color: #1697a6;
    font-weight: 400;
}

.lobstr-trade-popup-notice {
    text-align: center;
    color: #b0bfc9;
    font-size: 14px;
    padding: 16px 0 10px 0;
    border-top: 1px solid #eaf4f8;
    background: #fff;
}

.lobstr-trade-popup-actions {
    padding: 14px 14px 24px 14px;
    background: #fff;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
}

.lobstr-trade-popup-buy-btn {
    width: 100%;
    background: #16bf49;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 0;
    border-radius: 6px;
    cursor: pointer;
}

.lobstr-trade-popup-buy-btn:disabled {
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 380px) {
    .lobstr-trade-popup-percent-row {
        gap: 4px;
    }
    .lobstr-trade-popup-percent-row button {
        padding: 5px 18px;
    }
}

