.swap-screen {
    /*height: 100vh;*/
    background: #f3f3f3;
    display: flex;
    flex-direction: column;
    font-family: 'Avenir Next', sans-serif;
    position: relative;
    overflow-y: scroll;
    height: calc(100vh);

}

.swap-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1894a8;
    height: 100px;
    width: 100%;
    z-index: 3;
    padding: 0 0 0 0;
}

.swap-header-row-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 15px;
}

.swap-back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding-left: 24px;
    width: 30px;
    text-align: left;
    cursor: pointer;
    z-index: 2;
}
.swap-header-title {
    flex: 1;
    text-align: center;
    color: #fff;
    font-weight: 400;
    font-size: 24px;
    pointer-events: none;
}
.swap-header-help {
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
}
.swap-header-help img {
    width: 25px;
    height: 25px;
}

.swap-bg-area {
    height: 100vh;
    width: 100%;
    background: #f3f3f3;
    z-index: 1;
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.swap-card {
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(12,38,80,0.04);
    padding: 32px 20px 16px 20px;
    width: 85%;

    z-index: 5;
    transform: translateY(-40px);
}

.swap-title {
    font-size: 2rem;
    color: rgba(21, 56, 82, 0.75);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.swap-title-purple {
    color: #9747ff;
    font-weight: 900;
}

.swap-card-settings {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.3;
}

.swap-label {
    color: #7a95ad;
    font-size: 15px;
    margin-bottom: 7px;
    font-weight: 400;
}

.swap-token-field {
    display: flex;
    align-items: center;
    background: #f5fafd;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 7px;
    gap: 12px;
    font-family: 'Avenir Next', sans-serif;
}

.swap-input,
.swap-output{
    border: none;
    background: transparent;
    flex: 1 1 auto;
    font-size: inherit;
    font-weight: inherit;
    color: #1b2540;
    min-width: 0;
    outline: none;
    font-family: "Avenir Next", sans-serif;

}

.swap-token-selector {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    gap: 7px;
    cursor: pointer;
}

.swap-token-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.swap-token-symbol {
    font-weight: 400;
    color: rgba(22, 50, 85, 0.66);
    font-size: 16px;
    font-family: "Avenir Next", sans-serif;
}

.swap-token-arrow {
    color: #8ba1bd;
    font-size: 1.2rem;
    font-weight: 200;
}

.swap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: "Avenir Next", sans-serif;

}

.swap-percent-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.swap-percent-btns button {
    background: none;
    color: #6b80a3;
    border: 1px solid rgba(107, 128, 163, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 200;
    padding: 6px 0;
    width: 80px;
    cursor: pointer;
    transition: background .18s;
}
.swap-percent-btns button:active {
    background: #a2c1fd;
}

.swap-available,
.swap-available-link {
    display: flex;
    justify-content: right;
    color: #8ba1bd;
    font-size: 14px;
    gap: 5px;
    margin-bottom: 15px;
}

/*.swap-available-link {*/
/*    color: #3498db;*/
/*    text-decoration: underline;*/
/*    cursor: pointer;*/
/*}*/

.swap-switch-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 24px 0 22px 0;
    justify-content: center;
}

.swap-switch-line {
    flex: 1 1;
    height: 2px;
    background: #eef4fa;
    border-radius: 1px;
}

.swap-switch-doted {
    width: 100%;
    margin: 12px 0;
}
.swap-switch-doted svg {
    display: block;
    width: 100%;
    height: 6px;
}

.swap-switch-btn {
    background: none;
    border: 1px solid rgba(107, 128, 163, 0.2);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(20,60,100,.07);
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 0;
}

.swap-switch-btn svg {
    width: 28px;
    height: 28px;
    rotate: 90deg;
}

.swap-rate-hint {
    color: rgba(122, 149, 173, 0.56);
    font-size: 13px;
    text-align: center;
    margin: 15px 0 22px 0;
}

.swap-now-btn {
    background: #22ce91;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    width: 100%;
    padding: 19px 0 17px 0;
    cursor: pointer;
    transition: background .15s;
    margin-top: 16px;
}
.swap-now-btn:disabled {
    background: #b3e5ce;
    color: #fff;
    opacity: 0.77;
    cursor: not-allowed;
}

.swap-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.swap-rate,
.swap-slippage {
    display: flex;
    justify-content: space-between;
    width: 100%;

}

.swap-rate-label,
.swap-slippage-label {
    font-size: 14px;
    color: rgba(136, 136, 136, 0.62);
    font-weight: 500;
}

.swap-rate-value,
.swap-slippage-value {
    color: #435463;
}

.swap-availability-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.swap-warning {
    visibility: hidden;
    color: #dc3545;
   font-size: 12px;
   font-weight: 500;
    margin-bottom: 15px;
}


/**** Slippage popup ****/
.slippage-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 33, 41, 0.30);
    z-index: 98;
    transition: 0.2s;
}

.slippage-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 40px 0 rgba(30, 33, 41, 0.15);
    z-index: 99;
    max-width: 480px;
    margin: auto;
    padding: 0 0 16px 0;
    animation: popupShow .25s cubic-bezier(.35, 1.27, .8, 1.04);
    transition: 0.2s;
}

@keyframes popupShow {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

.slippage-popup-inner {
    padding: 24px 20px 12px 20px;
}

.slippage-popup-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
    color: #153852BF;
}

.slippage-popup-desc {
    color: #6A7587;
    font-size: 15px;
    margin-bottom: 24px;
    text-align: left;
}

.slippage-popup-options {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
    justify-content: space-between;
}

.slippage-option-btn,
.slippage-custom-btn {
    border: 1.5px solid #D6DBE3;
    background: #F6F7F8;
    color: #222;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: .15s;
    min-width: 64px;
    outline: none;
    position: relative;
    flex: 1;
    white-space: nowrap;

}

.slippage-custom-btn {
    flex: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    background: #ededed;
}

.slippage-option-btn.active,
.slippage-option-btn:focus {
    border-color: #1874EC;
    background: #e5f0ff;
    color: #1874EC;
}

.slippage-custom-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #1874EC;
    font-weight: 500;
    text-align: right;
}

.slippage-save-btn {
    width: 100%;
    padding: 14px 0;
    border-radius: 6px;
    background: #1874EC;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    margin-top: 6px;
    cursor: pointer;
    transition: .15s;
    opacity: 1;
}

.slippage-save-btn:active {
    opacity: .8;
}

.slippage-popup-notification {
    min-height: 20px;
    text-align: left;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}