.m2sell-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    color: #15233a;
    font-family: inherit
}

.m2sell-modal.open {
    display: block
}

.m2sell-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 29, 44, .72);
    backdrop-filter: blur(3px)
}

body.m2sell-open {
    overflow: hidden
}

.m2sell-dialog {
    position: relative;
    width: min(1060px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    margin: 16px auto;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 24px 80px rgba(5, 16, 31, .35)
}

.m2sell-close {
    position: absolute;
    right: 25px;
    top: 24px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #718096;
    font-size: 21px;
    cursor: pointer
}

.m2sell-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 55px;
    text-align: left;
}

.m2sell-header img {
    width: 82px;
    height: 82px;
    border-radius: 10px;
    object-fit: cover
}

.m2sell-header h2 {
    margin: 0;
    color: #17243a;
    font-size: 24px;
    font-weight: 850
}

.m2sell-header p {
    margin: 4px 0 0;
    color: #6d788b;
    font-size: 14px
}

.m2sell-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 16px 95px 22px
}

.m2sell-steps span {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6f798b;
    font-weight: 750;
    font-size: 14px
}

/* .m2sell-steps span:not(:last-child):after {
    content: "";
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    width: 22px;
    height: 2px;
    background: #dce1e8
} */

.m2sell-steps b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #d7dde6;
    border-radius: 50%;
    background: #f4f6f8;
    color: #58677c;
    font-style: normal
}

.m2sell-steps em {
    font-style: normal;
    white-space: nowrap
}

.m2sell-steps span.active,
.m2sell-steps span.completed {
    color: #f20d32
}

.m2sell-steps span.active b,
.m2sell-steps span.completed b {
    border-color: #f20d32;
    background: #f20d32;
    color: #fff
}

.m2sell-steps span.completed b {
    font-size: 0
}

.m2sell-steps span.completed b:before {
    content: "✓";
    font-size: 18px
}

/* 
.m2sell-steps span.active:not(:last-child):after,
.m2sell-steps span.completed:not(:last-child):after {
    background: #f20d32
} */

.m2sell-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .95fr);
    gap: 20px
}

.m2sell-layout form,
.m2sell-side {
    border: 1px solid #dde2e9;
    border-radius: 12px;
    background: #fff
}

.m2sell-layout form {
    padding: 22px;
    text-align: left;
}

.m2sell-panel-heading h3 {
    margin: 0;
    color: #142238;
    font-size: 21px;
    font-weight: 850
}

.m2sell-panel-heading p {
    margin: 5px 0 18px;
    color: #707b8e;
    font-size: 14px
}

.m2sell-price-area {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 18px;
    grid-template-columns: 1fr;
}

.m2sell-price-limits {
    display: grid;
    gap: 9px;
    display: none;
}

.m2sell-price-limits span {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #d9dfe7;
    border-radius: 10px;
    padding: 10px 16px
}

.m2sell-price-limits small {
    color: #687589;
    font-size: 11px;
    font-weight: 700
}

.m2sell-price-limits strong {
    margin-top: 4px;
    color: #142238;
    font-size: 17px
}

.m2sell-price-entry>label,
.m2sell-fields>label {
    display: block;
    color: #344158;
    font-size: 12px;
    font-weight: 800
}

.m2sell-price-input {
    display: grid;
    grid-template-columns: 1fr 112px;
    overflow: hidden;
    margin-top: 6px;
    border: 2px solid #ff91a3;
    border-radius: 11px;
    box-shadow: 0 0 0 3px rgba(242, 13, 50, .08)
}

.m2sell-fields label.error,
.m2sell-quantity-input label.error,
.m2sell-price-input label.error {
    display: none !important;
}

.m2sell-price-input input {
    width: 100%;
    height: 78px;
    font-size: 36px;
    font-weight: 850;
    line-height: 1;
    border: 0;
    background: #fff;
    color: #101d31;
    text-align: center;
    outline: 0 !important;
}

.m2sell-price-input span {
    display: grid;
    place-items: center;
    border-left: 1px solid #e1e5eb;
    color: #657188;
    font-weight: 800
}

.m2sell-field-error {
    display: block;
    margin-top: 7px;
    color: #ef173b !important;
    font-size: 12px;
    font-weight: 700 !important;
    line-height: 1.35
}

.m2sell-field-error[hidden],
.m2sell-form-message[hidden] {
    display: none !important
}

.m2sell-price-input:has(input.m2sell-invalid),
.m2sell-quantity-input:has(input.m2sell-invalid),
.m2sell-fields input.m2sell-invalid {
    border-color: #ef173b !important;
    box-shadow: 0 0 0 3px rgba(239, 23, 59, .09)
}

.m2sell-form-message {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid #ffc2cc;
    border-radius: 9px;
    background: #fff1f3;
    color: #c8102e;
    font-size: 13px;
    font-weight: 700
}

.m2sell-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    border-radius: 9px;
    background: #fff0f2;
    padding: 10px 13px;
    color: #4f5b6e;
    font-size: 11px;
    line-height: 1.4
}

.m2sell-hint i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 7px;
    background: #ffdce2;
    color: #f20d32;
    font-size: 15px
}

.m2sell-quick {
    margin-top: 17px;
    display: none;
}

.m2sell-quick>strong {
    display: block;
    margin-bottom: 9px;
    color: #6a7486;
    font-size: 12px
}

.m2sell-quick>div,
.m2sell-quantity-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px
}

.m2sell-quick button,
.m2sell-quantity-presets button {
    height: 48px;
    border: 1px solid #d9dfe7;
    border-radius: 9px;
    background: #fff;
    color: #26344a;
    font-weight: 800;
    cursor: pointer
}

.m2sell-quick button.active,
.m2sell-quantity-presets button.active {
    border-color: #f20d32;
    background: #fff1f3;
    color: #e30c2e
}

.m2sell-actions {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    margin-top: 22px
}

.m2sell-primary,
.m2sell-secondary {
    height: 50px;
    border-radius: 9px;
    font-weight: 850;
    cursor: pointer
}

.m2sell-primary {
    border: 0;
    background: linear-gradient(135deg, #f70731, #ef173b);
    color: #fff;
    font-size: 15px
}

.m2sell-primary:disabled {
    opacity: .55;
    cursor: not-allowed
}

.m2sell-secondary {
    border: 1px solid #d6dce5;
    background: #f7f8fa;
    color: #344158
}

.m2sell-primary i {
    margin-left: 8px
}

.m2sell-secondary i {
    margin-right: 8px
}

.m2sell-quantity-input {
    display: grid;
    grid-template-columns: 1fr 112px;
    overflow: hidden;
    border: 2px solid #ff91a3;
    border-radius: 11px;
    box-shadow: 0 0 0 3px rgba(242, 13, 50, .08);
}

.m2sell-quantity-input button {
    margin: 12px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    background: #fff;
    color: #223149;
    font-size: 26px;
    cursor: pointer;
    display: none;
}

.m2sell-quantity-input input {
    width: 100%;
    height: 76px;
    font-size: 36px;
    font-weight: 850;
    line-height: 1;
    border: 0;
    border-left: 1px solid #edf0f4;
    background: #fff;
    text-align: center;
    color: #101d31;
    outline: 0 !important;
}

.m2sell-quantity-input span {
    display: grid;
    place-items: center;
    border-left: 1px solid #d8dee7;
    color: #657188;
    font-weight: 800
}

.m2sell-quantity-presets {
    margin-top: 12px;
    display: none;
}

.m2sell-range {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 16px;
    color: #748095;
    font-size: 12px
}

.m2sell-calc {
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    padding: 14px 16px
}

.m2sell-calc>div:first-child {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px
}

.m2sell-calc span {
    color: #536076;
    font-weight: 750
}

.m2sell-calc small {
    grid-column: 1/-1;
    color: #7b8699;
    font-size: 14px
}

.m2sell-calc strong {
    color: #15233a
}

.m2sell-payout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    border-top: 1px solid #e4e8ed;
    padding-top: 13px
}

.m2sell-payout span,
.m2sell-payout strong {
    color: #ed1235;
    font-size: 16px
}

.m2sell-payout strong {
    font-size: 25px
}

.m2sell-calc>p {
    margin: 12px -7px -7px;
    border-radius: 8px;
    background: #fff0f2;
    padding: 10px;
    color: #48556a;
    font-size: 11px
}

.m2sell-calc>p i {
    margin-right: 9px;
    color: #f20d32
}

.m2sell-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px
}

.m2sell-fields label input {
    display: block;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    margin-top: 7px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    padding: 0 13px;
    color: #18263d;
    font: 500 13px/1 inherit;
    outline: 0
}

.m2sell-fields label input:focus {
    border-color: #f20d32;
    box-shadow: 0 0 0 3px rgba(242, 13, 50, .08)
}

.m2sell-fields label>small {
    display: block;
    margin-top: 5px;
    color: #7b8798;
    font-weight: 500
}

.m2sell-password {
    position: relative;
    display: block
}

.m2sell-password button {
    position: absolute;
    right: 3px;
    top: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #718096;
    cursor: pointer
}

.m2sell-warning {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 17px;
    border-radius: 9px;
    background: #fff5d8;
    padding: 12px
}

.m2sell-warning>i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #ffd96a;
    color: #3f4654
}

.m2sell-warning strong,
.m2sell-warning span {
    display: block
}

.m2sell-warning strong {
    font-size: 13px
}

.m2sell-warning span {
    margin-top: 3px;
    color: #647084;
    font-size: 11px
}

.m2sell-confirm {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: #465267 !important;
    font-size: 12px !important;
    font-weight: 500 !important
}

.m2sell-confirm input {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    accent-color: #f20d32
}

.m2sell-side {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden
}

.m2sell-side h3 {
    margin: 0;
    border-bottom: 1px solid #e1e5eb;
    padding: 17px 18px;
    color: #17243a;
    font-size: 14px
}

.m2sell-side h3 i {
    margin-right: 9px;
    color: #f20d32;
    font-size: 17px
}

.m2sell-queue {
    max-height: 315px;
    overflow: auto
}

.m2sell-queue>div {
    padding: 13px 18px;
    border-bottom: 1px solid #e8ebef
}

.m2sell-queue b,
.m2sell-queue span {
    display: block
}

.m2sell-queue b {
    color: #445168;
    font-size: 13px
}

.m2sell-queue span {
    margin-top: 4px;
    color: #748095;
    font-size: 12px
}

.m2sell-queue>span {
    display: block;
    padding: 18px;
    color: #748095;
    font-size: 12px
}

.m2sell-safe {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: auto 10px 10px;
    border-radius: 9px;
    background: #fff0f2;
    padding: 16px;
    display: none;
}

.m2sell-safe>i {
    color: #f20d32;
    font-size: 34px
}

.m2sell-safe strong,
.m2sell-safe span {
    display: block
}

.m2sell-safe strong {
    color: #d90d2e;
    font-size: 13px
}

.m2sell-safe span {
    margin-top: 4px;
    color: #48556a;
    font-size: 11px
}

.m2sell-summary {
    padding: 6px 16px 16px
}

.m2sell-summary p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    border-bottom: 1px solid #e6e9ee;
    padding: 11px 0;
    color: #718096;
    font-size: 12px
}

.m2sell-summary p strong {
    color: #17243a;
    text-align: right
}

.m2sell-summary>div {
    padding: 15px 0;
}

.m2sell-summary>div span,
.m2sell-summary>div strong {
    display: block;
    color: #e40e30
}

.m2sell-summary>div strong {
    margin-top: 4px;
    font-size: 24px
}

.m2sell-summary button {
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #1672d4;
    text-decoration: underline;
    cursor: pointer;
    display: none;
}

.m2sell-summary button i {
    margin-right: 7px
}

.m2sell-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 14px;
    border-top: 1px solid #e0e4ea;
    padding: 16px 65px
}

.m2sell-footer>div {
    display: flex;
    align-items: center;
    gap: 12px
}

.m2sell-footer>div>i {
    color: #f20d32;
    font-size: 23px
}

.m2sell-footer strong,
.m2sell-footer small {
    display: block
}

.m2sell-footer strong {
    font-size: 12px
}

.m2sell-footer small {
    margin-top: 2px;
    color: #778296;
    font-size: 10px
}

@media(max-width:850px) {
    .m2sell-dialog {
        padding: 18px
    }

    .m2sell-steps {
        margin: 16px 10px 20px;
        gap: 8px
    }

    .m2sell-steps span:not(:last-child):after {
        display: none
    }

    .m2sell-layout {
        grid-template-columns: 1fr
    }

    .m2sell-side {
        min-height: 230px
    }

    .m2sell-footer {
        padding: 15px 5px
    }

    .m2sell-price-area {
        grid-template-columns: 105px 1fr
    }
}

@media(max-width:600px) {
    .m2sell-dialog {
        height: 100vh;
        max-height: 100vh;
        margin: auto;
        border-radius: 0;
        width: 100%;
    }


    .m2sell-header img {
        width: 58px;
        height: 58px
    }

    .m2sell-header h2 {
        font-size: 18px
    }

    .m2sell-steps {
        grid-template-columns: repeat(3, 1fr);
        margin: 15px 0
    }

    .m2sell-steps span {
        justify-content: center
    }

    .m2sell-steps em {
        display: none
    }

    .m2sell-layout form {
        padding: 15px
    }

    .m2sell-price-area {
        grid-template-columns: 1fr
    }

    .m2sell-price-limits {
        grid-template-columns: 1fr 1fr
    }

    .m2sell-price-limits span {
        min-height: 55px
    }

    .m2sell-price-input {
        grid-template-columns: 1fr 100px
    }

    .m2sell-quick>div,
    .m2sell-quantity-presets {
        grid-template-columns: 1fr 1fr
    }

    .m2sell-actions {
        grid-template-columns: 1fr 2fr
    }

    .m2sell-fields {
        grid-template-columns: 1fr
    }

    .m2sell-payout{
        display: grid !important;
    }
    
    .m2sell-quantity-input {
        grid-template-columns: 1fr 80px
    }

    .m2sell-quantity-input button {
        margin: 8px
    }

    .m2sell-footer {
        grid-template-columns: 1fr;
        padding: 14px 0
    }

    .m2sell-side {
        display: none
    }
}

.m2sell-queue table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed
}

.m2sell-queue td {
    padding: 13px 10px;
    border-bottom: 1px solid #e8ebef;
    color: #445168;
    font-size: 12px;
    white-space: nowrap
}

.m2sell-queue td:first-child {
    width: 42%;
    padding-left: 18px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis
}

.m2sell-queue td:nth-child(2) {
    width: 29%;
    text-align: center
}

.m2sell-queue td:last-child {
    width: 29%;
    padding-right: 18px;
    text-align: right;
    font-weight: 750
}
