[hidden] { display: none !important; }
/* MrSoldNow marketplace components */
:root {
	--msn-navy: #0b3a78;
	--msn-navy-dark: #082c5c;
	--msn-blue: #1666d8;
	--msn-blue-light: #e8f1fd;
	--msn-red: #e5252a;
	--msn-red-dark: #c71a1f;
	--msn-text: #10213a;
	--msn-muted: #5a6b82;
	--msn-border: #e1e8f0;
	--msn-bg-soft: #f4f8fd;
	--msn-radius: 10px;
	--msn-shadow: 0 2px 10px rgba(16, 33, 58, .08);
}

/* Buttons --------------------------------------------------------------- */
.msn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.msn-btn:active { transform: translateY(1px); }
.msn-btn-primary { background: var(--msn-blue); color: #fff !important; }
.msn-btn-primary:hover { background: #0f55b9; }
.msn-btn-red { background: var(--msn-red); color: #fff !important; }
.msn-btn-red:hover { background: var(--msn-red-dark); }
.msn-btn-outline { background: #fff; color: var(--msn-blue) !important; border-color: var(--msn-blue); }
.msn-btn-outline:hover { background: var(--msn-blue-light); }
.msn-btn-link { background: none; color: var(--msn-red) !important; padding-left: 6px; padding-right: 6px; }
.msn-btn-sm { padding: 6px 12px; font-size: 13px; }
.msn-btn-lg { padding: 14px 28px; font-size: 17px; }
.msn-btn-block { width: 100%; }
.msn-btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* Listing grid + cards -------------------------------------------------- */
.msn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.msn-card { position: relative; background: #fff; border: 1px solid var(--msn-border); border-radius: var(--msn-radius); overflow: hidden; box-shadow: var(--msn-shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.msn-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16, 33, 58, .14); }
.msn-card-media { position: relative; display: block; aspect-ratio: 1.85 / 1; background: #e9eef5; overflow: hidden; }
.msn-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.msn-card-noimg { display: flex; align-items: center; justify-content: center; height: 100%; }
.msn-card-noimg svg { width: 48px; opacity: .5; }
.msn-price-badge { position: absolute; top: 10px; left: 10px; background: var(--msn-blue); color: #fff; font-weight: 700; font-size: 16px; padding: 3px 10px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.msn-card.is-featured .msn-card-media::after { content: "FEATURED"; position: absolute; bottom: 8px; left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .06em; background: var(--msn-red); color: #fff; padding: 2px 7px; border-radius: 4px; }
.msn-save { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.msn-save svg { width: 26px; height: 26px; fill: rgba(0,0,0,.18); stroke: #fff; stroke-width: 2; transition: fill .15s, transform .15s; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.msn-save:hover svg { transform: scale(1.1); }
.msn-save.is-saved svg { fill: var(--msn-red); stroke: #fff; }
.msn-card-body { padding: 12px 14px 12px; }
.msn-card-title { font-family: 'Inter', sans-serif !important; letter-spacing: 0 !important; font-size: 16px !important; margin: 0 0 6px !important; line-height: 1.3 !important; font-weight: 700; }
.msn-card-title a { color: var(--msn-text) !important; text-decoration: none; }
.msn-card-title a:hover { color: var(--msn-blue) !important; }
.msn-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--msn-muted); margin: 0 0 3px !important; }
.msn-meta svg { width: 13px; height: 13px; fill: #6b7a90; flex: none; }
.msn-empty { padding: 24px; background: var(--msn-bg-soft); border-radius: var(--msn-radius); text-align: center; color: var(--msn-muted); }

/* Category tiles -------------------------------------------------------- */
.msn-cat-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.msn-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 14px 6px; background: #fff; border: 1px solid var(--msn-border); border-radius: var(--msn-radius); box-shadow: var(--msn-shadow); text-align: center; color: var(--msn-text) !important; text-decoration: none !important; font-weight: 600; font-size: 14.5px; line-height: 1.15; transition: transform .15s, box-shadow .15s, border-color .15s; }
.msn-cat:hover { transform: translateY(-3px); border-color: #bcd4f5; box-shadow: 0 8px 20px rgba(22, 102, 216, .15); }
.msn-cat-icon svg { width: 46px; height: 46px; display: block; }
.msn-cat-count { color: var(--msn-muted); font-weight: 400; font-size: 12px; }

/* Forms ----------------------------------------------------------------- */
.msn-form label { display: block; font-weight: 600; font-size: 14px; color: var(--msn-text); margin-bottom: 14px; }
.msn-form input[type=text], .msn-form input[type=email], .msn-form input[type=password], .msn-form input[type=tel], .msn-form input[type=number], .msn-form select, .msn-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #cdd7e3; border-radius: 8px; font-size: 15px; font-weight: 400; background: #fff; color: var(--msn-text); box-shadow: none; }
.msn-form input:focus, .msn-form select:focus, .msn-form textarea:focus { outline: none; border-color: var(--msn-blue); box-shadow: 0 0 0 3px rgba(22, 102, 216, .15); }
.msn-form .msn-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.msn-form .msn-check input { margin-top: 4px; }
.msn-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.msn-col-2 { grid-column: 1 / -1; }
.msn-row-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.msn-row-between .msn-check { margin: 0; }
.msn-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.msn-muted { color: var(--msn-muted); }
.msn-small { font-size: 13px; }
.msn-center { text-align: center; }

.msn-auth-card, .msn-form-card { background: #fff; border: 1px solid var(--msn-border); border-radius: 14px; box-shadow: var(--msn-shadow); padding: 32px; }
.msn-auth-card { max-width: 460px; margin: 10px auto 40px; }
.msn-auth-wide { max-width: 680px; }
.msn-auth-card h2, .msn-form-card h2 { margin-top: 0; font-size: 26px; }
.msn-auth-switch { text-align: center; margin: 18px 0 0; }
.msn-form-card { max-width: 860px; margin: 0 auto 40px; }

.msn-account-type { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msn-account-type legend { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.msn-type-option { position: relative; margin: 0 !important; }
.msn-type-option input { position: absolute; opacity: 0; }
.msn-type-option span { display: block; padding: 14px 16px; border: 2px solid var(--msn-border); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.msn-type-option strong { display: block; font-size: 17px; }
.msn-type-option small { color: var(--msn-muted); font-weight: 400; }
.msn-type-option input:checked + span { border-color: var(--msn-blue); background: var(--msn-blue-light); }
.msn-type-option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22, 102, 216, .3); }

.msn-step { display: flex; align-items: center; gap: 10px; font-size: 18px !important; margin: 26px 0 14px !important; }
.msn-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--msn-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.msn-dropzone { border: 2px dashed #b8c8de; border-radius: 12px; padding: 22px; text-align: center; background: var(--msn-bg-soft); cursor: pointer; font-weight: 400 !important; }
.msn-dropzone input { margin: 0 auto 8px; }
.msn-preview { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.msn-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.msn-existing-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.msn-photo-thumb { margin: 0 !important; text-align: center; font-weight: 400 !important; font-size: 13px !important; }
.msn-photo-thumb img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }

.msn-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 10px; }
.msn-package { position: relative; margin: 0 !important; font-weight: 400 !important; }
.msn-package > input { position: absolute; opacity: 0; }
.msn-package-inner { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border: 2px solid var(--msn-border); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.msn-package.is-featured .msn-package-inner { background: linear-gradient(180deg, #fff 0%, #fff6f6 100%); }
.msn-package > input:checked + .msn-package-inner { border-color: var(--msn-red); box-shadow: 0 0 0 3px rgba(229, 37, 42, .15); }
.msn-package strong { font-size: 16px; }
.msn-package-price { font-size: 28px; color: var(--msn-navy); }
.msn-package small { color: var(--msn-muted); font-size: 13px; }
.msn-packages-static .msn-package-inner { cursor: default; padding: 26px; }
.msn-packages-static .msn-btn { margin-top: auto; }
.msn-ribbon { position: absolute; top: -11px; right: 14px; background: var(--msn-red); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }

/* Alerts & statuses ----------------------------------------------------- */
.msn-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14.5px; }
.msn-alert ul { margin: 0; padding-left: 18px; }
.msn-alert-success { background: #e7f8ee; color: #14532d; border: 1px solid #b7e7c9; }
.msn-alert-error { background: #fdecec; color: #8a1c1c; border: 1px solid #f6c3c3; }
.msn-status { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; background: #eef2f7; color: #334155; }
.msn-status-publish { background: #dcfce7; color: #166534; }
.msn-status-pending { background: #fef3c7; color: #92400e; }
.msn-status-msn_rejected { background: #fee2e2; color: #991b1b; }
.msn-status-msn_awaiting_payment { background: #e0e7ff; color: #3730a3; }
.msn-status-msn_sold { background: #e2e8f0; color: #334155; }
.msn-status-featured { background: #fff1f1; color: var(--msn-red); }
.msn-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--msn-red); color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; margin-left: auto; }

/* Dashboard ------------------------------------------------------------- */
.msn-dashboard { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
.msn-dash-side { background: #fff; border: 1px solid var(--msn-border); border-radius: 14px; padding: 18px; box-shadow: var(--msn-shadow); position: sticky; top: 20px; }
.msn-dash-user { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.msn-dash-user img { border-radius: 50%; }
.msn-dash-user small { display: block; color: var(--msn-muted); }
.msn-dash-nav { display: flex; flex-direction: column; margin-bottom: 14px; }
.msn-dash-nav a { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--msn-text) !important; text-decoration: none !important; font-weight: 500; }
.msn-dash-nav a:hover { background: var(--msn-bg-soft); }
.msn-dash-nav a.is-active { background: var(--msn-blue-light); color: var(--msn-blue) !important; font-weight: 700; }
.msn-dash-main { min-width: 0; }
.msn-dash-main > h2 { margin-top: 0; font-size: 26px; }
.msn-dash-main .msn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.msn-dash-main .msn-form-card { margin: 0; max-width: none; }

.msn-my-listings { display: flex; flex-direction: column; gap: 12px; }
.msn-my-listing { display: flex; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--msn-border); border-radius: 12px; box-shadow: var(--msn-shadow); }
.msn-my-thumb img { width: 110px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
.msn-my-info { flex: 1; min-width: 0; }
.msn-my-info h3 { margin: 0 0 4px !important; font-size: 17px !important; }
.msn-my-info h3 a { color: var(--msn-text); text-decoration: none; }
.msn-my-info p { margin: 0 0 8px !important; font-size: 14px; }
.msn-my-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msn-my-actions form { margin: 0; display: flex; gap: 6px; align-items: center; }
.msn-my-actions select { padding: 5px 8px; border-radius: 6px; border: 1px solid #cdd7e3; font-size: 13px; max-width: 220px; }
.msn-reject-reason { color: #991b1b; background: #fff5f5; padding: 6px 10px; border-radius: 6px; }

.msn-inbox { display: grid; grid-template-columns: 260px 1fr; border: 1px solid var(--msn-border); border-radius: 14px; overflow: hidden; background: #fff; min-height: 360px; }
.msn-threads { list-style: none; margin: 0 !important; padding: 0; border-right: 1px solid var(--msn-border); background: var(--msn-bg-soft); }
.msn-threads a { display: flex; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--msn-border); color: var(--msn-text) !important; text-decoration: none !important; }
.msn-threads a strong { flex: 1; }
.msn-threads a small { width: 100%; color: var(--msn-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msn-threads li.is-active a { background: #fff; box-shadow: inset 3px 0 0 var(--msn-blue); }
.msn-thread { display: flex; flex-direction: column; padding: 16px; }
.msn-thread-head { margin: 0 0 10px !important; font-size: 14px; color: var(--msn-muted); }
.msn-bubbles { flex: 1; display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px; }
.msn-bubble { max-width: 78%; background: var(--msn-bg-soft); border-radius: 14px 14px 14px 4px; padding: 10px 14px; align-self: flex-start; }
.msn-bubble.is-mine { align-self: flex-end; background: var(--msn-blue); color: #fff; border-radius: 14px 14px 4px 14px; }
.msn-bubble p { margin: 0 0 4px !important; }
.msn-bubble small { opacity: .7; font-size: 11px; }
.msn-reply { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.msn-reply textarea { margin: 0 !important; }

.msn-notif-list { list-style: none; margin: 0 !important; padding: 0; }
.msn-notif-list li { padding: 12px 14px; border-bottom: 1px solid var(--msn-border); display: flex; justify-content: space-between; gap: 12px; }
.msn-notif-list li.is-unread { background: var(--msn-blue-light); font-weight: 600; }
.msn-notif-list small { color: var(--msn-muted); white-space: nowrap; font-weight: 400; }

.msn-table-wrap { overflow-x: auto; }
.msn-table, .msn-summary { width: 100%; border-collapse: collapse; background: #fff; }
.msn-table th, .msn-table td, .msn-summary th, .msn-summary td { padding: 10px 12px; border-bottom: 1px solid var(--msn-border); text-align: left; font-size: 14px; }
.msn-summary th { width: 30%; color: var(--msn-muted); font-weight: 500; }
.msn-summary .msn-total td, .msn-summary .msn-total th { font-size: 18px; font-weight: 800; color: var(--msn-text); }
.msn-checkout .msn-form-card { max-width: 560px; }
.msn-pay-options { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.msn-sandbox { border: 1px dashed #f0b429; background: #fffbea; padding: 14px; border-radius: 10px; font-size: 14px; }
.msn-sandbox p { margin: 0 0 10px !important; }

/* Single listing -------------------------------------------------------- */
.msn-single { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin: 10px 0 40px; }
.msn-gallery-main { aspect-ratio: 4 / 3; background: #0f1b2d; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.msn-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.msn-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.msn-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.msn-thumbs button.is-active { border-color: var(--msn-blue); }
.msn-thumbs img { width: 76px; height: 60px; object-fit: cover; display: block; }
.msn-single-side > div { background: #fff; border: 1px solid var(--msn-border); border-radius: 14px; padding: 20px; box-shadow: var(--msn-shadow); margin-bottom: 16px; }
.msn-single-price { font-size: 32px; font-weight: 800; color: var(--msn-blue); margin: 0 0 4px; }
.msn-single h1 { font-size: 28px; margin: 0 0 8px; }
.msn-single-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--msn-muted); font-size: 14px; margin-bottom: 18px; }
.msn-single-desc { background: #fff; border: 1px solid var(--msn-border); border-radius: 14px; padding: 22px; margin-top: 20px; }
.msn-seller { display: flex; gap: 12px; align-items: center; }
.msn-seller img { border-radius: 50%; }
.msn-contact-box .msn-phone { margin-bottom: 12px; }
.msn-preview-note { background: #fef3c7; color: #92400e; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.msn-save-inline { position: static; width: auto; height: auto; border: 2px solid var(--msn-border); border-radius: 8px; padding: 8px 14px; gap: 8px; color: var(--msn-text); font-weight: 600; width: 100%; margin-top: 12px; }
.msn-save-inline svg { fill: none; stroke: var(--msn-red); filter: none; width: 20px; height: 20px; }
.msn-save-inline.is-saved svg { fill: var(--msn-red); stroke: var(--msn-red); }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
	.msn-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.msn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.msn-dashboard { grid-template-columns: 1fr; }
	.msn-dash-side { position: static; }
	.msn-dash-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
	.msn-dash-main .msn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.msn-single { grid-template-columns: 1fr; }
	.msn-packages { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.msn-grid, .msn-dash-main .msn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.msn-card-body { padding: 10px; }
	.msn-card-title { font-size: 14.5px !important; }
	.msn-price-badge { font-size: 14px; top: 7px; left: 7px; }
	.msn-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.msn-cat { min-height: 84px; font-size: 12px; padding: 10px 4px; }
	.msn-cat-icon svg { width: 34px; height: 34px; }
	.msn-grid-2, .msn-account-type { grid-template-columns: 1fr; }
	.msn-auth-card, .msn-form-card { padding: 20px; }
	.msn-inbox { grid-template-columns: 1fr; }
	.msn-threads { border-right: 0; border-bottom: 1px solid var(--msn-border); max-height: 200px; overflow-y: auto; }
	.msn-my-listing { flex-direction: column; }
	.msn-my-thumb img { width: 100%; height: 160px; }
	.msn-reply { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
	.msn-grid, .msn-dash-main .msn-grid { grid-template-columns: 1fr; }
}
