.my-collection-album {
    margin-top: 24px;
}

.my-collection-guide {
    margin-top: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 7px;
}

.my-collection-guide__summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 14px 50px 14px 18px;
    color: #263238;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.my-collection-guide__summary::-webkit-details-marker {
    display: none;
}

.my-collection-guide__summary::after {
    position: absolute;
    top: 50%;
    right: 18px;
    content: "+";
    color: #28ba48;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.my-collection-guide[open] .my-collection-guide__summary {
    border-bottom: 1px solid #e1e5e9;
}

.my-collection-guide[open] .my-collection-guide__summary::after {
    content: "−";
}

.my-collection-guide__summary:hover,
.my-collection-guide__summary:focus {
    background: #f7f9fa;
    outline: none;
}

.my-collection-guide__body {
    padding: 20px 22px;
    color: #37474f;
    font-size: 15px;
    line-height: 1.55;
}

.my-collection-guide__steps,
.my-collection-guide__rules ul {
    margin-bottom: 0;
    padding-left: 22px;
}

.my-collection-guide__steps li,
.my-collection-guide__rules li {
    margin-bottom: 10px;
}

.my-collection-guide__steps li:last-child,
.my-collection-guide__rules li:last-child {
    margin-bottom: 0;
}

.my-collection-guide__rules {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e8ebee;
}

.my-collection-guide__rules h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.my-collection-album__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.my-collection-album__header h2 {
    margin: 0;
}

.my-collection-album__exchange-button {
    flex: 0 0 auto;
}

.my-collection-album__test-note {
    color: #8a6d3b;
    font-size: 12px;
    text-align: right;
}

.my-collection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: flex-start;
}

.my-collection-card {
    position: relative;
    width: 252px;
    height: 350px;
    border-radius: 8px;
    outline: none;
}

.my-collection-card__snapshot {
    width: 252px;
    height: 350px;
}

.my-collection-card--pending {
    overflow: hidden;
    border: 2px solid #f0ad4e;
    background: #17212b;
    box-shadow: 0 0 0 4px rgba(240, 173, 78, .16), 0 10px 28px rgba(19, 31, 43, .2);
}

.my-collection-card__snapshot--pending {
    margin: -2px;
    opacity: .5;
    filter: saturate(.7);
}

.my-collection-card__pending-status {
    position: absolute;
    z-index: 20;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    color: #fff;
    background: rgba(14, 20, 29, .94);
    border: 1px solid rgba(240, 173, 78, .55);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.my-collection-card__pending-status a {
    color: #a9d8ff;
}

.my-collection-card__pending-label {
    color: #ffd17b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.my-collection-card__pending-label i {
    margin-right: 4px;
}

.my-collection-card__pending-match {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-collection-card__pending-timer {
    color: #ffd17b;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.my-collection-card__pending-timer.is-expired {
    color: #ffaca8;
}

.my-collection-card__pending-match-link {
    font-size: 12px;
}

.my-collection-card__info {
    position: absolute;
    z-index: 20;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    color: #fff;
    background: rgba(14, 20, 29, .94);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
}

.my-collection-card__info a {
    color: #79c7ff;
    pointer-events: auto;
}

.my-collection-card:hover .my-collection-card__info,
.my-collection-card:focus .my-collection-card__info,
.my-collection-card:focus-within .my-collection-card__info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.my-collection-empty {
    color: #777;
}

.collection-exchange-modal .modal-dialog {
    max-width: 760px;
    margin-top: 120px;
}

.collection-exchange-modal__body {
    padding: 20px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
}

.collection-exchange-modal__match,
.collection-exchange-modal__offer {
    margin: 0 0 14px;
    padding: 12px;
    background: #f4f6f8;
    border-radius: 6px;
}

.collection-exchange-modal__offer:last-child {
    margin-bottom: 0;
}

.collection-exchange-modal__offer-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.collection-exchange-modal__offer-details {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 8px;
}

.collection-exchange-modal__offer-details > strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.collection-exchange-modal__eyebrow,
.collection-exchange-modal__player-card-title {
    color: #6b747d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.collection-exchange-modal__offer-match {
    line-height: 1.45;
}

.collection-exchange-modal__preview-host {
    display: flex;
    justify-content: center;
    min-height: 90px;
    margin-top: 16px;
}

.collection-exchange-modal__preview-empty {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 90px;
    padding: 18px;
    color: #7b848d;
    background: #f7f8f9;
    border: 1px dashed #cfd5da;
    border-radius: 6px;
    text-align: center;
}

.collection-exchange-modal__player-card {
    flex: 0 0 252px;
    width: 252px;
}

.collection-exchange-modal__player-card-title {
    margin-bottom: 8px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-exchange-modal__player-card-content {
    width: 252px;
    min-height: 350px;
}

.collection-exchange-modal__player-card-content.is-loading,
.collection-exchange-modal__player-card-content.is-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #7b848d;
    background: #fff;
    border: 1px dashed #cfd5da;
    border-radius: 8px;
    text-align: center;
}

.collection-exchange-modal__player-card-content.is-error {
    color: #a94442;
}

.collection-exchange-modal__timer {
    margin-top: 8px;
    color: #9a6700;
    font-weight: 600;
}

.collection-exchange-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.collection-exchange-modal__opt-out {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e8eb;
}

.collection-exchange-modal__select {
    width: 100%;
    min-height: 40px;
    margin-top: 12px;
}

.collection-exchange-modal__message {
    display: none;
    margin-top: 12px;
}

html[data-theme="dark"] .collection-exchange-modal .modal-content {
    background: #242830;
    border-color: #3a3f4d;
    color: #e4e6eb;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}

html[data-theme="dark"] .collection-exchange-modal .modal-header {
    border-bottom-color: #3a3f4d;
}

html[data-theme="dark"] .collection-exchange-modal .modal-title,
html[data-theme="dark"] .collection-exchange-modal__body,
html[data-theme="dark"] .collection-exchange-modal__body p,
html[data-theme="dark"] .collection-exchange-modal__offer strong {
    color: #e4e6eb;
}

html[data-theme="dark"] .collection-exchange-modal .close {
    color: #f8fafc;
    opacity: .8;
    text-shadow: none;
}

html[data-theme="dark"] .collection-exchange-modal .close:hover,
html[data-theme="dark"] .collection-exchange-modal .close:focus {
    color: #fff;
    opacity: 1;
}

html[data-theme="dark"] .collection-exchange-modal__match,
html[data-theme="dark"] .collection-exchange-modal__offer {
    background: #1d2229;
    border: 1px solid #353c47;
    color: #dce2ea;
}

html[data-theme="dark"] .collection-exchange-modal__eyebrow,
html[data-theme="dark"] .collection-exchange-modal__player-card-title {
    color: #aab2bd;
}

html[data-theme="dark"] .collection-exchange-modal__preview-empty,
html[data-theme="dark"] .collection-exchange-modal__player-card-content.is-loading,
html[data-theme="dark"] .collection-exchange-modal__player-card-content.is-error {
    background: #1d2229;
    border-color: #46505d;
    color: #b8c0ca;
}

html[data-theme="dark"] .collection-exchange-modal__player-card-content.is-error {
    color: #f2b8b5;
}

html[data-theme="dark"] .collection-exchange-modal__select,
html[data-theme="dark"] .collection-exchange-modal__select option {
    background-color: #2a3038;
    border-color: #434b58;
    color: #f1f5f9;
}

html[data-theme="dark"] .collection-exchange-modal__select:focus {
    border-color: #28ba48;
    box-shadow: 0 0 0 1px rgba(40, 186, 72, .25) !important;
}

html[data-theme="dark"] .collection-exchange-modal__timer {
    color: #f7c65c;
}

html[data-theme="dark"] .collection-exchange-modal__opt-out {
    border-top-color: #3a3f4d;
}

html[data-theme="dark"] .collection-exchange-modal__message.alert-success {
    background: rgba(40, 186, 72, .14);
    border-color: rgba(40, 186, 72, .38);
    color: #a7e8b5;
}

html[data-theme="dark"] .collection-exchange-modal__message.alert-danger {
    background: rgba(217, 83, 79, .14);
    border-color: rgba(217, 83, 79, .42);
    color: #f2b8b5;
}

html[data-theme="dark"] .collection-exchange-modal .alert-info {
    background: rgba(64, 158, 255, .14);
    border-color: rgba(64, 158, 255, .38);
    color: #b9dcff;
}

html[data-theme="dark"] .my-collection-card--pending {
    border-color: #f7c65c;
    box-shadow: 0 0 0 4px rgba(247, 198, 92, .13), 0 10px 28px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .my-collection-card__pending-status {
    background: rgba(18, 22, 28, .96);
    border-color: rgba(247, 198, 92, .5);
}

html[data-theme="dark"] .my-collection-guide {
    background: #242830;
    border-color: #3a3f4d;
}

html[data-theme="dark"] .my-collection-guide__summary,
html[data-theme="dark"] .my-collection-guide__body,
html[data-theme="dark"] .my-collection-guide__rules h3 {
    color: #e4e6eb;
}

html[data-theme="dark"] .my-collection-guide__summary:hover,
html[data-theme="dark"] .my-collection-guide__summary:focus {
    background: #1d2229;
}

html[data-theme="dark"] .my-collection-guide[open] .my-collection-guide__summary,
html[data-theme="dark"] .my-collection-guide__rules {
    border-color: #3a3f4d;
}

@media (max-width: 600px) {
    .collection-exchange-modal .modal-dialog {
        margin: 100px 10px 20px;
    }

    .collection-exchange-modal__offer-layout {
        align-items: center;
        flex-direction: column;
    }

    .collection-exchange-modal__offer-details {
        width: 100%;
        padding-top: 0;
    }

    .my-collection-album__header {
        display: block;
    }

    .my-collection-album__exchange-button {
        margin-top: 10px;
    }

    .my-collection-album__test-note {
        display: block;
        margin-top: 6px;
        text-align: left;
    }

    .my-collection-guide__summary {
        padding: 13px 46px 13px 14px;
        font-size: 16px;
    }

    .my-collection-guide__body {
        padding: 16px;
        font-size: 14px;
    }

    .my-collection-grid {
        justify-content: center;
    }
}
