.mp-product-cover-editor {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px dashed #b9d4c8;
    border-radius: 14px;
    background: #f7fbf9;
}

.mp-product-cover-preview {
    display: grid;
    width: 112px;
    height: 88px;
    flex: 0 0 112px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    background: #e8f0ec;
    color: #789087;
    font-size: 1.6rem;
}

.mp-product-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category and brand configuration belongs to the Marketplace admin view. */
.mp-config-open,
#inlineConfig {
    display: none !important;
}

.mp-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e8efec;
}

.mp-card__master-image {
    position: absolute;
    right: .65rem;
    bottom: .65rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .55rem;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(20,45,37,.78);
    color: #fff;
    font-size: .66rem;
    font-weight: 750;
    backdrop-filter: blur(5px);
}

/* Create/edit listing workspace */
.mp-shell[data-view="create"],
.mp-shell[data-view="edit"] {
    background:
        radial-gradient(circle at 90% 4%, rgba(8,127,91,.08), transparent 24rem),
        #f4f8f6;
}

.mp-shell[data-view="create"] #mpContent > .row,
.mp-shell[data-view="edit"] #mpContent > .row {
    margin-inline: 0;
}

.mp-shell[data-view="create"] #mpContent > .row > .col-xl-9,
.mp-shell[data-view="edit"] #mpContent > .row > .col-xl-9 {
    width: 100%;
    max-width: 1080px;
    padding: 0;
}

.mp-shell[data-view="create"] #mpContent > .row > .col-xl-9 > .mp-title,
.mp-shell[data-view="edit"] #mpContent > .row > .col-xl-9 > .mp-title {
    margin: 0;
    color: #17372c;
    font-size: clamp(1.65rem,3vw,2.3rem);
    font-weight: 900;
    letter-spacing: -.04em;
}

.mp-shell[data-view="create"] #mpContent > .row > .col-xl-9 > .mp-title:before,
.mp-shell[data-view="edit"] #mpContent > .row > .col-xl-9 > .mp-title:before {
    display: inline-grid;
    width: 46px;
    height: 46px;
    margin-right: .7rem;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg,#087f5b,#0ba477);
    color: #fff;
    box-shadow: 0 9px 22px rgba(8,127,91,.2);
    content: '\F64D';
    font-family: bootstrap-icons;
    font-size: 1.2rem;
    vertical-align: middle;
}

.mp-shell[data-view="create"] #mpContent > .row > .col-xl-9 > .text-muted,
.mp-shell[data-view="edit"] #mpContent > .row > .col-xl-9 > .text-muted {
    margin: .55rem 0 1.4rem 3.6rem;
    color: #70847b!important;
}

.mp-shell[data-view="create"] #listingForm,
.mp-shell[data-view="edit"] #listingForm {
    position: relative;
}

.mp-shell[data-view="create"] #listingForm .mp-form-section,
.mp-shell[data-view="edit"] #listingForm .mp-form-section {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.4rem 1.45rem;
    border: 1px solid #dce8e2;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 32px rgba(24,64,49,.06);
    transition: border-color .2s,box-shadow .2s,transform .2s;
}

.mp-shell[data-view="create"] #listingForm .mp-form-section:focus-within,
.mp-shell[data-view="edit"] #listingForm .mp-form-section:focus-within {
    border-color: #9ccfba;
    box-shadow: 0 14px 38px rgba(8,127,91,.1);
    transform: translateY(-1px);
}

.mp-shell[data-view="create"] #listingForm .mp-form-section h2,
.mp-shell[data-view="edit"] #listingForm .mp-form-section h2 {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1.2rem;
    color: #23483a;
    font-size: 1.02rem;
    font-weight: 850;
}

.mp-shell[data-view="create"] #listingForm .mp-form-section h2:before,
.mp-shell[data-view="edit"] #listingForm .mp-form-section h2:before {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    background: #e7f6ef;
    color: #087f5b;
    content: '\F3D1';
    font-family: bootstrap-icons;
    font-size: .9rem;
    font-weight: 900;
}

.mp-shell[data-view="create"] #listingForm .form-label,
.mp-shell[data-view="edit"] #listingForm .form-label {
    margin-bottom: .42rem;
    color: #536c62;
    font-size: .75rem;
    font-weight: 800;
}

.mp-shell[data-view="create"] #listingForm .form-control,
.mp-shell[data-view="create"] #listingForm .form-select,
.mp-shell[data-view="edit"] #listingForm .form-control,
.mp-shell[data-view="edit"] #listingForm .form-select {
    min-height: 47px;
    border-color: #d7e4de;
    border-radius: 12px;
    background-color: #fbfdfc;
    color: #29483c;
}

.mp-shell[data-view="create"] #listingForm textarea.form-control,
.mp-shell[data-view="edit"] #listingForm textarea.form-control {
    min-height: 125px;
    resize: vertical;
}

.mp-shell[data-view="create"] #listingForm .form-control:focus,
.mp-shell[data-view="create"] #listingForm .form-select:focus,
.mp-shell[data-view="edit"] #listingForm .form-control:focus,
.mp-shell[data-view="edit"] #listingForm .form-select:focus {
    border-color: #73b99f;
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(8,127,91,.1);
}

.mp-shell[data-view="create"] #productResults,
.mp-shell[data-view="edit"] #productResults {
    max-height: 290px;
    overflow-y: auto;
    padding: .25rem;
    scrollbar-width: thin;
}

.mp-shell[data-view="create"] .mp-product-choice,
.mp-shell[data-view="edit"] .mp-product-choice {
    position: relative;
    min-height: 72px;
    padding: .85rem 2.6rem .85rem .9rem;
    border-color: #dce7e2;
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s,background .18s,box-shadow .18s,transform .18s;
}

.mp-shell[data-view="create"] .mp-product-choice:hover,
.mp-shell[data-view="edit"] .mp-product-choice:hover {
    border-color: #88c3aa;
    background: #f5fcf8;
    box-shadow: 0 7px 18px rgba(25,72,54,.08);
    transform: translateY(-1px);
}

.mp-shell[data-view="create"] .mp-product-choice.selected,
.mp-shell[data-view="edit"] .mp-product-choice.selected {
    border-color: #087f5b;
    background: #edf9f3;
    box-shadow: 0 0 0 3px rgba(8,127,91,.09);
}

.mp-shell[data-view="create"] .mp-product-choice.selected:after,
.mp-shell[data-view="edit"] .mp-product-choice.selected:after {
    position: absolute;
    top: 50%;
    right: .9rem;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #087f5b;
    color: #fff;
    content: '\F26E';
    font-family: bootstrap-icons;
    font-size: .78rem;
    transform: translateY(-50%);
}

.mp-shell[data-view="create"] #newProductBtn,
.mp-shell[data-view="edit"] #newProductBtn {
    margin-top: .55rem;
    color: #087f5b;
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
}

.mp-shell[data-view="create"] #newProductBox > div,
.mp-shell[data-view="edit"] #newProductBox > div {
    margin-top: .6rem;
    border: 1px dashed #9ecbb8!important;
    border-radius: 15px!important;
    background: #f3fbf7;
}

.mp-shell[data-view="create"] #listingImages,
.mp-shell[data-view="edit"] #listingImages {
    min-height: 92px!important;
    padding: 1.2rem;
    border: 1px dashed #9fcab8;
    background: #f5fbf8;
    cursor: pointer;
}

.mp-shell[data-view="create"] #listingImages::file-selector-button,
.mp-shell[data-view="edit"] #listingImages::file-selector-button {
    margin-right: 1rem;
    padding: .65rem .9rem;
    border: 0;
    border-radius: 10px;
    background: #087f5b;
    color: #fff;
    font-weight: 750;
}

.mp-shell[data-view="create"] #listingForm > button[type="submit"],
.mp-shell[data-view="edit"] #listingForm > button[type="submit"] {
    display: inline-flex;
    min-width: 230px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg,#087f5b,#06996b);
    box-shadow: 0 12px 28px rgba(8,127,91,.2);
    font-size: .9rem;
    font-weight: 850;
}

.mp-shell[data-view="create"] #listingForm > button[type="submit"]:before,
.mp-shell[data-view="edit"] #listingForm > button[type="submit"]:before {
    margin-right: .5rem;
    content: '\F26E';
    font-family: bootstrap-icons;
}

@media (max-width: 767.98px) {
    .mp-product-cover-editor {
        align-items: stretch;
        flex-direction: column;
    }

    .mp-product-cover-preview {
        width: 100%;
        height: 180px;
        flex-basis: auto;
    }

    .mp-shell[data-view="create"] #mpContent > .row > .col-xl-9 > .text-muted,
    .mp-shell[data-view="edit"] #mpContent > .row > .col-xl-9 > .text-muted {
        margin-left: 0;
    }

    .mp-shell[data-view="create"] #listingForm .mp-form-section,
    .mp-shell[data-view="edit"] #listingForm .mp-form-section {
        padding: 1rem;
        border-radius: 16px;
    }

    .mp-shell[data-view="create"] #listingForm > button[type="submit"],
    .mp-shell[data-view="edit"] #listingForm > button[type="submit"] {
        width: 100%;
    }
}
