@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap");

.trade-legacy,
.trade-legacy a,
.trade-legacy button,
.trade-legacy input,
.trade-legacy select {
    font-family: "Source Sans Pro", Arial, sans-serif;
}

.trade-legacy {
    max-width: 1040px;
    margin: 0 auto;
    padding: 34px 18px 80px;
    color: #222;
    font-size: 14px;
}

.trade-alert,
.trade-empty-panel {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #c9c9c9;
}

.trade-alert {
    color: #a00;
    border-color: #d9a7a7;
    background: #fff5f5;
}

.trade-window {
    background: #fff;
    padding: 0;
}

.trade-window-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 2px;
    font-size: 14px;
}

.trade-window-topline a,
.trade-list-page a,
.trade-request-view a {
    color: #5A189A;
    text-decoration: none;
}

.trade-window-topline a:hover,
.trade-list-page a:hover,
.trade-request-view a:hover {
    text-decoration: underline;
}

.trade-exit {
    color: #222 !important;
}

.trade-exit span {
    display: inline-flex;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #777;
    border-radius: 50%;
    font-size: 21px;
    line-height: 20px;
    font-weight: 600;
}

.trade-window-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.trade-offer-panel {
    padding: 14px 7px 10px;
    background: #e5e5e5;
    border: 1px solid #aaa;
}

.trade-offer-block {
    padding: 0 0 22px;
}

.trade-request-block {
    padding-top: 4px;
}

.trade-offer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.trade-offer-head strong {
    font-size: 15px;
}

.trade-offer-head span {
    font-size: 11px;
}

.trade-offer-head b {
    color: #138c21;
    font-weight: 400;
}

.trade-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.trade-slot {
    position: relative;
    height: 62px;
    padding: 2px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #c7c7c7;
}

.trade-slot.filled {
    cursor: pointer;
}

.trade-slot img {
    width: 100%;
    height: 44px;
    object-fit: contain;
}

.trade-slot span {
    display: block;
    overflow: hidden;
    color: #5A189A;
    font-size: 8px;
    line-height: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-send-request {
    display: block;
    min-width: 176px;
    margin: 4px auto 0;
    padding: 10px 17px;
    color: #fff;
    background: linear-gradient(#12bf16, #008b04);
    border: 1px solid #087b0c;
    box-shadow: inset 0 1px rgba(255,255,255,.35);
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    text-shadow: 0 -1px 0 rgba(0,0,0,.55);
}

.trade-inventory-side {
    min-width: 0;
}

.trade-inventory-section {
    padding-bottom: 16px;
}

.trade-partner-inventory {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid #a8a8a8;
}

.trade-inventory-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.trade-inventory-head strong {
    font-size: 15px;
}

.trade-inventory-head label {
    font-size: 11px;
}

.trade-inventory-head select {
    min-width: 145px;
    height: 22px;
    padding: 0 3px;
    border: 1px solid #888;
    background: #fff;
    font-size: 11px;
}

.trade-inventory-grid {
    display: grid;
    grid-template-columns: repeat(7, 78px);
    gap: 4px;
    min-height: 106px;
}

.trade-inventory-item {
    width: 78px;
    height: 96px;
    padding: 3px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #bbb;
    cursor: pointer;
}

.trade-inventory-item:hover,
.trade-inventory-item.selected {
    border-color: #7B2CBF;
    box-shadow: 0 0 0 1px #7B2CBF inset;
}

.trade-inventory-item span {
    display: block;
    height: 24px;
    overflow: hidden;
    color: #5A189A;
    font-size: 10px;
    line-height: 12px;
    font-weight: 400;
}

.trade-inventory-item img {
    width: 100%;
    height: 64px;
    object-fit: contain;
}

.trade-inventory-empty {
    display: none;
    min-height: 86px;
    padding: 18px 4px;
    color: #666;
}

.trade-page-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    font-size: 10px;
}

.trade-page-controls button {
    width: 26px;
    height: 26px;
    padding: 0;
    color: #fff;
    background: linear-gradient(#c4c4c4, #8e8e8e);
    border: 1px solid #999;
    border-radius: 3px;
    font-size: 12px;
}

.trade-page-controls button:disabled {
    opacity: .4;
}

.trade-list-page {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
}

.trade-money-tabs {
    display: flex;
    align-items: flex-end;
    padding-left: 34px;
    border-bottom: 1px solid #aaa;
}

.trade-money-tabs span {
    min-width: 84px;
    padding: 10px 12px 9px;
    text-align: center;
    background: #e5e5e5;
    border: 1px solid #aaa;
    border-bottom: 0;
    margin-right: 4px;
    font-size: 15px;
}

.trade-money-tabs span.active {
    background: #fff;
    position: relative;
    top: 1px;
}

.trade-type-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 4px 8px;
}

.trade-type-row select {
    margin-left: 5px;
    min-width: 93px;
    height: 24px;
    border: 1px solid #999;
    background: #fff;
}

.trade-help {
    display: none;
    margin: 0 4px 8px;
    padding: 8px 10px;
    background: #f5f5f5;
    border: 1px solid #ccc;
}

.trade-help.show {
    display: block;
}

.trade-list-table {
    width: 100%;
    border-collapse: collapse;
}

.trade-list-table th,
.trade-list-table td {
    padding: 7px 8px;
    text-align: left;
    border: 1px solid #c7c7c7;
}

.trade-list-table th {
    background: #efefef;
    font-weight: 400;
}

.trade-list-table th:nth-child(1) { width: 95px; }
.trade-list-table th:nth-child(2) { width: 95px; }
.trade-list-table th:nth-child(3) { width: 170px; }
.trade-list-table th:nth-child(5) { width: 100px; }

.trade-no-rows {
    height: 120px;
    color: #777;
    text-align: center !important;
}

.trade-list-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 10px 4px 0;
}

.trade-list-pagination a,
.trade-list-pagination > span:first-child,
.trade-list-pagination > span:last-child {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #aaa;
    border: 1px solid #999;
    text-decoration: none;
}

.trade-request-view {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
}

.trade-request-title {
    padding: 8px 12px;
    background: #e9e9e9;
    border-bottom: 1px solid #bbb;
    font-size: 25px;
    font-weight: 400;
    text-align: center;
}

.trade-request-body {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    padding: 15px 12px 18px;
}

.trade-request-partner {
    padding-right: 12px;
    text-align: center;
    border-right: 1px solid #ccc;
}

.trade-request-partner img {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.trade-request-partner div {
    margin-top: 5px;
    line-height: 18px;
}

.trade-request-partner p {
    margin: 10px 0 0;
    color: #777;
}

.trade-request-items-wrap {
    min-width: 0;
}

.trade-request-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.trade-request-section-head strong {
    font-size: 15px;
}

.trade-request-section-head span {
    font-size: 12px;
}

.trade-request-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 106px;
}

.trade-request-item {
    min-height: 105px;
    padding: 4px;
    color: #5A189A !important;
    border: 1px solid #c7c7c7;
    margin-right: -1px;
    text-align: center;
}

.trade-request-item span {
    display: block;
    height: 28px;
    overflow: hidden;
    font-size: 11px;
    line-height: 13px;
}

.trade-request-item img {
    width: 100%;
    height: 68px;
    object-fit: contain;
}

.trade-swap-mark {
    margin: 2px 0;
    color: #999;
    font-size: 25px;
    line-height: 25px;
    font-weight: 600;
    text-align: center;
}

.trade-request-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
}

.trade-request-actions form {
    margin: 0;
}

.trade-action-blue,
.trade-action-gray {
    display: inline-block;
    min-width: 105px;
    padding: 9px 15px;
    color: #fff !important;
    border: 0;
    font-size: 21px;
    line-height: 26px;
    text-align: center;
    text-decoration: none !important;
}

.trade-action-blue {
    background: linear-gradient(#9D4EDD, #5A189A);
    border: 1px solid #5A189A;
}

.trade-action-gray {
    background: linear-gradient(#888, #555);
    border: 1px solid #555;
}

.trade-request-back {
    padding: 0 12px 14px;
    text-align: right;
}

@media (max-width: 900px) {
    .trade-window-layout {
        grid-template-columns: 1fr;
    }
    .trade-offer-panel {
        max-width: 330px;
    }
    .trade-inventory-grid {
        grid-template-columns: repeat(5, 78px);
    }
}

@media (max-width: 650px) {
    .trade-legacy {
        padding: 20px 10px 60px;
    }
    .trade-inventory-grid {
        grid-template-columns: repeat(3, 78px);
    }
    .trade-request-body {
        grid-template-columns: 1fr;
    }
    .trade-request-partner {
        border-right: 0;
        border-bottom: 1px solid #ccc;
        padding: 0 0 12px;
    }
    .trade-money-tabs {
        padding-left: 0;
        overflow-x: auto;
    }
    .trade-money-tabs span {
        min-width: 105px;
    }
}

/* Trading is limited to Limited / Limited U collectibles. */
.trade-inventory-item,
.trade-request-item {
    position: relative;
}

.trade-inventory-item > img.trade-item-thumb,
.trade-request-item > img.trade-item-thumb {
    width: 100%;
    object-fit: contain;
}

.trade-inventory-item > img.trade-item-thumb {
    height: 64px;
}

.trade-request-item > img.trade-item-thumb {
    height: 68px;
}

.trade-inventory-item > img.trade-limited-overlay,
.trade-request-item > img.trade-limited-overlay {
    position: absolute;
    left: 2px;
    bottom: 5px;
    width: auto;
    height: 11px;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}
