.marketplace-shell{
    padding:28px 0 64px;
}

.marketplace-hero{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:24px;
}

.marketplace-hero h1{
    margin:0 0 8px;
    font-size:clamp(28px,4vw,44px);
}

.marketplace-hero p{
    margin:0;
    max-width:760px;
    color:rgba(255,255,255,.62);
    line-height:1.65;
}

.marketplace-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.marketplace-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(180px,.7fr) auto;
    gap:12px;
    margin-bottom:22px;
}

.marketplace-toolbar input,
.marketplace-form input,
.marketplace-form textarea,
.marketplace-form select,
.marketplace-inquiry-form input,
.marketplace-inquiry-form textarea,
.marketplace-review-form textarea,
.marketplace-review-form select{
    width:100%;
    box-sizing:border-box;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(0,0,0,.35);
    color:#fff;
    border-radius:12px;
    padding:12px 14px;
    outline:none;
}

.marketplace-form textarea,
.marketplace-inquiry-form textarea{
    min-height:120px;
    resize:vertical;
}

.marketplace-toolbar input:focus,
.marketplace-form input:focus,
.marketplace-form textarea:focus,
.marketplace-form select:focus,
.marketplace-inquiry-form input:focus,
.marketplace-inquiry-form textarea:focus,
.marketplace-review-form textarea:focus,
.marketplace-review-form select:focus{
    border-color:rgba(255,153,0,.62);
    box-shadow:0 0 0 3px rgba(255,153,0,.08);
}

.marketplace-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.marketplace-card{
    overflow:hidden;
    border:1px solid rgba(255,255,255,.09);
    border-radius:16px;
    background:rgba(18,18,18,.78);
}

.marketplace-card-image{
    aspect-ratio:16/10;
    width:100%;
    object-fit:contain;
    display:block;
    background:#080808;
}

.marketplace-slider{
    position:relative;
    aspect-ratio:16/10;
    overflow:hidden;
    background:#080808;
}

.marketplace-slider .marketplace-card-image{
    height:100%;
    aspect-ratio:auto;
    position:relative;
    z-index:1;
}

/* Show the entire item photograph while filling the unused sides with
   a softened copy of that same photograph. The card's 16:10 frame stays fixed. */
.marketplace-slider .marketplace-image-backdrop{
    position:absolute;
    inset:-18px;
    width:calc(100% + 36px);
    height:calc(100% + 36px);
    object-fit:cover;
    filter:blur(18px) brightness(.48);
    transform:scale(1.03);
    pointer-events:none;
}


.marketplace-slide-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.2);
    background:rgba(0,0,0,.62);
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
    z-index:2;
}

.marketplace-slide-btn:hover{
    border-color:rgba(255,153,0,.65);
    color:#ff9900;
}

.marketplace-slide-prev{
    left:10px;
}

.marketplace-slide-next{
    right:10px;
}

.marketplace-slide-count{
    position:absolute;
    right:10px;
    bottom:10px;
    padding:5px 8px;
    border-radius:999px;
    background:rgba(0,0,0,.68);
    color:#fff;
    font-size:10px;
    border:1px solid rgba(255,255,255,.14);
}

.marketplace-slide-dots{
    position:absolute;
    left:50%;
    bottom:10px;
    transform:translateX(-50%);
    display:flex;
    gap:5px;
    z-index:2;
}

.marketplace-slide-dot{
    width:7px;
    height:7px;
    border:0;
    border-radius:50%;
    padding:0;
    background:rgba(255,255,255,.38);
    cursor:pointer;
}

.marketplace-slide-dot.active{
    background:#ff9900;
}

.marketplace-review-chip{
    color:#ffb23f;
}

.marketplace-review-summary{
    margin:8px 0 14px;
    padding:10px 12px;
    border:1px solid rgba(255,153,0,.22);
    background:rgba(255,153,0,.05);
    border-radius:10px;
    color:rgba(255,255,255,.78);
    font-size:12px;
}

.marketplace-reviews-modal-card{
    max-height:min(86vh,760px);
    overflow:auto;
}

.marketplace-reviews-list{
    display:grid;
    gap:10px;
    margin-bottom:16px;
}

.marketplace-review{
    border:1px solid rgba(255,255,255,.08);
    background:rgba(0,0,0,.22);
    border-radius:11px;
    padding:11px 12px;
}

.marketplace-review-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:6px;
}

.marketplace-review-head strong{
    font-size:12px;
}

.marketplace-review-rating{
    color:#ffb23f;
    font-size:11px;
    font-weight:800;
}

.marketplace-review p{
    margin:0;
    color:rgba(255,255,255,.65);
    font-size:12px;
    line-height:1.55;
}

.marketplace-review-time{
    display:block;
    margin-top:7px;
    color:rgba(255,255,255,.35);
    font-size:10px;
}

.marketplace-review-form{
    display:grid;
    gap:12px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.08);
}

.marketplace-card-body{
    padding:16px;
}

.marketplace-card h3{
    margin:0 0 8px;
    font-size:17px;
}

.marketplace-price{
    display:flex;
    align-items:center;
    gap:10px;
    margin:8px 0 12px;
}

.marketplace-price strong{
    color:#ff9900;
    font-size:20px;
}

.marketplace-old-price{
    color:rgba(255,255,255,.42);
    text-decoration:line-through;
}

.marketplace-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:10px 0;
}

.marketplace-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 9px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:999px;
    color:rgba(255,255,255,.68);
    font-size:11px;
}

.marketplace-description{
    color:rgba(255,255,255,.62);
    line-height:1.55;
    font-size:13px;
    margin:12px 0;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.marketplace-seller{
    border-top:1px solid rgba(255,255,255,.08);
    margin-top:14px;
    padding-top:14px;
    display:grid;
    gap:5px;
    color:rgba(255,255,255,.68);
    font-size:12px;
}

.marketplace-card-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}

.marketplace-stock{
    font-weight:700;
}

.marketplace-stock-out{
    color:#ff8b8b;
    border-color:rgba(255,95,95,.28);
    background:rgba(255,95,95,.06);
}

.marketplace-stock-reserved{
    color:#f6b82e;
    border-color:rgba(246,184,46,.32);
    background:rgba(246,184,46,.08);
}

.marketplace-stock-editor{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.marketplace-stock-input{
    width:110px;
    box-sizing:border-box;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(0,0,0,.35);
    color:#fff;
    border-radius:10px;
    padding:10px 11px;
    outline:none;
}

.marketplace-stock-input:focus{
    border-color:rgba(255,153,0,.62);
    box-shadow:0 0 0 3px rgba(255,153,0,.08);
}

.marketplace-form-wrap{
    display:none;
    margin:0 0 24px;
}

.marketplace-form-wrap.active{
    display:block;
}

.marketplace-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.marketplace-field{
    display:grid;
    gap:7px;
}

.marketplace-field.full{
    grid-column:1/-1;
}

.marketplace-field label{
    color:rgba(255,255,255,.72);
    font-size:12px;
    font-weight:700;
}

.marketplace-check-row{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    align-items:center;
}

.marketplace-check{
    display:flex;
    gap:8px;
    align-items:center;
    color:rgba(255,255,255,.74);
    font-size:12px;
}

.marketplace-check input{
    width:auto;
}

.marketplace-fee-box{
    border:1px solid rgba(255,153,0,.28);
    background:rgba(255,153,0,.055);
    border-radius:12px;
    padding:12px 14px;
    color:rgba(255,255,255,.78);
}

.marketplace-fee-box strong{
    color:#ff9900;
}

.marketplace-note{
    margin:12px 0 0;
    color:rgba(255,255,255,.52);
    font-size:12px;
    line-height:1.55;
}

.marketplace-state{
    padding:28px;
    text-align:center;
    color:rgba(255,255,255,.55);
    border:1px dashed rgba(255,255,255,.12);
    border-radius:14px;
}

.marketplace-section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:26px 0 14px;
}

.marketplace-section-title h2{
    margin:0;
}

.marketplace-my-listings{
    display:none;
    margin-bottom:24px;
}

.marketplace-my-listings.active{
    display:block;
}

.marketplace-my-item{
    display:grid;
    grid-template-columns:90px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.marketplace-my-item img{
    width:90px;
    height:70px;
    border-radius:10px;
    object-fit:contain;
    background:#080808;
}

.marketplace-status{
    font-size:11px;
    font-weight:800;
    color:#ff9900;
}

.marketplace-status-badge{
    display:inline-flex;
    align-items:center;
    width:max-content;
    max-width:100%;
    padding:4px 8px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;
    background:rgba(255,255,255,.04);
    font-size:10px !important;
    font-weight:800 !important;
    line-height:1.2;
    letter-spacing:.01em;
    white-space:nowrap;
}

.marketplace-status-positive{
    color:#52d273 !important;
    border-color:rgba(82,210,115,.34) !important;
    background:rgba(82,210,115,.09) !important;
}

.marketplace-status-negative{
    color:#ff746c !important;
    border-color:rgba(255,116,108,.38) !important;
    background:rgba(255,116,108,.09) !important;
}

.marketplace-status-amber{
    color:#ff9900 !important;
    border-color:rgba(255,153,0,.40) !important;
    background:rgba(255,153,0,.10) !important;
}

.marketplace-status-neutral{
    color:rgba(255,255,255,.70) !important;
    border-color:rgba(255,255,255,.14) !important;
    background:rgba(255,255,255,.05) !important;
}

/* Status-colored action controls keep their ordinary button dimensions. */
.btn.marketplace-status-positive,
.btn.marketplace-status-negative,
.btn.marketplace-status-amber,
.btn.marketplace-status-neutral{
    box-shadow:none;
}

.marketplace-order-head .marketplace-status-badge,
.marketplace-order-settlement .marketplace-status-badge,
.marketplace-quote-summary .marketplace-status-badge,
.marketplace-protected-facts .marketplace-status-badge{
    color:inherit;
}

.marketplace-order-settlement > span strong.marketplace-status-badge{
    display:inline-flex;
    margin-left:4px;
}

.marketplace-quote-summary strong.marketplace-status-badge{
    display:inline-flex;
}


.marketplace-modal{
    position:fixed;
    inset:0;
    z-index:10050;
    display:none;
    place-items:center;
    padding:18px;
}

.marketplace-modal.active{
    display:grid;
}

.marketplace-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.78);
    backdrop-filter:blur(5px);
}

.marketplace-modal-card{
    position:relative;
    width:min(560px,100%);
    border:1px solid rgba(255,255,255,.11);
    background:#151515;
    border-radius:16px;
    padding:20px;
    box-shadow:0 30px 80px rgba(0,0,0,.5);
}

.marketplace-modal-card h3{
    margin:0 0 8px;
}

.marketplace-modal-card p{
    color:rgba(255,255,255,.56);
    font-size:12px;
    line-height:1.55;
}

.marketplace-inquiry-form{
    display:grid;
    gap:12px;
}

.marketplace-message{
    margin:12px 0;
    min-height:20px;
    color:rgba(255,255,255,.65);
    font-size:12px;
}

.marketplace-message.success{
    color:#7ce8a6;
}

.marketplace-message.error{
    color:#ff8b8b;
}

.marketplace-message:empty{
    display:none;
}

.marketplace-message.marketplace-toast{
    --marketplace-toast-duration:3000ms;
    position:fixed;
    top:22px;
    left:50%;
    z-index:2147483000;
    width:min(680px,calc(100vw - 32px));
    min-height:0;
    margin:0;
    padding:13px 18px;
    border:1px solid rgba(124,232,166,.38);
    border-radius:12px;
    background:rgba(9,28,20,.96);
    color:#8bf0b2;
    box-shadow:0 18px 48px rgba(0,0,0,.42);
    font-size:13px;
    font-weight:700;
    line-height:1.45;
    text-align:center;
    pointer-events:none;
    backdrop-filter:blur(12px);
    animation:
        marketplaceSuccessToast
        var(--marketplace-toast-duration)
        ease
        forwards;
}

@keyframes marketplaceSuccessToast{
    0%{
        opacity:0;
        transform:translate(-50%,-10px) scale(.98);
    }

    8%{
        opacity:1;
        transform:translate(-50%,0) scale(1);
    }

    84%{
        opacity:1;
        transform:translate(-50%,0) scale(1);
    }

    100%{
        opacity:0;
        transform:translate(-50%,-8px) scale(.99);
    }
}

@media(max-width:720px){
    .marketplace-message.marketplace-toast{
        top:14px;
        width:calc(100vw - 24px);
        padding:12px 14px;
        font-size:12px;
    }
}

@media(max-width:960px){
    .marketplace-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:720px){
    .marketplace-hero{
        align-items:flex-start;
        flex-direction:column;
    }

    .marketplace-toolbar{
        grid-template-columns:1fr;
    }

    .marketplace-grid{
        grid-template-columns:1fr;
    }

    .marketplace-form{
        grid-template-columns:1fr;
    }

    .marketplace-field.full{
        grid-column:auto;
    }

    .marketplace-my-item{
        grid-template-columns:72px minmax(0,1fr);
    }

    .marketplace-my-item > div:last-child{
        grid-column:1/-1;
    }
}


/* ==========================================
   SHADOWTONE PROTECTED MARKETPLACE
   ========================================== */

.marketplace-protected-panel{
    margin:0 0 20px;
    padding:18px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:16px;
    background:rgba(13,13,13,.88);
}

.marketplace-protected-panel[hidden]{
    display:none!important;
}

.marketplace-protected-panel .marketplace-section-title p{
    margin:5px 0 0;
    max-width:720px;
    color:rgba(255,255,255,.54);
    font-size:11px;
    line-height:1.55;
}

.marketplace-protected-summary{
    padding:14px;
    border:1px solid rgba(59,130,246,.22);
    border-radius:12px;
    background:rgba(59,130,246,.045);
    margin-bottom:14px;
}

.marketplace-protected-summary strong{
    display:block;
    color:#fff;
    font-size:14px;
    margin-bottom:5px;
}

.marketplace-protected-summary p{
    margin:0;
    color:rgba(255,255,255,.62);
    font-size:11px;
    line-height:1.6;
}

.marketplace-protected-facts{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:15px;
}

.marketplace-protected-facts span{
    padding:8px 10px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:9px;
    background:rgba(255,255,255,.025);
    color:rgba(255,255,255,.54);
    font-size:10px;
}

.marketplace-protected-facts strong{
    color:#fff;
}

.marketplace-protected-form{
    display:grid;
    gap:14px;
}

.marketplace-protected-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.marketplace-protected-grid label{
    display:grid;
    gap:6px;
}

.marketplace-protected-grid label.full{
    grid-column:1/-1;
}

.marketplace-protected-grid label > span{
    color:rgba(255,255,255,.7);
    font-size:11px;
    font-weight:700;
}

.marketplace-protected-grid input,
.marketplace-protected-grid select,
.marketplace-thread-compose textarea,
.marketplace-cart-quantity{
    width:100%;
    box-sizing:border-box;
    border:1px solid rgba(255,255,255,.12);
    background:#0d0d0d;
    color:#fff;
    border-radius:10px;
    padding:11px 12px;
    outline:none;
}

.marketplace-protected-grid input:focus,
.marketplace-protected-grid select:focus,
.marketplace-thread-compose textarea:focus,
.marketplace-cart-quantity:focus{
    border-color:rgba(59,130,246,.62);
    box-shadow:0 0 0 3px rgba(59,130,246,.08);
}

.marketplace-protected-grid small,
.marketplace-field-help{
    color:rgba(255,255,255,.42);
    font-size:9.5px;
    line-height:1.45;
}

.marketplace-protected-status{
    min-height:18px;
    color:rgba(255,255,255,.55);
    font-size:11px;
}

.marketplace-protected-status.success{
    color:#7ce8a6;
}

.marketplace-protected-status.error{
    color:#ff9e95;
}

/* Seller verification: keep the application controls compact and intentional. */
.marketplace-seller-application-form{
    gap:18px;
}

.marketplace-seller-application-form .marketplace-protected-grid{
    gap:14px 16px;
}

.marketplace-seller-application-form .marketplace-protected-grid label{
    gap:8px;
}

.marketplace-seller-application-form .marketplace-protected-grid label > span{
    color:rgba(255,255,255,.76);
    font-size:11px;
    letter-spacing:.01em;
}

.marketplace-seller-application-form .marketplace-protected-grid input,
.marketplace-seller-application-form .marketplace-professional-select{
    min-height:46px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:12px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.025)
        ),
        #111;
    color:#fff;
    padding:0 14px;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.marketplace-seller-application-form .marketplace-protected-grid input:hover,
.marketplace-seller-application-form .marketplace-professional-select:hover{
    border-color:rgba(255,255,255,.22);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.035)
        ),
        #111;
}

.marketplace-seller-application-form .marketplace-protected-grid input:focus,
.marketplace-seller-application-form .marketplace-professional-select:focus{
    border-color:rgba(59,130,246,.72);
    box-shadow:
        0 0 0 3px rgba(59,130,246,.10),
        0 10px 28px rgba(0,0,0,.16);
}

.marketplace-seller-application-form .marketplace-professional-select{
    appearance:none;
    -webkit-appearance:none;
    cursor:pointer;
    padding-right:44px;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"),
        linear-gradient(
            180deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.025)
        );
    background-repeat:no-repeat,no-repeat;
    background-position:right 14px center,center;
    background-size:18px 18px,100% 100%;
}

.marketplace-seller-application-form .marketplace-professional-select:invalid{
    color:rgba(255,255,255,.62);
}

.marketplace-seller-application-form .marketplace-professional-select option{
    background:#151515;
    color:#fff;
}

.marketplace-seller-application-footer{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
    min-height:42px;
    padding-top:2px;
}

.marketplace-seller-application-footer .marketplace-protected-status{
    flex:1 1 auto;
    min-width:0;
}

.marketplace-seller-submit{
    flex:0 0 auto;
    width:auto;
    min-width:148px;
    min-height:40px;
    padding:10px 18px;
    border-radius:10px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.01em;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.marketplace-seller-submit:hover{
    transform:translateY(-1px);
}

.marketplace-seller-submit:active{
    transform:translateY(0);
}

.marketplace-document-field{
    grid-column:1/-1;
    display:grid;
    gap:9px;
}

.marketplace-document-title{
    color:rgba(255,255,255,.76);
    font-size:11px;
    font-weight:700;
    letter-spacing:.01em;
}

.marketplace-document-upload{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:64px;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:13px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.018)
        ),
        #101010;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.marketplace-document-upload:focus-within{
    border-color:rgba(59,130,246,.62);
    box-shadow:0 0 0 3px rgba(59,130,246,.08);
}

.marketplace-document-input{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    min-height:0 !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
}

.marketplace-document-picker{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px !important;
    flex:0 0 auto;
    min-height:40px;
    padding:9px 14px;
    border:1px solid rgba(229,151,24,.46);
    border-radius:10px;
    background:rgba(229,151,24,.08);
    color:#f2ad3a;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.marketplace-document-picker:hover{
    transform:translateY(-1px);
    border-color:rgba(229,151,24,.72);
    background:rgba(229,151,24,.13);
    box-shadow:0 8px 20px rgba(0,0,0,.16);
}

.marketplace-document-picker i{
    font-size:16px;
}

.marketplace-document-selection{
    display:grid;
    gap:3px;
    min-width:0;
}

.marketplace-document-selection strong{
    max-width:100%;
    overflow:hidden;
    color:rgba(255,255,255,.72);
    font-size:11px;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.marketplace-document-selection strong.has-files{
    color:#fff;
}

.marketplace-document-selection small{
    color:rgba(255,255,255,.38);
    font-size:9px;
}

.marketplace-document-privacy{
    display:flex;
    align-items:center;
    gap:6px;
    color:rgba(255,255,255,.38) !important;
    font-size:9.5px !important;
    line-height:1.45;
}

.marketplace-document-privacy i{
    color:rgba(255,255,255,.5);
    font-size:12px;
}

.marketplace-cart-row{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) 100px auto auto;
    gap:12px;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.marketplace-cart-row img{
    width:72px;
    height:56px;
    object-fit:contain;
    border-radius:9px;
    background:#090909;
}

.marketplace-cart-row > div{
    min-width:0;
    display:grid;
    gap:3px;
}

.marketplace-cart-row > div strong{
    color:#fff;
    font-size:12px;
}

.marketplace-cart-row > div span,
.marketplace-cart-row label span{
    color:rgba(255,255,255,.5);
    font-size:9.5px;
}

.marketplace-cart-row label{
    display:grid;
    gap:4px;
}

.marketplace-cart-checkout{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:16px;
    padding-top:15px;
}

.marketplace-cart-checkout > div{
    display:grid;
    gap:2px;
    text-align:right;
}

.marketplace-cart-checkout span{
    color:rgba(255,255,255,.48);
    font-size:10px;
}

.marketplace-cart-checkout strong{
    color:#fff;
    font-size:15px;
}

.marketplace-order-card{
    padding:11px;
    margin-bottom:8px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:rgba(255,255,255,.018);
}

.marketplace-order-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}

.marketplace-order-head > div{
    display:grid;
    gap:3px;
}

.marketplace-order-head strong{
    color:#fff;
    font-size:12px;
}

.marketplace-order-head span,
.marketplace-order-card > p{
    color:rgba(255,255,255,.54);
    font-size:10px;
}

.marketplace-order-card > p{
    margin:10px 0;
    line-height:1.5;
}

.marketplace-order-settlement{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.06);
}

.marketplace-order-settlement > span{
    color:rgba(255,255,255,.5);
    font-size:10px;
}

.marketplace-order-settlement > span strong{
    color:#fff;
}

.marketplace-order-dispute-note{
    width:100%;
    display:grid;
    gap:6px;
    padding:11px 12px;
    border:1px solid rgba(255,95,95,.24);
    border-radius:10px;
    background:rgba(255,95,95,.06);
}

.marketplace-order-dispute-note strong{
    color:#ff9b9b;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.marketplace-order-dispute-note span{
    color:rgba(255,255,255,.78);
    font-size:11px;
    line-height:1.55;
    white-space:pre-wrap;
    word-break:break-word;
}

.marketplace-conversation-row{
    width:100%;
    display:grid;
    gap:7px;
    padding:14px 15px;
    margin-bottom:10px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:13px;
    background:
        linear-gradient(
            135deg,
            rgba(10,31,62,.34),
            rgba(55,24,11,.22)
        ),
        rgba(255,255,255,.02);
    color:#fff;
    text-align:left;
    cursor:pointer;
    transition:
        border-color .18s ease,
        transform .18s ease,
        background .18s ease;
}

.marketplace-conversation-row:hover{
    transform:translateY(-1px);
    border-color:rgba(59,130,246,.34);
    background:
        linear-gradient(
            135deg,
            rgba(19,55,103,.38),
            rgba(83,37,15,.26)
        ),
        rgba(255,255,255,.025);
}

.marketplace-conversation-row-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.marketplace-conversation-row-head > strong{
    min-width:0;
    overflow:hidden;
    font-size:12px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.marketplace-conversation-ticket{
    color:#f2ad3a !important;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:9.5px !important;
    font-weight:800;
    letter-spacing:.04em;
}

.marketplace-conversation-unread{
    color:#f2ad3a !important;
    font-size:9.5px !important;
    font-weight:800;
}

#marketplaceMessagesCount{
    margin-left:3px;
    color:#f2ad3a;
    font-weight:800;
}

.marketplace-conversation-row > span:not(.marketplace-conversation-ticket),
.marketplace-conversation-row > small{
    color:rgba(255,255,255,.48);
    font-size:10px;
}

.marketplace-conversation-row > small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.marketplace-message-centre{
    overflow:hidden;
    border:1px solid rgba(255,255,255,.09);
    border-radius:16px;
    background:rgba(3,7,16,.42);
}

.marketplace-thread{
    display:grid;
    gap:0;
}

.marketplace-thread-header{
    display:grid;
    gap:12px;
    padding:16px;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(
            135deg,
            rgba(0,47,100,.22),
            rgba(91,38,11,.18)
        );
}

.marketplace-ticket-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.marketplace-ticket-heading > div{
    display:grid;
    gap:3px;
    min-width:0;
}

.marketplace-ticket-heading small,
.marketplace-ticket-participants small{
    color:rgba(255,255,255,.38);
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.marketplace-ticket-heading strong{
    color:#fff;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:12px;
    letter-spacing:.035em;
}

.marketplace-ticket-status{
    display:inline;
    flex:0 0 auto;
    padding:0;
    border:0;
    border-radius:0;
    background:none;
    font-size:10px !important;
    font-weight:800;
    line-height:1.2;
}

.marketplace-ticket-status.is-open{
    color:#52d273 !important;
}

.marketplace-ticket-status.is-closed{
    color:#f2ad3a !important;
}

.marketplace-ticket-participants{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.marketplace-ticket-participants > div{
    display:grid;
    gap:4px;
    min-width:0;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:10px;
    background:rgba(255,255,255,.025);
}

.marketplace-ticket-participants strong{
    overflow:hidden;
    color:rgba(255,255,255,.86);
    font-size:10.5px;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.marketplace-ticket-actions{
    display:flex;
    justify-content:flex-end;
}

.marketplace-ticket-close{
    width:auto;
    min-height:36px;
    padding:8px 13px;
    border-radius:9px;
    font-size:10px;
    font-weight:800;
}

.marketplace-thread-list{
    height:min(52vh,520px);
    min-height:280px;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:18px 16px;
    scroll-behavior:smooth;
    scrollbar-width:thin;
}

.marketplace-chat-empty{
    margin:auto 0;
}

.marketplace-chat-row{
    display:flex;
    width:100%;
}

.marketplace-chat-row.is-mine{
    justify-content:flex-end;
}

.marketplace-chat-row.is-other{
    justify-content:flex-start;
}

.marketplace-chat-bubble{
    width:fit-content;
    max-width:min(72%,680px);
    padding:10px 12px 8px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    box-shadow:0 8px 20px rgba(0,0,0,.10);
}

.marketplace-chat-row.is-mine .marketplace-chat-bubble{
    border-bottom-right-radius:5px;
    border-color:rgba(59,130,246,.24);
    background:
        linear-gradient(
            145deg,
            rgba(31,95,184,.30),
            rgba(15,50,103,.42)
        );
}

.marketplace-chat-row.is-other .marketplace-chat-bubble{
    border-bottom-left-radius:5px;
    border-color:rgba(229,151,24,.17);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(72,37,13,.18)
        );
}

.marketplace-chat-sender{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:5px 8px;
    margin-bottom:5px;
}

.marketplace-chat-sender strong{
    color:#fff;
    font-size:9.5px;
}

.marketplace-chat-sender span{
    color:rgba(255,255,255,.42);
    font-size:8.5px;
}

.marketplace-chat-bubble p{
    margin:0;
    color:#fff;
    font-size:11px;
    line-height:1.55;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.marketplace-chat-bubble time{
    display:block;
    margin-top:6px;
    color:rgba(255,255,255,.30);
    font-size:8px;
    text-align:right;
}

.marketplace-thread-compose{
    position:sticky;
    bottom:0;
    z-index:2;
    display:grid;
    gap:9px;
    padding:12px;
    border-top:1px solid rgba(255,255,255,.08);
    background:rgba(8,10,15,.96);
    backdrop-filter:blur(14px);
}

.marketplace-thread-compose textarea{
    width:100%;
    min-height:58px;
    max-height:150px;
    resize:vertical;
    box-sizing:border-box;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:rgba(255,255,255,.045);
    color:#fff;
    padding:12px 13px;
    outline:none;
    font:inherit;
    line-height:1.45;
}

.marketplace-thread-compose textarea:focus{
    border-color:rgba(59,130,246,.60);
    box-shadow:0 0 0 3px rgba(59,130,246,.08);
}

.marketplace-thread-compose textarea::placeholder{
    color:rgba(255,255,255,.36);
}

.marketplace-thread-compose-actions{
    display:flex;
    justify-content:flex-end;
}

.marketplace-thread-send{
    width:auto;
    min-width:94px;
    min-height:38px;
    padding:9px 15px;
    border-radius:9px;
    font-size:10.5px;
    font-weight:800;
}

.marketplace-ticket-closed-note{
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px 14px;
    border-top:1px solid rgba(255,255,255,.07);
    background:rgba(148,163,184,.06);
    color:rgba(255,255,255,.54);
    font-size:10px;
    line-height:1.5;
}

@media(max-width:900px){
    .marketplace-protected-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .marketplace-cart-row{
        grid-template-columns:60px minmax(0,1fr);
    }

    .marketplace-cart-row > label,
    .marketplace-cart-row > strong,
    .marketplace-cart-row > button{
        grid-column:2;
    }
}

@media(max-width:560px){
    .marketplace-protected-grid{
        grid-template-columns:1fr;
    }

    .marketplace-ticket-participants{
        grid-template-columns:1fr;
    }

    .marketplace-chat-bubble{
        max-width:88%;
    }

    .marketplace-thread-list{
        min-height:240px;
        padding:14px 10px;
    }

    .marketplace-thread-header{
        padding:13px;
    }

    .marketplace-seller-application-footer{
        align-items:stretch;
        flex-direction:column;
    }

    .marketplace-seller-submit{
        align-self:flex-end;
    }

    .marketplace-document-upload{
        align-items:stretch;
        flex-direction:column;
    }

    .marketplace-document-picker{
        align-self:flex-start;
    }

    .marketplace-protected-grid label.full{
        grid-column:auto;
    }

    .marketplace-cart-checkout{
        align-items:stretch;
        flex-direction:column;
    }

    .marketplace-cart-checkout > div{
        text-align:left;
    }
}

.marketplace-my-item-manageable{
    grid-template-columns:78px minmax(190px,1fr) minmax(420px,1.3fr);
    align-items:start;
}

.marketplace-my-item-copy{
    min-width:0;
}

.marketplace-listing-manager{
    display:grid;
    gap:10px;
    min-width:0;
}

.marketplace-listing-editor-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}

.marketplace-listing-editor{
    display:grid;
    gap:6px;
    min-width:0;
}

.marketplace-listing-editor > span{
    color:rgba(255,255,255,.52);
    font-size:9px;
    font-weight:800;
    letter-spacing:.045em;
    text-transform:uppercase;
}

.marketplace-listing-editor-controls{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
    min-width:0;
}

.marketplace-listing-editor-input{
    width:100%;
    min-width:0;
    height:36px;
    box-sizing:border-box;
    padding:7px 9px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:8px;
    outline:none;
    background:rgba(0,0,0,.22);
    color:#fff;
    font:inherit;
    font-size:11px;
}

.marketplace-listing-editor-input:focus{
    border-color:rgba(255,153,0,.5);
    box-shadow:0 0 0 3px rgba(255,153,0,.07);
}

.marketplace-listing-editor-controls .btn,
.marketplace-listing-manager-actions .btn{
    min-height:36px;
    padding:7px 10px;
    font-size:10px;
    white-space:nowrap;
}

.marketplace-listing-manager-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:7px;
}

.marketplace-listing-delete-button,
.marketplace-listing-delete-confirm{
    border:1px solid rgba(239,68,68,.4)!important;
    background:rgba(239,68,68,.08)!important;
    color:#ffaaa3!important;
}

.marketplace-listing-delete-button:hover,
.marketplace-listing-delete-confirm:hover{
    border-color:rgba(239,68,68,.65)!important;
    background:rgba(239,68,68,.15)!important;
}

.marketplace-listing-delete-overlay{
    position:fixed;
    inset:0;
    z-index:220000;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(0,0,0,.7);
    opacity:0;
    backdrop-filter:blur(6px);
    transition:opacity .15s ease;
}

.marketplace-listing-delete-overlay.show{
    opacity:1;
}

.marketplace-listing-delete-dialog{
    width:min(360px,100%);
    padding:22px;
    border:1px solid rgba(255,153,0,.24);
    border-radius:14px;
    background:rgba(10,10,10,.98);
    box-shadow:0 24px 70px rgba(0,0,0,.52);
}

.marketplace-listing-delete-dialog h2{
    margin:0 0 18px;
    color:#fff;
    font-size:17px;
}

.marketplace-listing-delete-actions{
    display:flex;
    justify-content:flex-end;
    gap:9px;
}

.marketplace-listing-delete-actions .btn{
    min-width:92px;
    min-height:38px;
}

@media(max-width:980px){
    .marketplace-my-item-manageable{
        grid-template-columns:70px minmax(0,1fr);
    }

    .marketplace-listing-manager{
        grid-column:1/-1;
    }
}

@media(max-width:620px){
    .marketplace-listing-editor-grid{
        grid-template-columns:1fr;
    }

    .marketplace-listing-editor-controls{
        grid-template-columns:1fr;
    }

    .marketplace-listing-manager-actions{
        justify-content:stretch;
    }

    .marketplace-listing-manager-actions .btn{
        flex:1 1 140px;
    }
}



/* ==========================================
   COMPACT CHECKOUT / PAYMENT SURFACES
   ========================================== */

/* The shared checkout page already handles request, subscription,
   playlist and software purchases. Marketplace payments stay inside
   Marketplace, so keep their payable/checkout controls equally compact. */
.marketplace-cart-checkout{
    width:min(100%,500px);
    margin:11px auto 0;
    padding:11px 12px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:rgba(255,255,255,.018);
    justify-content:space-between;
}

.marketplace-cart-checkout > div{
    text-align:left;
}

.marketplace-cart-checkout .btn{
    min-height:40px;
    padding:8px 14px;
    font-size:12px;
}

.marketplace-order-final-actions{
    width:min(100%,500px);
    margin:10px auto 0;
    padding:11px 12px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 110px auto;
    align-items:center;
    gap:10px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background:rgba(255,255,255,.018);
}

.marketplace-order-final-actions > div{
    display:grid;
    gap:2px;
    min-width:0;
}

.marketplace-order-final-actions > div span{
    color:rgba(255,255,255,.48);
    font-size:10px;
}

.marketplace-order-final-actions > div strong{
    color:#fff;
    font-size:12px;
}

.marketplace-payment-currency{
    width:100%;
    min-height:40px;
    padding:8px 10px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:9px;
    background:#0d0d0d;
    color:#fff;
    outline:none;
    font-size:11px;
}

.marketplace-order-pay{
    min-height:40px;
    padding:8px 14px!important;
    font-size:12px!important;
    white-space:nowrap;
}

@media(max-width:620px){
    .marketplace-cart-checkout{
        width:100%;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .marketplace-cart-checkout > div{
        text-align:center;
    }

    .marketplace-cart-checkout .btn{
        width:100%;
        justify-content:center;
    }

    .marketplace-order-final-actions{
        width:100%;
        grid-template-columns:1fr;
        text-align:center;
    }

    .marketplace-order-final-actions > div{
        text-align:center;
    }

    .marketplace-order-pay{
        width:100%;
        justify-content:center;
    }
}
