.aept-table-wrap {
    width: 100%;
    overflow: hidden;
    background: #0f141a;
    border: 1px solid #2a3139;
    border-radius: 16px;
}

.aept-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.aept-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    margin: 0;
}

.aept-table th,
.aept-table td {
    border: 0;
    text-align: left;
    line-height: 1.35;
}

.aept-table thead th {
    padding: 18px 20px;
    color: #bfc6ce;
    background: #1a2026;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.aept-table tbody td {
    padding: 18px 20px;
    color: #f2f4f7;
    background-color: transparent;
    font-size: 16px;
    font-weight: 400;
    border-bottom: 0 solid #2a3139;
    transition: background-color .2s ease, color .2s ease;
}

.aept-table tbody tr:not(:last-child) td {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #2a3139;
}

.aept-table tbody tr:hover td {
    background-color: #141b22;
}

.aept-col-unit,
.aept-col-total,
.aept-col-price {
    font-weight: 700;
}

.aept-col-unit {
    font-size: 18px;
    color: #fff;
}

.aept-col-price {
    color: #ff6a21;
}

.aept-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid #6e351b;
    border-radius: 50px;
    color: #ff6a21;
    background: rgba(255, 106, 33, .08);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.aept-status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    display: inline-block;
    border-radius: 50%;
    background: #ff6a21;
}

.aept-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff6a21;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.aept-action:hover,
.aept-action:focus {
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.aept-nowrap-featured-yes .aept-col-price,
.aept-nowrap-featured-yes .aept-col-status,
.aept-nowrap-featured-yes .aept-col-action,
.aept-nowrap-featured-yes .aept-col-stamp-duty {
    white-space: nowrap;
}

.aept-table-scroll:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

@media (max-width: 767px) {
    .aept-mobile-layout-scroll .aept-table-scroll {
        -webkit-overflow-scrolling: touch;
    }

    .aept-mobile-layout-cards .aept-table-wrap,
    .aept-mobile-layout-cards .aept-table-scroll {
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .aept-mobile-layout-cards .aept-table {
        display: block;
        min-width: 0 !important;
        width: 100%;
    }

    .aept-mobile-layout-cards .aept-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .aept-mobile-layout-cards .aept-table tbody,
    .aept-mobile-layout-cards .aept-table tr,
    .aept-mobile-layout-cards .aept-table td {
        display: block;
        width: 100%;
    }

    .aept-mobile-layout-cards .aept-table tbody tr {
        overflow: hidden;
        margin-bottom: 16px;
        background: #0f141a;
        border: 1px solid #2a3139;
        border-radius: 14px;
    }

    .aept-mobile-layout-cards .aept-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .aept-mobile-layout-cards .aept-table tbody td,
    .aept-mobile-layout-cards .aept-table tbody tr:not(:last-child) td {
        display: grid;
        grid-template-columns: minmax(105px, 42%) 1fr;
        gap: 14px;
        align-items: center;
        padding: 13px 16px;
        border-bottom: 1px solid #2a3139;
        text-align: right;
    }

    .aept-mobile-layout-cards .aept-table tbody td:last-child {
        border-bottom: 0;
    }

    .aept-mobile-layout-cards .aept-table td::before {
        content: attr(data-label);
        color: #9ca6b2;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.3;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: .7px;
    }

    .aept-mobile-layout-cards .aept-status,
    .aept-mobile-layout-cards .aept-action {
        justify-self: end;
    }
}
