/* W39 persistent market scene and factual trust ledger. */
body.shop-world-shell {
    background: var(--surface-bg);
}

.shop-world-backdrop,
.shop-world-backdrop img {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shop-world-backdrop {
    z-index: 0;
}

.shop-world-backdrop img {
    object-fit: cover;
    object-position: center 55%;
    filter: saturate(.92) contrast(1.02);
}

.shop-world-shell > .shop-page,
.shop-world-shell > .shop-product-shell,
.shop-world-shell > .checkout-page,
.shop-world-shell > main,
.shop-world-shell > footer {
    position: relative;
    z-index: 1;
}

/* A filled transform animation makes fixed purchase bars relative to <main>. */
.shop-world-shell > :is(.shop-product-shell, .checkout-page) {
    animation: none;
    transform: none;
}

.shop-purchase-information {
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
    padding-block: 12px 32px;
}

.shop-purchase-information.is-contained {
    width: 100%;
    padding-block: 36px 0;
}

.shop-purchase-panel {
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--surface-border);
    border-radius: calc(var(--radius-card) + 5px);
    box-shadow: var(--mb-shadow);
}

.shop-trust-ledger {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 2fr);
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.shop-trust-ledger-heading {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px 20px;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--surface-border);
    border-radius: 0;
    box-shadow: none;
}

.shop-trust-ledger-heading h2 {
    margin: 0;
    color: var(--mb-fg1);
    font-family: var(--font-body);
    font-size: clamp(15px, 1.1vw, 17px);
    font-weight: 900;
    letter-spacing: .015em;
    line-height: 1.3;
    text-transform: uppercase;
}

.shop-trust-ledger-heading p {
    max-width: 40ch;
    margin: 0;
    color: var(--mb-fg2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

.shop-trust-ledger dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 0;
}

.shop-trust-ledger dl > div {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 7px;
    padding: 16px 18px;
    background: transparent;
    border: 0;
    border-right: 1px solid color-mix(in srgb, var(--surface-border) 82%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--surface-border) 82%, transparent);
    border-radius: 0;
    box-shadow: none;
}

.shop-trust-ledger dl > div:nth-child(2n) {
    border-right: 0;
}

.shop-trust-ledger dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.shop-trust-ledger dt {
    color: var(--mb-fg1);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .01em;
    line-height: 1.35;
    text-transform: uppercase;
}

.shop-trust-ledger dd {
    min-width: 0;
    margin: 0;
    color: var(--mb-fg2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

.shop-trust-ledger dd strong {
    color: var(--mb-fg1);
}

.shop-trust-ledger dd a {
    color: var(--coco-gold-100);
    font-weight: 800;
    text-underline-offset: 3px;
}

.shop-trust-history {
    display: grid;
    gap: 5px;
}

.shop-trust-history a {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-self: start;
}

.shop-trust-seller dd,
.shop-trust-seller-identity,
.shop-trust-seller-links {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.shop-trust-seller dd {
    gap: 6px;
}

.shop-trust-seller-links {
    justify-items: start;
}

.shop-trust-seller-links a {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.shop-purchase-panel > .minecraft-disclaimer {
    margin: 0;
    gap: 7px;
    padding: 21px 22px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--surface-border);
    border-left: 0;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.55;
}

.shop-purchase-panel > .minecraft-disclaimer strong {
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: .015em;
}

.shop-purchase-panel > .minecraft-disclaimer span {
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .shop-world-backdrop img {
        object-position: center;
    }

    .shop-trust-ledger {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 0;
    }

    .shop-purchase-information {
        width: min(100% - 24px, 1440px);
    }

    .shop-purchase-information.is-contained {
        width: 100%;
    }

    .shop-purchase-panel > .minecraft-disclaimer {
        padding: 18px;
        font-size: 12px;
    }

    .shop-purchase-panel > .minecraft-disclaimer strong {
        font-size: 13px;
    }

    .shop-purchase-panel > .minecraft-disclaimer span {
        font-size: 11px;
    }

    .shop-trust-ledger dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        border: 0;
    }

    .shop-trust-ledger-heading {
        padding: 18px;
        border-right: 0;
        border-bottom: 1px solid var(--surface-border);
    }

    .shop-trust-ledger dl > div {
        padding: 15px 18px;
        border-right: 0;
        border-bottom: 1px solid color-mix(in srgb, var(--surface-border) 82%, transparent);
    }

    .shop-trust-ledger dl > div:nth-last-child(2) {
        border-bottom: 1px solid color-mix(in srgb, var(--surface-border) 82%, transparent);
    }

    .shop-trust-ledger dl > div:last-child {
        border-bottom: 0;
    }
}
