/* Marketplace plugin — colours come from the active theme's tokens. */
.mp-box { --mp-primary: var(--color-theme-primary, var(--theme-primary, #4f46e5)); --mp-on-primary: var(--color-theme-on-primary, #fff); --mp-border: var(--color-theme-border, var(--theme-border, #e4e4e7)); --mp-muted: var(--color-theme-muted, var(--theme-text-muted, #71717a)); padding: 1.5rem; border: 1px solid var(--mp-border); border-radius: 1rem; color: var(--color-theme-text, var(--theme-text, inherit)); font-size: .9375rem; }
.mp-box * { box-sizing: border-box; }
.mp-box h3 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.mp-box h4 { margin: 1.5rem 0 .5rem; font-size: 1rem; font-weight: 600; }
.mp-muted { margin: .25rem 0 0; color: var(--mp-muted); font-size: .875rem; }
.mp-note { margin: 1rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--mp-primary); border-radius: .4rem; background: rgba(0, 0, 0, .03); font-size: .875rem; }
.mp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; margin-top: 1rem; }
.mp-form .mp-wide { grid-column: 1 / -1; }
.mp-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .8125rem; font-weight: 600; }
.mp-form input, .mp-form textarea, .mp-form select { width: 100%; padding: .6rem .75rem; border: 1px solid var(--mp-border); border-radius: .6rem; background: transparent; color: inherit; font: inherit; font-weight: 400; }
.mp-error { color: #b91c1c; font-size: .8125rem; font-weight: 400; }
.mp-button { display: inline-flex; align-items: center; padding: .6rem 1.2rem; border: 0; border-radius: 999px; background: var(--mp-primary); color: var(--mp-on-primary); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.mp-link { border: 0; background: none; color: var(--mp-muted); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; }
.mp-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0 0; }
.mp-tabs button { padding: .4rem .9rem; border: 1px solid var(--mp-border); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.mp-tabs button.is-active { border-color: var(--mp-primary); background: var(--mp-primary); color: var(--mp-on-primary); }
.mp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.mp-stats div { padding: .75rem; border: 1px solid var(--mp-border); border-radius: .75rem; font-size: .8rem; color: var(--mp-muted); }
.mp-stats strong { display: block; margin-top: .2rem; font-size: 1.1rem; color: var(--color-theme-text, inherit); }
.mp-table { width: 100%; margin-top: .75rem; border-collapse: collapse; font-size: .85rem; }
.mp-table th, .mp-table td { padding: .5rem .4rem; border-bottom: 1px solid var(--mp-border); text-align: left; }
.mp-table th { color: var(--mp-muted); font-weight: 600; }
.mp-status { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(113, 113, 122, .14); }
.mp-status-pending { background: rgba(245, 158, 11, .16); color: #b45309; }
.mp-status-approved, .mp-status-payable, .mp-status-published { background: rgba(16, 185, 129, .14); color: #047857; }
.mp-status-paid { background: rgba(14, 165, 233, .14); color: #0369a1; }
.mp-status-rejected, .mp-status-suspended, .mp-status-cancelled { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.mp-sold-by { margin-top: .75rem; font-size: .875rem; color: var(--color-theme-muted, #71717a); }
.mp-sold-by a { color: var(--color-theme-primary, inherit); font-weight: 600; }
.mp-shop-head { margin-bottom: 1.5rem; }
.mp-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.mp-gallery { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.mp-thumb { width: 7.5rem; border: 1px solid var(--mp-border); border-radius: .6rem; overflow: hidden; font-size: .75rem; }
.mp-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.mp-thumb-actions { display: flex; justify-content: space-between; padding: .25rem .4rem; }
.mp-thumb-actions .mp-link { font-size: .75rem; }
.mp-thumb.is-featured { border-color: var(--mp-primary); box-shadow: 0 0 0 1px var(--mp-primary); }
.mp-thumb.is-removed { opacity: .35; }
.mp-thumb.is-new { border-style: dashed; }
.mp-row { display: flex; gap: .5rem; margin-top: .4rem; }
.mp-row input { flex: 1; }
.mp-table input, .mp-table select { padding: .35rem .5rem; border: 1px solid var(--mp-border); border-radius: .4rem; background: transparent; color: inherit; font: inherit; }
.mp-thumb-cell { width: 3rem; height: 3rem; object-fit: cover; border-radius: .4rem; }
.mp-plain { padding: 0; border: 0; }
.mp-vendor-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.mp-vendor-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--color-theme-border, #e4e4e7); border-radius: 1rem; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.mp-vendor-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.mp-vendor-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 9rem; background: var(--color-theme-surface-muted, #f4f4f5); }
.mp-vendor-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.mp-vendor-initial { display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: var(--color-theme-primary, #4f46e5); }
.mp-vendor-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
.mp-vendor-body strong { font-size: 1.05rem; }
.mp-vendor-count { margin-top: auto; color: var(--color-theme-primary, #4f46e5); font-size: .85rem; font-weight: 600; }

/* Vendor branding: logo + banner */
.mp-branding { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .mp-branding { grid-template-columns: 1fr; } }
.mp-branding-field { display: flex; flex-direction: column; gap: .5rem; font-size: .8125rem; }
.mp-branding-label { font-weight: 600; }
.mp-logo-preview { display: grid; place-items: center; width: 6rem; height: 6rem; overflow: hidden; border: 1px solid var(--mp-border); border-radius: 1.25rem; background: var(--color-theme-surface-muted, #f4f4f5); font-size: 2rem; font-weight: 700; color: var(--color-theme-primary, #4f46e5); }
.mp-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.mp-banner-preview { display: grid; place-items: center; aspect-ratio: 16 / 5; overflow: hidden; border: 1px dashed var(--mp-border); border-radius: 1rem; background: var(--color-theme-surface-muted, #f4f4f5); color: var(--mp-muted); }
.mp-banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.mp-branding-actions { display: flex; align-items: center; gap: .75rem; }
.mp-form label.mp-upload { display: inline-flex; flex-direction: row; cursor: pointer; padding: .45rem .9rem; border: 1px solid var(--mp-border); border-radius: 9999px; font-weight: 600; }
.mp-form label.mp-upload:hover { border-color: currentColor; }
.mp-vendor-card { position: relative; }
.mp-vendor-banner { height: 9rem; background: var(--color-theme-surface-muted, #f4f4f5); }
.mp-vendor-banner img { width: 100%; height: 100%; object-fit: cover; }
.mp-vendor-logo { position: absolute; top: 6.5rem; left: 1rem; width: 3.5rem; height: 3.5rem; overflow: hidden; border: 3px solid var(--color-theme-surface, #fff); border-radius: 1rem; background: var(--color-theme-surface, #fff); box-shadow: 0 4px 12px rgb(0 0 0 / .12); }
.mp-vendor-logo img { width: 100%; height: 100%; object-fit: cover; }
.mp-vendor-card.has-logo .mp-vendor-body { padding-top: 2rem; }
.mp-shop-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.mp-shop-logo { width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; border: 1px solid var(--color-theme-border, #e4e4e7); border-radius: 1.25rem; background: var(--color-theme-surface, #fff); }
.mp-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.mp-shop-head strong { display: block; font-family: var(--font-title, inherit); font-size: 1.25rem; }
