.p2p-table-shell {
    --p2p-table-border: #e5e9f2;
    --p2p-table-header: #edf2fb;
    --p2p-table-text: #1d2433;
    --p2p-table-muted: #667085;
    --p2p-table-primary: #2149d8;
    --p2p-table-primary-hover: #1738ad;
    width: 100%;
    max-width: 100%;
    color: var(--p2p-table-text);
    box-sizing: border-box;
}

.p2p-table-shell *,
.p2p-table-shell *::before,
.p2p-table-shell *::after {
    box-sizing: border-box;
}

.p2p-table-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.p2p-table-search {
    position: relative;
    display: block;
    width: min(100%, 250px);
}

.p2p-table-search input {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 9px 14px 9px 42px;
    border: 1px solid #d5dae4;
    border-radius: 4px;
    background: #fff;
    color: var(--p2p-table-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.p2p-table-search input:focus {
    border-color: var(--p2p-table-primary);
    box-shadow: 0 0 0 3px rgba(33, 73, 216, .12);
}

.p2p-table-search__icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 15px;
    height: 15px;
    border: 2px solid #667085;
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.p2p-table-search__icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #667085;
    transform: rotate(45deg);
    transform-origin: left center;
}

.p2p-table-status {
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--p2p-table-border);
    border-radius: 5px;
    background: #fff;
    color: var(--p2p-table-muted);
    text-align: center;
    font-size: 14px;
}

.p2p-table-status[hidden] {
    display: none !important;
}

.p2p-table-status[data-state="error"] {
    border-color: #f1b7b7;
    background: #fff6f6;
    color: #a12626;
}

.p2p-table-status[data-state="empty"] {
    background: #fafbfc;
}

.p2p-table-shell .tabulator {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--p2p-table-border);
    border-radius: 4px;
    background: #fff;
    color: var(--p2p-table-text);
    font-family: inherit;
    font-size: 15px;
}

.p2p-table-shell .tabulator .tabulator-header {
    border-bottom: 1px solid var(--p2p-table-border);
    background: var(--p2p-table-header);
    color: #20283a;
    font-weight: 600;
}

/* Global P2P table pagination parity.
 * Marketplace already had this contract under its own table scope.
 * Keep the same neutral pagination treatment for every front-end P2P
 * Tabulator table so browser button defaults never leak into the UI.
 */
.p2p-table-shell .tabulator-footer,
.p2p-table-shell .tabulator-footer .tabulator-paginator,
.p2p-table-shell .tabulator-footer .tabulator-pages {
    font-family: inherit !important;
}

.p2p-table-shell .tabulator-footer .tabulator-page,
.p2p-table-shell .tabulator-footer .tabulator-page-size {
    min-height: 34px;
    border: 1px solid #d7dce5;
    border-radius: 3px;
    background: #fff;
    color: #344054;
    font: inherit !important;
    font-variant-numeric: tabular-nums;
}

.p2p-table-shell .tabulator-footer .tabulator-page.active {
    border-color: #98a2b3;
    background: #f2f4f7;
    color: #101828;
    font-weight: 600;
}

.p2p-table-shell .tabulator-footer .tabulator-page:not(.active):not([disabled]):hover,
.p2p-table-shell .tabulator-footer .tabulator-page:not(.active):not([disabled]):focus-visible {
    border-color: #b8c0cc;
    background: #f8f9fb;
    color: #101828;
}

.p2p-table-shell .tabulator-footer .tabulator-page[disabled] {
    border-color: #e4e7ec;
    background: #fff;
    color: #98a2b3;
    opacity: 1;
}

.p2p-table-shell .tabulator .tabulator-header .tabulator-col {
    min-height: 44px;
    border-right: 0;
    background: transparent;
}

.p2p-table-shell .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 12px 16px;
}

.p2p-table-shell .tabulator-row {
    min-height: 92px;
    border-bottom: 1px solid var(--p2p-table-border);
    background: #fff;
}

.p2p-table-shell .tabulator-row:last-child {
    border-bottom: 0;
}

.p2p-table-shell .tabulator-row:hover {
    background: #fbfcff;
}

.p2p-table-shell .tabulator-row .tabulator-cell {
    display: inline-flex;
    align-items: center;
    min-height: 92px;
    padding: 12px 16px;
    border-right: 0;
    white-space: normal;
    line-height: 1.4;
}

.p2p-game-image {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eff2f7;
    flex: 0 0 68px;
}

.p2p-game-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p2p-game-name {
    display: block;
    width: 100%;
    color: var(--p2p-table-text);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.p2p-table-action {
    display: inline-flex;
    min-height: 42px;
    min-width: 145px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--p2p-table-primary);
    border-radius: 5px;
    background: var(--p2p-table-primary);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.p2p-table-action:hover,
.p2p-table-action:focus-visible {
    border-color: var(--p2p-table-primary-hover);
    background: var(--p2p-table-primary-hover);
    color: #fff !important;
    text-decoration: none !important;
}

.p2p-table-action:focus-visible {
    outline: 3px solid rgba(33, 73, 216, .2);
    outline-offset: 2px;
}

.p2p-table-shell.is-loading .tabulator {
    opacity: .58;
    pointer-events: none;
}

.p2p-table-notice {
    padding: 12px 14px;
    border: 1px solid var(--p2p-table-border);
    border-radius: 5px;
    background: #fff;
}

.p2p-table-notice--error {
    border-color: #f1b7b7;
    background: #fff6f6;
    color: #a12626;
}

@media (max-width: 640px) {
    .p2p-table-toolbar {
        justify-content: stretch;
        margin-bottom: 12px;
    }

    .p2p-table-search {
        width: 100%;
    }

    .p2p-table-search input {
        min-height: 42px;
        font-size: 16px;
    }

    .p2p-table-shell .tabulator {
        font-size: 13px;
    }

    .p2p-table-shell .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
        padding: 10px 8px;
    }

    .p2p-table-shell .tabulator-row,
    .p2p-table-shell .tabulator-row .tabulator-cell {
        min-height: 78px;
    }

    .p2p-table-shell .tabulator-row .tabulator-cell {
        padding: 9px 8px;
    }

    .p2p-game-image {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .p2p-game-name {
        font-size: 13px;
        line-height: 1.35;
    }

    .p2p-table-action {
        width: 100%;
        min-width: 0;
        min-height: 38px;
        padding: 8px 9px;
        font-size: 12px;
        white-space: normal;
    }
}

@media (max-width: 390px) {
    .p2p-table-shell .tabulator-row .tabulator-cell {
        padding-right: 5px;
        padding-left: 5px;
    }

    .p2p-game-image {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .p2p-game-name {
        font-size: 12px;
    }

    .p2p-table-action {
        padding: 7px 6px;
        font-size: 11px;
    }
}


/* Marketplace game directory mobile cards */
.p2p-table-shell--marketplace_games.is-mobile-table .tabulator {
    overflow: visible;
    border: 0;
    background: transparent;
}

.p2p-table-shell--marketplace_games.is-mobile-table .tabulator .tabulator-header {
    display: none;
}

.p2p-table-shell--marketplace_games.is-mobile-table .tabulator-row,
.p2p-table-shell--marketplace_games.is-mobile-table .tabulator-row .tabulator-cell {
    display: block;
    width: 100% !important;
    min-height: 0;
    padding: 0;
    border: 0;
}

.p2p-table-shell--marketplace_games.is-mobile-table .tabulator-row {
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid var(--p2p-table-border);
    border-radius: 8px;
    background: #fff;
}

.p2p-table-shell--marketplace_games.is-mobile-table .tabulator-tableholder,
.p2p-table-shell--marketplace_games.is-mobile-table .tabulator-table {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
}

.p2p-game-card {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    color: var(--p2p-table-text);
}

.p2p-game-card__identity {
    display: grid;
    min-width: 0;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.p2p-game-card__image {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eff2f7;
}

.p2p-game-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p2p-game-card__name {
    min-width: 0;
    color: var(--p2p-table-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.p2p-game-card__action {
    width: 100%;
    min-width: 0;
}

@media (max-width: 390px) {
    .p2p-game-card {
        gap: 12px;
        padding: 12px;
    }

    .p2p-game-card__identity {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
    }

    .p2p-game-card__image {
        width: 46px;
        height: 46px;
    }

    .p2p-game-card__name {
        font-size: 13px;
    }
}


/* PL-105 final review: Marketplace must use the site's primary theme font.
 * The theme already loads "Barlow Semi Condensed"; this only makes the
 * Marketplace table and its native controls inherit that exact family instead
 * of browser/Tabulator defaults.
 */
.p2p-table-shell--marketplace_listings,
.p2p-table-shell--marketplace_listings .tabulator,
.p2p-table-shell--marketplace_listings input,
.p2p-table-shell--marketplace_listings select,
.p2p-table-shell--marketplace_listings button,
.p2p-table-shell--marketplace_listings textarea {
    font-family: "Barlow Semi Condensed", sans-serif !important;
}

/* Marketplace listings filters */
.p2p-table-toolbar--filters {
    display: block;
    margin-bottom: 34px;
}

.p2p-table-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(145px, 1fr));
    gap: 22px 36px;
    align-items: end;
    width: 100%;
}

.p2p-table-filter {
    min-width: 0;
}

.p2p-table-filter__label {
    display: block;
    margin: 0 0 7px;
    color: var(--p2p-table-muted);
    font-size: 12px;
    line-height: 1.35;
}

.p2p-table-filter__control {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 28px 8px 0;
    border: 0;
    border-bottom: 1px solid #cfd5df;
    border-radius: 0;
    background-color: transparent;
    color: var(--p2p-table-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
}

select.p2p-table-filter__control {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23344054' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    background-size: 14px 8px !important;
}

.p2p-searchable-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.p2p-searchable-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.p2p-searchable-select__input {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 8px 30px 8px 4px;
    border: 0;
    border-bottom: 1px solid #cfd5df;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23344054' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 14px 8px;
    color: var(--p2p-table-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
}

.p2p-searchable-select__input::-webkit-search-decoration,
.p2p-searchable-select__input::-webkit-search-cancel-button,
.p2p-searchable-select__input::-webkit-search-results-button,
.p2p-searchable-select__input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.p2p-searchable-select__input:focus,
.p2p-searchable-select.is-open .p2p-searchable-select__input {
    border-bottom-color: var(--p2p-table-primary);
    box-shadow: 0 1px 0 var(--p2p-table-primary);
}

.p2p-searchable-select__input::placeholder {
    color: #2f3540;
    opacity: 1;
}

.p2p-searchable-select__list {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    max-height: 250px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #d7dce5;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .14);
}

.p2p-searchable-select__list[hidden] {
    display: none !important;
}

.p2p-searchable-select__option {
    display: block;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #2f3540;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.p2p-searchable-select__option:hover,
.p2p-searchable-select__option.is-active {
    background: #f1f5fb;
    color: #1d2433;
}

.p2p-searchable-select__option[aria-selected="true"] {
    font-weight: 600;
}

.p2p-searchable-select__empty {
    padding: 10px;
    color: var(--p2p-table-muted);
    font-size: 13px;
    text-align: center;
}

.p2p-table-filter__control:focus {
    border-bottom-color: var(--p2p-table-primary);
    box-shadow: 0 1px 0 var(--p2p-table-primary);
}

.p2p-table-filter__control::placeholder {
    color: #9aa2b1;
}

.p2p-table-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #d6dce6;
    border-radius: 7px;
    background: #fff;
}

.p2p-table-toggle__button {
    min-width: 52px;
    margin: 0;
    padding: 8px 13px;
    border: 0;
    border-right: 1px solid #d6dce6;
    border-radius: 0;
    background: #fff;
    color: #344054;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
}

.p2p-table-toggle__button:last-child {
    border-right: 0;
}

.p2p-table-toggle__button.is-active {
    background: #2fbd8a;
    color: #fff;
}

.p2p-table-shell--marketplace_listings .p2p-table-toggle__button[data-value="Sell"].is-active {
    background: #F6465D;
    color: #fff;
}

.p2p-table-toggle__button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(47, 189, 138, .22);
    outline-offset: -1px;
}

.p2p-table-clear {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #f3c300;
    border-radius: 2px;
    background: #ffd326;
    color: #202020;
    font: inherit;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
}

.p2p-table-clear:hover,
.p2p-table-clear:focus-visible {
    background: #f5c900;
    border-color: #e8bd00;
}

/* Marketplace listings desktop cells */
.p2p-table-shell--marketplace_listings .tabulator {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.p2p-table-shell--marketplace_listings .tabulator .tabulator-header {
    background: transparent;
}

.p2p-table-shell--marketplace_listings .tabulator-row {
    min-height: 86px;
}

.p2p-table-shell--marketplace_listings .tabulator-row .tabulator-cell {
    min-height: 86px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.p2p-listing-user,
.p2p-listing-server,
.p2p-listing-limits,
.p2p-listing-delivery {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    line-height: 1.35;
}

.p2p-listing-user__name {
    color: #1687ee !important;
    text-decoration: none !important;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.p2p-listing-user__metrics,
.p2p-listing-server,
.p2p-listing-limits,
.p2p-listing-delivery {
    color: #2f3540;
    font-size: 13px;
}

.p2p-listing-price {
    color: #2f3540;
    font-size: 13px;
    white-space: nowrap;
}

.p2p-listing-delivery span:first-child {
    overflow-wrap: anywhere;
}

.p2p-listing-action {
    min-width: 74px;
    min-height: 42px;
    border-color: #2fbd8a;
    background: #2fbd8a;
    font-weight: 500;
}

.p2p-listing-action:hover,
.p2p-listing-action:focus-visible {
    border-color: #27a678;
    background: #27a678;
}

.p2p-listing-action.is-sell {
    border-color: #F6465D;
    background: #F6465D;
}

.p2p-listing-action.is-sell:hover,
.p2p-listing-action.is-sell:focus-visible {
    border-color: #dc3d52;
    background: #dc3d52;
}

.p2p-table-shell--marketplace_listings .tabulator-footer {
    border-top: 1px solid var(--p2p-table-border);
    background: transparent;
}

.p2p-table-shell--marketplace_listings .tabulator-footer .tabulator-page,
.p2p-table-shell--marketplace_listings .tabulator-footer .tabulator-page-size {
    min-height: 34px;
    border: 1px solid #d7dce5;
    border-radius: 3px;
    background: #fff;
    color: #344054;
    font: inherit;
}

/* PL-105 final UI review:
 * Red is reserved for Sell semantics. Pagination uses a neutral active state.
 */
.p2p-table-shell--marketplace_listings .tabulator-footer .tabulator-page.active {
    border-color: #98a2b3;
    background: #f2f4f7;
    color: #101828;
    font-weight: 600;
}

.p2p-table-shell--marketplace_listings .tabulator-footer .tabulator-page:not(.active):hover,
.p2p-table-shell--marketplace_listings .tabulator-footer .tabulator-page:not(.active):focus-visible {
    border-color: #b8c0cc;
    background: #f8f9fb;
    color: #101828;
}

/* Mobile listing card */
.p2p-table-shell--marketplace_listings.is-mobile-table .tabulator .tabulator-header {
    display: none;
}

.p2p-table-shell--marketplace_listings.is-mobile-table .tabulator-row,
.p2p-table-shell--marketplace_listings.is-mobile-table .tabulator-row .tabulator-cell {
    display: block;
    width: 100% !important;
    min-height: 0;
    padding: 0;
    border: 0;
}

.p2p-table-shell--marketplace_listings.is-mobile-table .tabulator-row {
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--p2p-table-border);
    border-radius: 8px;
    background: #fff;
}

.p2p-table-shell--marketplace_listings.is-mobile-table .tabulator-tableholder,
.p2p-table-shell--marketplace_listings.is-mobile-table .tabulator-table {
    width: 100% !important;
    min-width: 0 !important;
}

.p2p-listing-card {
    display: block;
    width: 100%;
    padding: 16px;
    color: var(--p2p-table-text);
}

.p2p-listing-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid #edf0f4;
}

.p2p-listing-card__header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.p2p-listing-card__header strong,
.p2p-listing-card__header a {
    color: #1687ee;
    font-size: 15px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.p2p-listing-card__header span {
    color: var(--p2p-table-muted);
    font-size: 12px;
}

.p2p-listing-card__price {
    flex: 0 0 auto;
    color: var(--p2p-table-text) !important;
    font-size: 14px !important;
    font-weight: 600;
    white-space: nowrap;
}

.p2p-listing-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
    margin: 15px 0;
}

.p2p-listing-card__details > div {
    min-width: 0;
}

.p2p-listing-card__details dt {
    margin: 0 0 4px;
    color: var(--p2p-table-muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.p2p-listing-card__details dd {
    margin: 0;
    color: #2f3540;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.p2p-listing-card__wide {
    grid-column: 1 / -1;
}

.p2p-listing-action--full {
    width: 100%;
}

@media (max-width: 980px) {
    .p2p-table-filters {
        grid-template-columns: repeat(3, minmax(145px, 1fr));
        gap: 18px 24px;
    }
}

@media (max-width: 820px) {
    .p2p-table-toolbar--filters {
        margin-bottom: 20px;
    }

    .p2p-table-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .p2p-table-filter--clear {
        align-self: end;
    }

    .p2p-table-clear {
        width: 100%;
    }

    .p2p-table-shell--marketplace_listings .tabulator {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .p2p-table-shell--marketplace_listings .tabulator-footer {
        border: 1px solid var(--p2p-table-border);
        border-radius: 6px;
        background: #fff;
    }
}

@media (max-width: 520px) {
    .p2p-table-filters {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .p2p-table-filter__label {
        margin-bottom: 5px;
    }

    .p2p-table-filter__control,
    .p2p-table-toggle,
    .p2p-table-clear {
        width: 100%;
    }

    .p2p-table-toggle__button {
        flex: 1 1 50%;
    }

    .p2p-listing-card {
        padding: 14px;
    }

    .p2p-listing-card__header {
        gap: 10px;
    }

    .p2p-listing-card__details {
        grid-template-columns: 1fr;
    }

    .p2p-listing-card__wide {
        grid-column: auto;
    }
}

/* Wallet transactions */
.p2p-table-shell--wallet_transactions .p2p-table-toolbar--filters {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 30px;
}

.p2p-table-shell--wallet_transactions .p2p-table-search {
    align-self: flex-end;
    width: min(100%, 255px);
}

.p2p-table-shell--wallet_transactions .p2p-table-filters {
    grid-template-columns: repeat(5, minmax(145px, 1fr)) auto;
    gap: 20px 34px;
}

.p2p-table-filter__date-range {
    display: grid;
    gap: 6px;
}

.p2p-table-filter__date-range label {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: var(--p2p-table-muted);
    font-size: 12px;
}

.p2p-table-filter__date-range .p2p-table-filter__control {
    min-height: 34px;
    padding: 4px 0;
    color: var(--p2p-table-text);
}

.p2p-table-shell--wallet_transactions .tabulator {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.p2p-table-shell--wallet_transactions .tabulator .tabulator-header,
.p2p-table-shell--wallet_transactions .tabulator-footer {
    background: transparent;
}

.p2p-table-shell--wallet_transactions .tabulator-row,
.p2p-table-shell--wallet_transactions .tabulator-row .tabulator-cell {
    min-height: 58px;
}

.p2p-wallet-amount,
.p2p-wallet-balance,
.p2p-wallet-date {
    font-variant-numeric: tabular-nums;
}

.p2p-wallet-amount.is-credit {
    color: #21a447;
}

.p2p-wallet-amount.is-debit {
    color: #ef3340;
}

.p2p-table-shell--wallet_transactions.is-mobile-table .tabulator .tabulator-header {
    display: none;
}

.p2p-table-shell--wallet_transactions.is-mobile-table .tabulator-row,
.p2p-table-shell--wallet_transactions.is-mobile-table .tabulator-row .tabulator-cell {
    display: block;
    width: 100% !important;
    min-height: 0;
    padding: 0;
    border: 0;
}

.p2p-table-shell--wallet_transactions.is-mobile-table .tabulator-row {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--p2p-table-border);
    border-radius: 8px;
    background: #fff;
}

.p2p-table-shell--wallet_transactions.is-mobile-table .tabulator-tableholder,
.p2p-table-shell--wallet_transactions.is-mobile-table .tabulator-table {
    width: 100% !important;
    min-width: 0 !important;
}

.p2p-wallet-card {
    width: 100%;
    padding: 15px;
}

.p2p-wallet-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--p2p-table-border);
}

.p2p-wallet-card header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.p2p-wallet-card header strong {
    font-size: 14px;
}

.p2p-wallet-card header span:not(.p2p-wallet-amount) {
    color: var(--p2p-table-muted);
    font-size: 12px;
}

.p2p-wallet-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 13px 0 0;
}

.p2p-wallet-card dl > div {
    min-width: 0;
}

.p2p-wallet-card dt {
    margin-bottom: 3px;
    color: var(--p2p-table-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.p2p-wallet-card dd {
    margin: 0;
    color: var(--p2p-table-text);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.p2p-wallet-card__wide {
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    .p2p-table-shell--wallet_transactions .p2p-table-filters {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 760px) {
    .p2p-table-shell--wallet_transactions .p2p-table-toolbar--filters {
        gap: 18px;
    }

    .p2p-table-shell--wallet_transactions .p2p-table-search {
        align-self: stretch;
        width: 100%;
    }

    .p2p-table-shell--wallet_transactions .p2p-table-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .p2p-table-shell--wallet_transactions .p2p-table-filter--date_range,
    .p2p-table-shell--wallet_transactions .p2p-table-filter--clear {
        grid-column: 1 / -1;
    }

    .p2p-table-shell--wallet_transactions .p2p-table-clear {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .p2p-table-shell--wallet_transactions .p2p-table-filters {
        grid-template-columns: 1fr;
    }

    .p2p-table-shell--wallet_transactions .p2p-table-filter--date_range,
    .p2p-table-shell--wallet_transactions .p2p-table-filter--clear {
        grid-column: auto;
    }
}

/* My active orders */
.p2p-table-shell--my_active_orders .tabulator {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.p2p-table-shell--my_active_orders .tabulator .tabulator-header,
.p2p-table-shell--my_active_orders .tabulator-footer {
    background: transparent;
}

.p2p-table-shell--my_active_orders .tabulator-row,
.p2p-table-shell--my_active_orders .tabulator-row .tabulator-cell {
    min-height: 58px;
}

.p2p-active-order-date {
    font-variant-numeric: tabular-nums;
}

.p2p-active-order-status,
.p2p-active-order-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.p2p-active-order-status {
    background: #eef2f7;
    color: #394456;
}

.p2p-active-order-status--processing,
.p2p-active-order-status--awaiting-buyer {
    background: #fff4cf;
    color: #725800;
}

.p2p-active-order-status--on-hold {
    background: #eef1f5;
    color: #4a5565;
}

.p2p-active-order-status--disputed {
    background: #ffe7e9;
    color: #a3222d;
}

.p2p-active-order-category.is-buy {
    background: #ddf8ee;
    color: #117353;
}

.p2p-active-order-category.is-sell {
    background: #e9efff;
    color: #2f55a4;
}

.p2p-table-shell--my_active_orders.is-mobile-table .tabulator .tabulator-header {
    display: none;
}

.p2p-table-shell--my_active_orders.is-mobile-table .tabulator-row,
.p2p-table-shell--my_active_orders.is-mobile-table .tabulator-row .tabulator-cell {
    display: block;
    width: 100% !important;
    min-height: 0;
    padding: 0;
    border: 0;
}

.p2p-table-shell--my_active_orders.is-mobile-table .tabulator-row {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--p2p-table-border);
    border-radius: 8px;
    background: #fff;
}

.p2p-table-shell--my_active_orders.is-mobile-table .tabulator-tableholder,
.p2p-table-shell--my_active_orders.is-mobile-table .tabulator-table {
    width: 100% !important;
    min-width: 0 !important;
}

.p2p-active-order-card {
    width: 100%;
    padding: 15px;
}

.p2p-active-order-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--p2p-table-border);
}

.p2p-active-order-card header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.p2p-active-order-card header strong {
    color: var(--p2p-table-text);
    font-size: 14px;
}

.p2p-active-order-card header > div > span {
    color: var(--p2p-table-muted);
    font-size: 12px;
}

.p2p-active-order-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 13px 0;
    color: var(--p2p-table-muted);
    font-size: 12px;
}

.p2p-active-order-card__action {
    width: 100%;
}

/* PL-108: Active Orders keeps its own filters but mirrors the Order History toolbar rhythm. */
.p2p-table-shell--my_active_orders .p2p-table-toolbar--filters {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 28px;
}

.p2p-table-shell--my_active_orders .p2p-table-search {
    align-self: flex-end;
    width: min(100%, 255px);
}

.p2p-table-shell--my_active_orders .p2p-table-filters {
    grid-template-columns: minmax(210px, 1.25fr) minmax(165px, 1fr) auto minmax(165px, 1fr) minmax(150px, .9fr) auto;
    gap: 20px 32px;
}

.p2p-table-shell--my_active_orders .p2p-table-filter--toggle {
    min-width: 128px;
}

@media (max-width: 1180px) {
    .p2p-table-shell--my_active_orders .p2p-table-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .p2p-table-shell--my_active_orders .p2p-table-filter--date_range {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .p2p-table-shell--my_active_orders .p2p-table-toolbar--filters {
        gap: 18px;
    }

    .p2p-table-shell--my_active_orders .p2p-table-search {
        align-self: stretch;
        width: 100%;
    }

    .p2p-table-shell--my_active_orders .p2p-table-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .p2p-table-shell--my_active_orders .p2p-table-filter--date_range,
    .p2p-table-shell--my_active_orders .p2p-table-filter--clear {
        grid-column: 1 / -1;
    }

    .p2p-table-shell--my_active_orders .p2p-table-clear {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .p2p-table-shell--my_active_orders .p2p-table-filters {
        grid-template-columns: 1fr;
    }

    .p2p-table-shell--my_active_orders .p2p-table-filter--date_range,
    .p2p-table-shell--my_active_orders .p2p-table-filter--clear {
        grid-column: auto;
    }
}

/* Order history */
.p2p-table-shell--order_history .p2p-table-toolbar--filters {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 28px;
}

.p2p-table-shell--order_history .p2p-table-search {
    align-self: flex-end;
    width: min(100%, 255px);
}

.p2p-table-shell--order_history .p2p-table-filters {
    grid-template-columns: minmax(210px, 1.25fr) repeat(2, minmax(165px, 1fr)) minmax(150px, 0.9fr) auto;
    gap: 20px 32px;
}

.p2p-table-shell--order_history .tabulator {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.p2p-table-shell--order_history .tabulator .tabulator-header,
.p2p-table-shell--order_history .tabulator-footer {
    background: transparent;
}

.p2p-table-shell--order_history .tabulator-row,
.p2p-table-shell--order_history .tabulator-row .tabulator-cell {
    min-height: 58px;
}

.p2p-order-history-date,
.p2p-order-history-price,
.p2p-order-history-quantity {
    font-variant-numeric: tabular-nums;
}

.p2p-order-history-type,
.p2p-order-history-role,
.p2p-order-history-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.p2p-order-history-type.is-buy {
    background: #ddf8ee;
    color: #117353;
}

.p2p-order-history-type.is-sell {
    background: #e9efff;
    color: #2f55a4;
}

.p2p-order-history-role.is-maker {
    background: #fff4cf;
    color: #725800;
}

.p2p-order-history-role.is-taker {
    background: #eef2f7;
    color: #394456;
}

.p2p-order-history-status {
    background: #eef2f7;
    color: #394456;
}

.p2p-order-history-status--processing,
.p2p-order-history-status--awaiting-payment,
.p2p-order-history-status--payment-sent {
    background: #fff4cf;
    color: #725800;
}

.p2p-order-history-status--completed {
    background: #ddf8ee;
    color: #117353;
}

.p2p-order-history-status--cancelled,
.p2p-order-history-status--failed,
.p2p-order-history-status--refunded,
.p2p-order-history-status--payment-disputed {
    background: #ffe7e9;
    color: #a3222d;
}

.p2p-order-history-counterparty {
    overflow-wrap: anywhere;
}

.p2p-table-shell--order_history.is-mobile-table .tabulator .tabulator-header {
    display: none;
}

.p2p-table-shell--order_history.is-mobile-table .tabulator-row,
.p2p-table-shell--order_history.is-mobile-table .tabulator-row .tabulator-cell {
    display: block;
    width: 100% !important;
    min-height: 0;
    padding: 0;
    border: 0;
}

.p2p-table-shell--order_history.is-mobile-table .tabulator-row {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--p2p-table-border);
    border-radius: 8px;
    background: #fff;
}

.p2p-table-shell--order_history.is-mobile-table .tabulator-tableholder,
.p2p-table-shell--order_history.is-mobile-table .tabulator-table {
    width: 100% !important;
    min-width: 0 !important;
}

.p2p-order-history-card {
    width: 100%;
    padding: 15px;
}

.p2p-order-history-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--p2p-table-border);
}

.p2p-order-history-card header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.p2p-order-history-card header strong {
    color: var(--p2p-table-text);
    font-size: 14px;
}

.p2p-order-history-card header > div > span {
    color: var(--p2p-table-muted);
    font-size: 12px;
}

.p2p-order-history-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 13px 0;
}

.p2p-order-history-card dl > div {
    min-width: 0;
}

.p2p-order-history-card dt {
    margin-bottom: 4px;
    color: var(--p2p-table-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.p2p-order-history-card dd {
    margin: 0;
    color: var(--p2p-table-text);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.p2p-order-history-card__wide {
    grid-column: 1 / -1;
}

.p2p-order-history-card__action {
    width: 100%;
}

@media (max-width: 1180px) {
    .p2p-table-shell--order_history .p2p-table-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .p2p-table-shell--order_history .p2p-table-filter--date_range {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .p2p-table-shell--order_history .p2p-table-toolbar--filters {
        gap: 18px;
    }

    .p2p-table-shell--order_history .p2p-table-search {
        align-self: stretch;
        width: 100%;
    }

    .p2p-table-shell--order_history .p2p-table-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .p2p-table-shell--order_history .p2p-table-filter--date_range,
    .p2p-table-shell--order_history .p2p-table-filter--clear {
        grid-column: 1 / -1;
    }

    .p2p-table-shell--order_history .p2p-table-clear {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .p2p-table-shell--order_history .p2p-table-filters {
        grid-template-columns: 1fr;
    }

    .p2p-table-shell--order_history .p2p-table-filter--date_range,
    .p2p-table-shell--order_history .p2p-table-filter--clear {
        grid-column: auto;
    }

    .p2p-order-history-card header {
        flex-direction: column;
    }

    .p2p-order-history-card dl {
        grid-template-columns: 1fr;
    }

    .p2p-order-history-card__wide {
        grid-column: auto;
    }
}
