/* ═══════════════════════════════════════════
   MOWIFI MARKETPLACE v22 — Frontend CSS
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

/* ── Buttons ─────────────────────────────── */
.mwmp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 18px; border-radius: 9999px;
    font-size: .875rem; font-weight: 600; text-decoration: none;
    cursor: pointer; border: 1px solid transparent;
    transition: filter .15s, opacity .15s;
    white-space: nowrap;
}
.mwmp-btn:hover { filter: brightness(.93); text-decoration: none; }
.mwmp-btn-primary  { background: #1a73e8; color: #fff; }
.mwmp-btn-green    { background: #16a34a; color: #fff; }
.mwmp-btn-danger   { background: #ef4444; color: #fff; }
.mwmp-btn-edit     { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.mwmp-btn-renew    { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.mwmp-btn-active   { background: #1a73e8; color: #fff; }
.mwmp-btn-sm       { padding: 5px 12px; font-size: .8rem; }
.mwmp-btn-lg       { padding: 12px 28px; font-size: 1rem; }
.mwmp-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Notices ─────────────────────────────── */
.mwmp-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.mwmp-notice-ok   { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.mwmp-notice-err  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.mwmp-notice-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.mwmp-notice-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Cards ───────────────────────────────── */
.mwmp-card {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 14px; overflow: hidden;
}

/* ── Empty states ────────────────────────── */
.mwmp-empty { padding: 40px; text-align: center; color: #6b7280; }
.mwmp-hidden { display: none !important; }

/* ── Forms ───────────────────────────────── */
.mwmp-form input[type=text],
.mwmp-form input[type=email],
.mwmp-form input[type=tel],
.mwmp-form input[type=number],
.mwmp-form input[type=url],
.mwmp-form input[type=password],
.mwmp-form textarea,
.mwmp-form select {
    width: 100%; padding: 9px 12px;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: .9rem; color: #111827;
    background: #fff; transition: border-color .15s;
}
.mwmp-form input:focus,
.mwmp-form textarea:focus,
.mwmp-form select:focus { outline: none; border-color: #1a73e8; }
.mwmp-form label { display: block; font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.mwmp-fg { display: flex; flex-direction: column; gap: 4px; }
.mwmp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mwmp-full { grid-column: 1 / -1; }
@media(max-width:600px){ .mwmp-grid2 { grid-template-columns: 1fr; } }

/* ── Gate box ────────────────────────────── */
.mwmp-gate {
    max-width: 480px; margin: 40px auto; padding: 40px 32px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
    text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.mwmp-gate-icon { font-size: 3rem; margin-bottom: 12px; }
.mwmp-gate h2   { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.mwmp-gate p    { color: #6b7280; font-size: .95rem; }
.mwmp-gate-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ── Marketplace ─────────────────────────── */
.mwmp-hero {
    background: linear-gradient(135deg,#1a73e8,#1558b0);
    color: #fff; padding: 48px 24px; text-align: center;
    border-radius: 16px; margin-bottom: 20px;
}
.mwmp-hero h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.mwmp-hero p  { opacity: .85; margin-bottom: 20px; }
.mwmp-search-form { display: flex; max-width: 520px; margin: 0 auto; gap: 0; }
.mwmp-search-form input {
    flex: 1; padding: 12px 18px; border: none; border-radius: 9999px 0 0 9999px;
    font-size: 1rem; outline: none;
}
.mwmp-search-form button {
    padding: 12px 20px; background: #f59e0b; color: #fff; border: none;
    border-radius: 0 9999px 9999px 0; font-size: 1.1rem; cursor: pointer;
}

/* ── Filter bar ──────────────────────────── */
.mwmp-filter-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 16px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 12px;
    margin-bottom: 18px;
}
.mwmp-sel {
    flex: 1; min-width: 140px; padding: 8px 10px;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: .875rem; background: #fff; cursor: pointer;
}
.mwmp-filter-btn { flex-shrink: 0; }
@media(max-width:600px){ .mwmp-sel,.mwmp-filter-btn { min-width: 100%; width: 100%; } }

/* ── Banners ─────────────────────────────── */
.mwmp-banners {
    border-radius: 14px; overflow: hidden;
    margin-bottom: 18px; background: #f3f4f6; position: relative;
}
.mwmp-banner-slide { display: none; }
.mwmp-banner-slide.active { display: block; }
.mwmp-banner-slide img { width: 100%; height: 160px; object-fit: cover; display: block; }
@media(min-width:600px){ .mwmp-banner-slide img { height: 200px; } }
@media(min-width:900px){ .mwmp-banner-slide img { height: 240px; } }
.mwmp-banner-dots { display: flex; justify-content: center; gap: 6px; padding: 8px; background: #fff; }
.mwmp-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: #d1d5db; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.mwmp-dot.on { background: #1a73e8; transform: scale(1.3); }
.mwmp-adv-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: #fffbeb; border-top: 1px solid #fde68a; font-size: .85rem; color: #92400e; font-weight: 600; margin-bottom: 16px; }

/* ── Sponsored strip ─────────────────────── */
.mwmp-sponsored-strip {
    display: flex; align-items: center; gap: 10px;
    overflow-x: auto; padding: 10px 14px;
    background: linear-gradient(90deg,#fffbeb,#fef9c3);
    border: 1px solid #fde68a; border-radius: 10px;
    margin-bottom: 14px; scrollbar-width: none;
}
.mwmp-sponsored-strip::-webkit-scrollbar { display: none; }
.mwmp-strip-label { font-size: .75rem; font-weight: 700; color: #92400e; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.mwmp-strip-item {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 12px 4px 6px; background: #fff;
    border: 1px solid #fde68a; border-radius: 9999px;
    text-decoration: none; color: #111827; font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.mwmp-strip-item:hover { background: #fffbeb; text-decoration: none; }
.mwmp-strip-item img, .mwmp-strip-item .avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ── Listings grid ───────────────────────── */
.mwmp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px; margin-bottom: 32px;
}
.mwmp-listing-card { position: relative; transition: box-shadow .2s, transform .2s; }
.mwmp-listing-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-2px); }
.mwmp-listing-card.mwmp-featured { border-color: #f59e0b; }
.mwmp-listing-card.mwmp-paid-listing { border-color: #bfdbfe; }
.mwmp-feat-badge {
    position: absolute; top: 10px; left: 10px;
    background: #f59e0b; color: #fff;
    font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 9999px; z-index: 2;
}
.mwmp-paid-badge {
    position: absolute; top: 10px; left: 10px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff;
    font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 9999px; z-index: 2;
}
.mwmp-feat-badge.mwmp-inline, .mwmp-paid-badge.mwmp-inline {
    position: static; display: inline-block; margin-left: 4px;
}
.mwmp-card-img { display: block; overflow: hidden; background: #f3f4f6; }
.mwmp-thumb { width: 100%; height: 180px; object-fit: cover; display: block; }
.mwmp-no-img { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: #f3f4f6; }
.mwmp-card-body { padding: 14px; }
.mwmp-cat-pill { display: inline-block; background: #eff6ff; color: #1e40af; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 9999px; margin-bottom: 6px; }
.mwmp-cat-pill.active { background: #1a73e8; color: #fff; }
.mwmp-card-body h3 { font-size: .95rem; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.mwmp-card-body h3 a { color: #111827; text-decoration: none; }
.mwmp-card-body h3 a:hover { color: #1a73e8; }
.mwmp-card-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.mwmp-price { font-size: 1.1rem; font-weight: 800; color: #1a73e8; }
.mwmp-loc   { font-size: .8rem; color: #6b7280; }
.mwmp-card-foot { display: flex; gap: 10px; font-size: .75rem; color: #9ca3af; }
.mwmp-cond  { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }
.mwmp-date, .mwmp-views { color: #9ca3af; }

/* ── Expiry info ─────────────────────────── */
.mwmp-expiry-info {
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 10px; padding: 12px 16px;
    margin-bottom: 16px; font-size: .875rem; color: #1e40af;
}
.mwmp-expiry-info.mwmp-expiry-paid { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }

/* ── Location picker ─────────────────────── */
.mwmp-loc-group { margin-bottom: 14px; }
.mwmp-loc-type-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin-bottom: 8px; }
.mwmp-loc-items { display: flex; flex-wrap: wrap; gap: 8px; }
.mwmp-loc-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid #e5e7eb;
    border-radius: 9999px; cursor: pointer;
    font-size: .875rem; color: #374151;
    background: #fff; transition: all .15s; user-select: none;
}
.mwmp-loc-pill:hover { border-color: #1a73e8; background: #eff6ff; }
.mwmp-loc-pill:has(input:checked) { border-color: #1a73e8; background: #eff6ff; color: #1a73e8; font-weight: 600; }
.mwmp-loc-pill input[type=checkbox] { accent-color: #1a73e8; }

/* ── Image upload grid ───────────────────── */
.mwmp-img-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-top: 8px; }
@media(max-width:640px){ .mwmp-img-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:400px){ .mwmp-img-grid { grid-template-columns: repeat(2,1fr); } }
.mwmp-img-slot { position: relative; }
.mwmp-img-ph {
    aspect-ratio: 1; border: 2px dashed #d1d5db; border-radius: 10px;
    cursor: pointer; overflow: hidden; background: #f9fafb;
    transition: border-color .2s, background .2s;
}
.mwmp-img-ph:hover { border-color: #1a73e8; background: #eff6ff; }
.mwmp-img-inner {
    width: 100%; height: 100%; min-height: 80px;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center; border-radius: 8px;
}
.mwmp-img-inner span { font-size: .75rem; color: #9ca3af; text-align: center; padding: 8px; line-height: 1.4; pointer-events: none; }

/* ── Featured toggle ─────────────────────── */
.mwmp-feat-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.mwmp-feat-toggle input { width: 18px; height: 18px; accent-color: #f59e0b; flex-shrink: 0; }
.mwmp-feat-toggle small { color: #6b7280; display: block; }

/* ── Seller Dashboard ────────────────────── */
.mwmp-dashboard { max-width: 960px; margin: 0 auto; }
.mwmp-dash-banner {
    border-radius: 16px; overflow: hidden; position: relative;
    min-height: 180px; background: linear-gradient(135deg,#1a73e8,#1558b0);
    background-size: cover; background-position: center;
    margin-bottom: 20px;
}
.mwmp-dash-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.mwmp-dash-head {
    position: relative; z-index: 1; padding: 28px;
    display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; color: #fff;
}
.mwmp-dash-logo img, .mwmp-dash-logo .avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.5); }
.mwmp-dash-info { flex: 1; }
.mwmp-dash-info h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.mwmp-dash-info p  { font-size: .875rem; opacity: .85; margin: 2px 0; }
.mwmp-plan-widget  { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 12px; padding: 12px 16px; text-align: center; min-width: 130px; color: #fff; }
.mwmp-plan-widget div { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.mwmp-plan-widget small { font-size: .75rem; opacity: .8; display: block; margin-bottom: 8px; }

.mwmp-stats-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.mwmp-stat-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 22px; flex: 1; min-width: 120px; text-align: center; }
.mwmp-stat-box span { display: block; font-size: 1.7rem; font-weight: 800; color: #1a73e8; }
.mwmp-stat-box label { font-size: .75rem; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }

.mwmp-share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .875rem; }
.mwmp-share-bar code { background: #e5e7eb; padding: 4px 8px; border-radius: 6px; font-size: .8rem; word-break: break-all; }

.mwmp-dash-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* ── My listings manage ──────────────────── */
.mwmp-listings-manage { display: flex; flex-direction: column; gap: 10px; }
.mwmp-manage-row {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px;
    flex-wrap: wrap;
}
.mwmp-manage-row.mwmp-expired { opacity: .65; border-left: 3px solid #ef4444; background: #fff5f5; }
.mwmp-mr-thumb img, .mwmp-mr-thumb .no-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.mwmp-no-thumb { width: 64px; height: 64px; background: #f3f4f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.mwmp-mr-info { flex: 1; }
.mwmp-mr-info h4 { font-size: .95rem; font-weight: 700; margin: 0 0 6px; }
.mwmp-mr-info h4 a { color: #111827; text-decoration: none; }
.mwmp-mr-meta { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; min-width: 80px; }
.mwmp-mr-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Badges */
.mwmp-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 9999px; margin-right: 4px; }
.mwmp-status-publish   { background: #d1fae5; color: #065f46; }
.mwmp-status-private   { background: #fee2e2; color: #991b1b; }
.mwmp-status-draft     { background: #fef3c7; color: #92400e; }
.mwmp-status-expired   { background: #fee2e2; color: #991b1b; }
.mwmp-paid   { background: #dbeafe; color: #1e40af; }
.mwmp-free   { background: #f3f4f6; color: #6b7280; }
.mwmp-expiry { display: inline-block; font-size: .75rem; padding: 2px 7px; border-radius: 9999px; background: #f0fdf4; color: #166534; font-weight: 600; }
.mwmp-warn   { background: #fef9c3; color: #854d0e; }
.mwmp-urgent { background: #fee2e2; color: #991b1b; }
.mwmp-plan-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 9999px; }
.mwmp-plan-basic    { background: #d1fae5; color: #065f46; }
.mwmp-plan-pro      { background: #dbeafe; color: #1e40af; }
.mwmp-plan-biz      { background: #fef3c7; color: #92400e; }
.mwmp-sponsored-badge { display: inline-block; background: #f59e0b; color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 9999px; }

/* ── Profile edit ────────────────────────── */
.mwmp-upload-box { grid-column: 1/-1; display: flex; flex-direction: column; gap: 8px; }
.mwmp-upload-preview { margin-bottom: 4px; }
.mwmp-upload-box small { color: #9ca3af; font-size: .78rem; }
@media(min-width:600px){ .mwmp-upload-box { grid-column: auto; } }

/* ── Register form ───────────────────────── */
.mwmp-register-wrap { max-width: 600px; margin: 0 auto; padding: 32px; }
.mwmp-register-wrap h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.mwmp-sub { color: #6b7280; margin-bottom: 20px; }
.mwmp-register-wrap h3 { color: #374151; border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; margin: 20px 0 12px; }

/* ── Shop page ───────────────────────────── */
.mwmp-shop-banner {
    border-radius: 16px; overflow: hidden; position: relative;
    min-height: 200px; background: linear-gradient(135deg,#1a73e8,#1558b0);
    background-size: cover; background-position: center; margin-bottom: 20px;
}
.mwmp-shop-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.mwmp-shop-head {
    position: relative; z-index: 1; padding: 28px;
    display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; color: #fff;
}
.mwmp-shop-logo img, .mwmp-shop-logo .avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.5); }
.mwmp-shop-info { flex: 1; }
.mwmp-shop-info h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.mwmp-shop-bio { font-size: .875rem; opacity: .85; margin: 6px 0; max-width: 500px; }
.mwmp-shop-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .875rem; opacity: .85; margin-top: 8px; }
.mwmp-shop-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.mwmp-shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.mwmp-shop-cats { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Single listing ──────────────────────── */
.mwmp-single { margin-top: 20px; }
.mwmp-meta-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mwmp-big-price { font-size: 2rem; font-weight: 800; color: #1a73e8; margin-bottom: 16px; }
.mwmp-gallery { margin-bottom: 20px; }
.mwmp-gallery-main { border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.mwmp-gallery-main img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.mwmp-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.mwmp-thumb-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: .7; transition: opacity .15s, border-color .15s; }
.mwmp-thumb-img:hover, .mwmp-thumb-img.active { opacity: 1; }
.mwmp-thumb-img.active { border-color: #1a73e8; }
.mwmp-avail-locs { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 14px; font-size: .875rem; color: #14532d; margin-bottom: 16px; }
.mwmp-price-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.mwmp-price-box span { font-size: 1.6rem; font-weight: 800; color: #1a73e8; }
.mwmp-seller-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.mwmp-seller-card h3 { margin: 0 0 12px; font-size: 1rem; }
.mwmp-seller-info { display: flex; gap: 14px; align-items: flex-start; }
.mwmp-seller-logo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ── Plans ───────────────────────────────── */
.mwmp-plans-hero { text-align: center; margin-bottom: 32px; }
.mwmp-plans-hero h1 { font-size: 1.8rem; font-weight: 800; }
.mwmp-plans-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; margin-bottom: 32px; }
.mwmp-plan-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; text-align: center; }
.mwmp-plan-card.mwmp-plan-current { box-shadow: 0 0 0 3px #1a73e8; }
.mwmp-plan-icon { font-size: 2rem; margin-bottom: 8px; }
.mwmp-plan-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.mwmp-plan-price { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.mwmp-plan-price small { font-size: .8rem; font-weight: 400; color: #6b7280; }
.mwmp-plan-perks { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.mwmp-plan-perks li { padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: .875rem; color: #374151; }
.mwmp-free-note { text-align: center; background: #f9fafb; border-radius: 12px; padding: 20px; }

/* ── Checkout ────────────────────────────── */
.mwmp-checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width:700px){ .mwmp-checkout-layout { grid-template-columns: 1fr; } }
.mwmp-pay-tabs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.mwmp-pay-tab { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid #e5e7eb; border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.mwmp-pay-tab.active, .mwmp-pay-tab:has(input:checked) { border-color: #1a73e8; background: #eff6ff; }
.mwmp-pay-tab input { accent-color: #1a73e8; width: 16px; height: 16px; }
.mwmp-pay-icon { font-size: 1.4rem; }
.mwmp-pay-name { font-weight: 700; display: block; }
.mwmp-pay-desc { font-size: .8rem; color: #6b7280; }
.mwmp-pay-panel { padding-top: 8px; }
.mwmp-upload-label { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; cursor: pointer; }
.mwmp-upload-label input { margin-top: 4px; }

/* ── Messages / Inbox ────────────────────── */
.mwmp-messages { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 16px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 16px; }
.mwmp-msg { max-width: 72%; padding: 10px 14px; border-radius: 14px; }
.mwmp-msg-mine   { align-self: flex-end; background: #1a73e8; color: #fff; border-bottom-right-radius: 4px; }
.mwmp-msg-theirs { align-self: flex-start; background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.mwmp-msg-sender { font-size: .7rem; font-weight: 700; opacity: .75; margin-bottom: 4px; }
.mwmp-msg-time   { font-size: .7rem; opacity: .65; text-align: right; margin-top: 4px; }
.mwmp-reply-form textarea { width: 100%; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: .9rem; margin-bottom: 8px; resize: vertical; }
.mwmp-thread-list { display: flex; flex-direction: column; gap: 2px; }
.mwmp-thread { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: #111827; border: 1px solid #f3f4f6; background: #fff; }
.mwmp-thread:hover { background: #f9fafb; }
.mwmp-thread.mwmp-unread { border-color: #1a73e8; background: #eff6ff; }
.mwmp-thread-info { flex: 1; }
.mwmp-thread-info strong { display: block; font-size: .9rem; }
.mwmp-thread-info small { color: #6b7280; font-size: .8rem; }
.mwmp-thread-meta { text-align: right; }
.mwmp-unread-badge { display: inline-block; background: #ef4444; color: #fff; border-radius: 9999px; padding: 2px 7px; font-size: .7rem; font-weight: 700; }
.mwmp-thread-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mwmp-thread-head h3 { font-size: 1rem; }

/* ── Pagination ──────────────────────────── */
.page-numbers { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; margin: 4px; border: 1px solid #e5e7eb; border-radius: 8px; text-decoration: none; color: #374151; }
.page-numbers.current { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* ── Image upload source buttons (file vs camera) ── */
.mwmp-img-slot { position: relative; }
.mwmp-img-src-btns {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 5px;
}
.mwmp-img-src-btn {
    flex: 1;
    padding: 5px 0;
    font-size: .85rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    line-height: 1;
}
.mwmp-img-src-btn:hover { background: #e0f2fe; border-color: #1a73e8; }

/* ── Thumbnail in manage row ── */
.mwmp-thumb-sm { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }

/* ═══════════════════════════════════════════
   LISTING DETAIL PAGE
   ═══════════════════════════════════════════ */

.mwmp-detail-page { max-width: 1000px; margin: 0 auto; }

.mwmp-detail-back {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Two-column layout: image left, details right */
.mwmp-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
@media(max-width: 680px) {
    .mwmp-detail-layout { grid-template-columns: 1fr; }
}

/* Images column */
.mwmp-detail-images { position: sticky; top: 20px; }
.mwmp-gallery-main img {
    width: 100%; max-height: 420px;
    object-fit: contain; border-radius: 12px;
    display: block; background: #f3f4f6;
}
.mwmp-gallery-thumbs {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.mwmp-thumb-img {
    width: 70px; height: 70px; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; opacity: .7;
    transition: opacity .15s, border-color .15s;
}
.mwmp-thumb-img:hover, .mwmp-thumb-img.active { opacity: 1; }
.mwmp-thumb-img.active { border-color: #1a73e8; }

/* Info column */
.mwmp-detail-title {
    font-size: 1.5rem; font-weight: 800;
    color: #111827; margin: 0 0 10px; line-height: 1.3;
}

.mwmp-detail-price {
    font-size: 2.2rem; font-weight: 800;
    color: #1a73e8; margin-bottom: 18px;
}

/* Facts grid */
.mwmp-detail-facts {
    display: flex; flex-direction: column; gap: 8px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 16px;
    margin-bottom: 20px;
}
.mwmp-fact {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px;
    font-size: .875rem;
}
.mwmp-fact-label { color: #6b7280; font-weight: 600; white-space: nowrap; }
.mwmp-fact-val   { color: #111827; text-align: right; }

/* Contact buttons */
.mwmp-detail-contact {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 24px;
}
.mwmp-contact-btn {
    width: 100%; justify-content: center;
    font-size: 1rem !important; padding: 14px 20px !important;
    border-radius: 12px !important;
}

/* Description */
.mwmp-detail-desc h3 { font-size: 1rem; font-weight: 700; color: #374151; margin-bottom: 10px; }
.mwmp-detail-desc-body {
    color: #374151; line-height: 1.7; font-size: .95rem;
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: 14px 16px;
    white-space: pre-wrap;
}

/* Contact form */
.mwmp-contact-textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #d1d5db; border-radius: 10px;
    font-size: .9rem; resize: vertical; display: block;
}
.mwmp-contact-textarea:focus { outline: none; border-color: #1a73e8; }
