.trade-table th:nth-child(1),
.trade-table th:nth-child(2) {
    width: 91px;
}

.trade-table th:nth-child(3) {
    width: 171px;
}

.trade-table th:nth-child(4) {
    width: 336px;
}

.trade-table th:nth-child(5) {
    width: 101px;
}

.money-page a.trade-view-link {
    color: #343434;
    cursor: pointer;
}

.money-page a.trade-view-link:hover {
    text-decoration: none;
}

.money-filters a {
    margin-left: 5px;
}

.trade-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1020;
    background-color: rgba(0, 0, 0, .8);
}

.trade-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1025;
    padding: 5px;
    background-color: #e1e1e1;
}

.trade-modal-title {
    height: 41px;
    color: #343434;
    font-size: 27px;
    font-weight: 600;
    line-height: 41px;
    text-align: center;
}

.trade-modal-body {
    position: relative;
    background-color: #fff;
}

.trade-modal-buttons {
    position: absolute;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.trade-modal-id {
    position: absolute;
    top: 6px;
    left: 8px;
    color: #999;
    font-size: 10px;
    line-height: 14px;
}

.trade-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: url("/img/trade/btn-x.png") 0 0 no-repeat;
    cursor: pointer;
}

.trade-close:hover {
    background-position: 0 -20px;
}

.trade-request {
    width: 603px;
    margin: -240px 0 0 -301px;
}

.trade-request .trade-modal-body {
    display: flex;
    height: 429px;
    padding: 15px 0 0 5px;
}

.trade-request .trade-modal-buttons {
    bottom: 13px;
}

.trade-request-partner {
    flex: none;
    box-sizing: content-box;
    width: 148px;
    height: 321px;
    border-right: 1px solid #ccc;
    text-align: center;
}

.trade-request-avatar {
    position: relative;
    width: 106px;
    height: 142px;
    margin: 19px auto 0;
}

.trade-request-avatar img {
    display: block;
    width: 106px;
    height: 142px;
    object-fit: contain;
}

.trade-club {
    position: absolute;
    bottom: 0;
    left: -6px;
    width: 52px;
    height: 28px;
    background: url("/img/bc/bc.svg") -52px 0 no-repeat;
}

.trade-club-tbc {
    background-position: -52px -28px;
}

.trade-club-obc {
    background-position: -52px -56px;
}

.trade-request-text {
    margin: 0 4px;
    color: #343434;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
}

.money-page .trade-request-text a {
    font-weight: 400;
}

.trade-request-expires {
    margin: 10px 0 0;
    color: #666;
    font-size: 11px;
    line-height: 15px;
}

.trade-request-offers {
    width: 417px;
    margin-left: 9px;
}

.trade-request-head,
.trade-offer-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.trade-request-head {
    width: 408px;
    height: 31px;
    padding: 2px 0 0 3px;
}

.trade-request-head h3 {
    margin: 0;
    color: #343434;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
}

.trade-value {
    color: #343434;
    font-size: 11px;
    line-height: 15px;
}

.trade-value img {
    width: 12px;
    height: 12px;
    margin: 0 2px 0 3px;
    vertical-align: -2px;
}

.trade-value b {
    color: #006800;
    font-size: 12px;
    font-weight: 700;
}

.trade-request-items {
    display: flex;
    flex-wrap: wrap;
    width: 415px;
}

.trade-request-item {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 76px;
    height: 94px;
    margin: 0 5px 4px 0;
    border: 1px solid #ccc;
    background-color: #fff;
    text-align: center;
}

.money-page a.trade-request-item:hover {
    text-decoration: none;
}

.trade-request-item span,
.trade-tile-name {
    display: block;
    height: 30px;
    margin: 3px auto 0;
    padding: 0 2px;
    overflow: hidden;
    color: #7b2cbf;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
}

.trade-request-item img,
.trade-tile-thumb {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    object-fit: contain;
}

.trade-request-item img.trade-limited-overlay,
.trade-tile img.trade-limited-overlay {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: auto;
    height: 11px;
    margin: 0;
    pointer-events: none;
}

.trade-request-divider {
    width: 414px;
    height: 15px;
    margin: 3px 0 10px -8px;
    background:
        url("/img/trade/trade-divider.png") center 0 no-repeat,
        linear-gradient(#a7a7a7, #a7a7a7) 0 6px / 100% 1px no-repeat;
}

.trade-confirm {
    width: 435px;
    margin: -137px 0 0 -217px;
}

.trade-confirm .trade-modal-title {
    height: 47px;
    letter-spacing: -1px;
    line-height: 50px;
}

.trade-confirm .trade-modal-body {
    height: 217px;
    padding: 21px 10px 0;
    text-align: center;
}

.trade-confirm p {
    margin: 0;
    color: #343434;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.trade-confirm .trade-modal-buttons {
    right: 6px;
    bottom: 20px;
    gap: 11px;
}

body:has(.trade-window) {
    overflow: hidden;
}

.trade-window {
    position: fixed;
    inset: 0;
    z-index: 1040;
    overflow: auto;
    background-color: #fff;
}

.trade-window ~ .trade-backdrop {
    z-index: 1045;
}

.trade-window ~ .trade-modal {
    z-index: 1050;
}

.trade-window-top {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 869px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 21px;
    font-size: 11px;
    line-height: 21px;
}

.trade-window-top strong {
    font-size: 15px;
    font-weight: 700;
}

.money-page .trade-window-top a {
    color: #343434;
}

.money-page a.trade-exit {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.trade-exit span {
    width: 20px;
    height: 20px;
    margin-left: 4px;
    background: url("/img/trade/btn-x.png") 0 0 no-repeat;
}

.trade-exit:hover span {
    background-position: 0 -20px;
}

.trade-offer-panel {
    position: absolute;
    top: 45px;
    left: 20px;
    width: 270px;
    height: 465px;
    padding: 13px 0 0;
    border: 1px solid #a7a7a7;
    background-color: #e1e1e1;
}

.trade-offer-head {
    height: 21px;
    margin: 0 4px 7px 5px;
}

.trade-offer-head h3 {
    margin: 0;
    color: #343434;
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
}

.trade-slots {
    display: flex;
    flex-wrap: wrap;
    padding: 0 2px;
}

.trade-slot {
    box-sizing: content-box;
    width: 60px;
    height: 60px;
    margin: 4px 2px 0;
    padding: 0;
    border: 1px solid #ccc;
    background-color: #fff;
}

button.trade-slot {
    cursor: pointer;
}

.trade-slot img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.trade-offer-divider {
    display: block;
    margin: 69px auto 12px;
}

.trade-send {
    position: absolute;
    bottom: 9px;
    left: 46px;
    width: 176px;
    height: 50px;
    padding: 0;
    border: 0;
    background: url("/img/trade/send-trade.png") 0 0 no-repeat;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

.trade-send:hover {
    background-position: 0 -50px;
}

.trade-send:disabled {
    opacity: .6;
    cursor: default;
}

.trade-window-error {
    position: absolute;
    top: 515px;
    left: 20px;
    width: 270px;
    padding: 5px;
    border: 1px solid #c00;
    background-color: #fae5e5;
    font-size: 12px;
    line-height: 17px;
}

.trade-inventories {
    position: absolute;
    top: 45px;
    left: 310px;
    width: 575px;
}

.trade-inventory {
    height: 263px;
}

.trade-inventory-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 21px;
}

.trade-inventory-head h3 {
    margin: 0;
    color: #343434;
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
}

.trade-inventory-head label {
    margin: 0 1px 0 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
}

.trade-inventory-head select {
    width: 58px;
    height: 16px;
    margin-left: 2px;
    padding: 0;
    border: 1px solid #a9a9a9;
    background-color: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
}

.trade-inventory-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    height: 208px;
}

.trade-tile-outer {
    padding: 4px 2px;
}

.trade-tile {
    position: relative;
    display: block;
    width: 78px;
    height: 96px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

.trade-tile-card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 78px;
    height: 96px;
    border: 1px solid #ccc;
    background-color: #fff;
    text-align: center;
}

.trade-tile.selected .trade-tile-card {
    background-color: #fde8e6;
}

.trade-tile-name {
    width: 69px;
}

.trade-tile-info,
.trade-tile-action {
    display: none;
}

.trade-tile:hover .trade-tile-card {
    top: -25px;
    left: -17px;
    z-index: 6;
    width: 111px;
    height: 207px;
}

.trade-tile:hover .trade-tile-name {
    width: 96%;
}

.trade-tile:hover .trade-tile-thumb {
    width: 83px;
    height: 83px;
    margin: 5px auto;
}

.trade-tile:hover .trade-tile-info {
    display: block;
    padding: 0 6px;
    font-size: 9px;
    line-height: 13px;
    text-align: left;
}

.trade-tile-info > span {
    display: block;
    color: #000;
}

.trade-tile-label {
    color: #666;
}

.trade-tile-data {
    color: #006c00;
}

.trade-tile:hover .trade-tile-action {
    display: block;
    width: 94px;
    height: 15px;
    margin: 6px auto 0;
    padding-top: 1px;
    border: 1px solid #a7a7a7;
    background: url("/img/trade/btn-silver-tile.png") repeat-x top;
    color: #000;
    font-size: 11px;
    line-height: 14px;
}

.trade-tile:hover .trade-tile-action:hover {
    border-color: #777;
    background-position: bottom;
}

.trade-tile:hover .trade-tile-action.disabled {
    border-color: #ccc;
    color: #a7a7a7;
}

.trade-inventory-empty {
    width: 100%;
    padding-top: 40px;
    color: #343434;
    font-size: 11px;
    text-align: center;
}

.trade-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-top: 10px;
    font-size: 11px;
}

.trade-pager > span {
    margin: 0 10px;
}

.trade-pager input {
    width: 18px;
    height: 20px;
    margin: 0 2px;
    padding: 0;
    border: 1px solid #a9a9a9;
    color: #343434;
    font-size: 12px;
    text-align: center;
}

.trade-pager button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: url("/img/trade/paging-arrows.png") 0 0 no-repeat;
    cursor: pointer;
}

.trade-pager .trade-pager-next:hover {
    background-position: 0 -24px;
}

.trade-pager .trade-pager-next:disabled {
    background-position: 0 -96px;
    cursor: default;
}

.trade-pager .trade-pager-prev {
    background-position: 0 -48px;
}

.trade-pager .trade-pager-prev:hover {
    background-position: 0 -72px;
}

.trade-pager .trade-pager-prev:disabled {
    background-position: 0 -120px;
    cursor: default;
}

.trade-inventory-divider {
    width: 574px;
    height: 15px;
    margin: 8px 0 0;
    border-top: 1px solid #a7a7a7;
}

@media (max-width: 991px) {
    .trade-window {
        padding: 10px;
    }

    .trade-window-top,
    .trade-offer-panel,
    .trade-window-error,
    .trade-inventories {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }

    .trade-window-top {
        width: auto;
    }

    .trade-window-top {
        margin-bottom: 14px;
    }

    .trade-inventories {
        width: 100%;
        margin-top: 20px;
    }

    .trade-inventory {
        height: auto;
        min-height: 263px;
    }

    .trade-inventory-grid {
        height: auto;
        min-height: 208px;
    }

    .trade-inventory-divider {
        width: 100%;
    }

    .trade-request {
        top: 50px;
        left: 10px;
        width: calc(100% - 20px);
        margin: 0;
    }

    .trade-request .trade-modal-body {
        flex-wrap: wrap;
        height: auto;
        padding-bottom: 80px;
    }
}
