/* =========================================================
   MAIN CARD
========================================================= */

.orders-card {
    overflow: hidden;

    margin-bottom: 60px;

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 20px;

    box-shadow:
        0 2px 4px
        color-mix(
            in srgb,
            var(--text-1) 3%,
            transparent
        ),
        0 18px 45px
        color-mix(
            in srgb,
            var(--text-1) 7%,
            transparent
        );
}


.orders-card-body {
    padding: 28px;
}


/* =========================================================
   HEADER
========================================================= */

.orders-header {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 26px;
}


.orders-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    color: var(--text-2);

    background: var(--bg-3);

    border: 1px solid var(--border-1);
    border-radius: 13px;

    font-size: 20px;

    box-shadow:
        inset 0 1px 0
        color-mix(
            in srgb,
            var(--bg-2) 80%,
            transparent
        );
}


.orders-title {
    margin: 0 0 3px;

    color: var(--text-1);

    font-size: 20px;
    font-weight: 750;

    letter-spacing: -.025em;
}


.orders-subtitle {
    color: var(--text-3);

    font-size: 13px;
}


/* =========================================================
   ERROR
========================================================= */

.orders-error {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    padding: 14px 16px;

    color: var(--text-1);

    background:
        color-mix(
            in srgb,
            var(--bg-2) 88%,
            #dc3545
        );

    border:
        1px solid
        color-mix(
            in srgb,
            var(--border-1) 72%,
            #dc3545
        );

    border-radius: 14px;

    font-size: 14px;
}


.orders-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    background: var(--bg-2);

    border-radius: 10px;

    font-size: 16px;
}


/* =========================================================
   LOADING
========================================================= */

.orders-loading {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 160px;

    color: var(--text-3);

    font-size: 14px;
}


.orders-loading .spinner-border {
    color: var(--text-2);
}


/* =========================================================
   LIST
========================================================= */

.orders-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   ORDER ITEM
========================================================= */

.order-item {
    display: flex;
    align-items: center;

    gap: 14px;

    min-height: 82px;

    padding: 14px 16px;

    background:
        linear-gradient(
            135deg,
            var(--bg-2) 0%,
            color-mix(
                in srgb,
                var(--bg-2) 72%,
                var(--bg-3)
            ) 100%
        );

    border: 1px solid var(--border-1);
    border-radius: 15px;

    cursor: pointer;

    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.order-item:hover {
    transform: translateY(-1px);

    border-color:
        color-mix(
            in srgb,
            var(--border-1) 45%,
            var(--text-3)
        );

    box-shadow:
        0 8px 22px
        color-mix(
            in srgb,
            var(--text-1) 6%,
            transparent
        );
}


/* =========================================================
   ICON
========================================================= */

.order-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    color: var(--text-2);

    background: var(--bg-3);

    border: 1px solid var(--border-1);
    border-radius: 13px;

    font-size: 19px;
}


/* =========================================================
   CONTENT
========================================================= */

.order-item-content {
    min-width: 0;

    flex: 1;
}


.order-item-title {
    margin-bottom: 4px;

    color: var(--text-1);

    font-size: 15px;
    font-weight: 650;
}


.order-item-token {
    overflow: hidden;

    color: var(--text-3);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 12px;

    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   ARROW
========================================================= */

.order-item-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    color: var(--text-3);

    border-radius: 9px;

    transition:
        color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}


.order-item:hover .order-item-arrow {
    color: var(--text-1);

    background: var(--bg-3);

    transform: translateX(2px);
}


/* =========================================================
   EMPTY
========================================================= */

.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 260px;

    padding: 40px 20px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--bg-1),
            color-mix(
                in srgb,
                var(--bg-1) 68%,
                var(--bg-3)
            )
        );

    border: 1px dashed var(--border-1);
    border-radius: 16px;
}


.orders-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin-bottom: 16px;

    color: var(--text-2);

    background: var(--bg-2);

    border: 1px solid var(--border-1);
    border-radius: 18px;

    font-size: 29px;

    box-shadow:
        0 8px 24px
        color-mix(
            in srgb,
            var(--text-1) 6%,
            transparent
        );
}


.orders-empty-title {
    margin-bottom: 5px;

    color: var(--text-1);

    font-size: 17px;
    font-weight: 700;
}


.orders-empty-text {
    color: var(--text-3);

    font-size: 13px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .orders-card {
        margin-bottom: 40px;

        border-radius: 16px;
    }


    .orders-card-body {
        padding: 18px;
    }


    .orders-header {
        gap: 11px;

        margin-bottom: 20px;
    }


    .orders-header-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        border-radius: 11px;

        font-size: 18px;
    }


    .orders-title {
        font-size: 18px;
    }


    .orders-subtitle {
        font-size: 12px;
    }


    .order-item {
        min-height: 74px;

        gap: 12px;

        padding: 12px 13px;

        border-radius: 13px;
    }


    .order-item:hover {
        transform: none;

        box-shadow: none;
    }


    .order-item-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        border-radius: 11px;

        font-size: 17px;
    }


    .order-item-title {
        font-size: 14px;
    }


    .order-item-token {
        max-width: 220px;

        font-size: 11px;
    }


    .order-item-arrow {
        width: 30px;
        height: 30px;

        flex-basis: 30px;
    }


    .orders-empty {
        min-height: 220px;

        padding: 34px 18px;
    }


    .orders-empty-icon {
        width: 58px;
        height: 58px;

        margin-bottom: 14px;

        border-radius: 16px;

        font-size: 25px;
    }

}


/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 420px) {

    .order-item-token {
        max-width: 160px;
    }

}