/* Market4U universal buttons (public pages). One look per meaning, same hover/press everywhere. */
:root{--b-pri:#2563eb;--b-pri-h:#1d4ed8;--b-dng:#dc2626;--b-dng-h:#b91c1c;--b-ok:#16a34a;--b-ok-h:#15803d;--b-soft:#eff6ff;--b-ring:rgba(37,99,235,.35);--b-h:44px;--b-r:10px}

/* ---------- shared shape, motion, focus ---------- */
html body :is(.btn-save,.btn-auth-primary,.btn-wizard-submit,.btn-submit-listing,.btn-submit-contact,.btn-search-submit,.btn-search-hero,.es-btn,.report-submit,.cmp-go,.cmp-modal-btn,.dl-dr-go,.dl-link,.dl-mini,.dl-delbtn,.dl-cancel,.dl-dr-reset,.btn-reset,.btn-clear,.btn-secondary-m4u,.report-cancel,.cmp-clear,.co-back,.of-btn,.offer-btn,.my-ad-edit,.my-ad-delete,.my-ad-promote,.acc-act,.btn-contact-support,.btn-contact-ads,.btn-edit-modal-open,.btn-remove-fav,.btn-site-toggle,.m4u-dialog-actions button,.btn.ghost,a.btn,button.btn){
  box-sizing:border-box;min-height:var(--b-h);padding:0 20px;border:1.5px solid transparent;border-radius:var(--b-r)!important;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;text-decoration:none;cursor:pointer;white-space:normal;
  transition:transform .15s ease,background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;-webkit-tap-highlight-color:transparent;filter:none}
html body :is(.my-ad-edit,.my-ad-delete,.my-ad-promote,.dl-mini,.acc-act,.of-btn,.btn-remove-fav,.btn-site-toggle,.btn-contact-support,.btn-contact-ads,.btn-edit-modal-open){min-height:36px;padding:0 14px;font-size:13px}
html body :is(.btn-save,.btn-auth-primary,.btn-wizard-submit,.btn-submit-listing,.btn-submit-contact,.btn-search-submit,.btn-search-hero,.es-btn,.report-submit,.cmp-go,.cmp-modal-btn,.dl-dr-go,.dl-link,.dl-mini,.dl-delbtn,.dl-cancel,.dl-dr-reset,.btn-reset,.btn-clear,.btn-secondary-m4u,.report-cancel,.cmp-clear,.co-back,.of-btn,.offer-btn,.my-ad-edit,.my-ad-delete,.my-ad-promote,.acc-act,.m4u-dialog-actions button,.btn.ghost,a.btn,button.btn):active:not(:disabled){transform:scale(.97)!important}
html body :is(.btn-save,.btn-auth-primary,.btn-wizard-submit,.btn-submit-listing,.btn-submit-contact,.btn-search-submit,.btn-search-hero,.es-btn,.report-submit,.cmp-go,.cmp-modal-btn,.dl-dr-go,.dl-link,.dl-mini,.dl-delbtn,.dl-cancel,.dl-dr-reset,.btn-reset,.btn-clear,.btn-secondary-m4u,.report-cancel,.cmp-clear,.co-back,.of-btn,.offer-btn,.my-ad-edit,.my-ad-delete,.my-ad-promote,.acc-act,.m4u-dialog-actions button,.btn.ghost,a.btn,button.btn):focus-visible{outline:none!important;box-shadow:0 0 0 3px var(--b-ring)!important}
html body :is(.btn-save,.btn-auth-primary,.btn-wizard-submit,.btn-submit-listing,.btn-submit-contact,.btn-search-submit,.btn-search-hero,.es-btn,.report-submit,.cmp-go,.cmp-modal-btn,.dl-dr-go,.dl-link,.dl-mini,.dl-delbtn,.dl-cancel,.dl-dr-reset,.btn-reset,.btn-clear,.btn-secondary-m4u,.report-cancel,.cmp-clear,.co-back,.of-btn,.offer-btn,.my-ad-edit,.my-ad-delete,.my-ad-promote,.acc-act,.m4u-dialog-actions button,.btn.ghost,a.btn,button.btn):disabled{opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none!important}

/* ---------- primary: blue (main action) ---------- */
html body :is(.btn-save,.btn-auth-primary,.btn-wizard-submit,.btn-submit-listing,.btn-submit-contact,.btn-search-submit,.btn-search-hero,.es-btn,.report-submit,.cmp-go:not(.wait),.cmp-modal-btn,.dl-dr-go,.dl-link.primary,.of-btn.primary,.m4u-dialog-accept:not(.danger),a.btn:not(.ghost),button.btn:not(.ghost)){background:var(--b-pri)!important;background-image:none!important;border-color:var(--b-pri)!important;color:#fff!important;box-shadow:none}
@media(hover:hover){html body :is(.btn-save,.btn-auth-primary,.btn-wizard-submit,.btn-submit-listing,.btn-submit-contact,.btn-search-submit,.btn-search-hero,.es-btn,.report-submit,.cmp-go:not(.wait),.cmp-modal-btn,.dl-dr-go,.dl-link.primary,.of-btn.primary,.m4u-dialog-accept:not(.danger),a.btn:not(.ghost),button.btn:not(.ghost)):hover:not(:disabled){background:var(--b-pri-h)!important;border-color:var(--b-pri-h)!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.28)!important;filter:none}}

/* ---------- secondary: white (cancel, back, side actions) ---------- */
html body :is(.btn-reset,.btn-clear,.btn-secondary-m4u,.report-cancel,.cmp-clear,.co-back,.dl-cancel,.dl-dr-reset,.dl-mini:not(.red),.dl-link:not(.primary),.of-btn:not(.primary):not(.good):not(.bad),.my-ad-edit,.my-ad-promote,.acc-act-out,.m4u-dialog-cancel,.btn.ghost,.btn-contact-support,.btn-contact-ads,.btn-edit-modal-open,.btn-site-toggle){background:#fff!important;background-image:none!important;border-color:#cbd5e1!important;color:#0f172a!important;box-shadow:none}
@media(hover:hover){html body :is(.btn-reset,.btn-clear,.btn-secondary-m4u,.report-cancel,.cmp-clear,.co-back,.dl-cancel,.dl-dr-reset,.dl-mini:not(.red),.dl-link:not(.primary),.of-btn:not(.primary):not(.good):not(.bad),.my-ad-edit,.my-ad-promote,.acc-act-out,.m4u-dialog-cancel,.btn.ghost,.btn-contact-support,.btn-contact-ads,.btn-edit-modal-open,.btn-site-toggle):hover:not(:disabled){background:var(--b-soft)!important;border-color:var(--b-pri)!important;color:var(--b-pri-h)!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.14)!important}}

/* ---------- danger: red outline (first click), solid red (final confirm) ---------- */
html body :is(.my-ad-delete,.acc-act-del,.dl-mini.red,.dl-delbtn,.btn-remove-fav,.report-ad-btn.danger){background:#fff!important;background-image:none!important;border-color:var(--b-dng)!important;color:var(--b-dng)!important;box-shadow:none}
html body :is(.of-btn.bad,.m4u-dialog-accept.danger,.dl-delbtn.solid){background:var(--b-dng)!important;background-image:none!important;border-color:var(--b-dng)!important;color:#fff!important}
@media(hover:hover){
html body :is(.my-ad-delete,.acc-act-del,.dl-mini.red,.dl-delbtn,.btn-remove-fav):hover:not(:disabled){background:#fef2f2!important;border-color:var(--b-dng-h)!important;color:var(--b-dng-h)!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(220,38,38,.16)!important}
html body :is(.of-btn.bad,.m4u-dialog-accept.danger):hover:not(:disabled){background:var(--b-dng-h)!important;border-color:var(--b-dng-h)!important;color:#fff!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(220,38,38,.28)!important}}

/* ---------- success: green ---------- */
html body :is(.of-btn.good,.btn-mark-sold,.btn-activate){background:var(--b-ok)!important;background-image:none!important;border-color:var(--b-ok)!important;color:#fff!important}
@media(hover:hover){html body :is(.of-btn.good,.btn-mark-sold,.btn-activate):hover:not(:disabled){background:var(--b-ok-h)!important;border-color:var(--b-ok-h)!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(22,163,74,.28)!important}}

/* ---------- special: Make an offer (amber) keeps its own colour, same motion ---------- */
html body .offer-btn{background:linear-gradient(135deg,#f59e0b,#f97316)!important;border-color:transparent!important;color:#fff!important;width:100%}
@media(hover:hover){html body .offer-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px rgba(245,158,11,.35)}}

/* ---------- small round icon buttons (close X, remove X): same press + red hover where they delete ---------- */
html body :is(.cmp-remove,.my-ad-remove-declined,.remove-img-btn,.cmp-x,.m4u-dialog-close,.report-close,.btn-close-modal,.dl-dr-x){transition:transform .15s ease,background-color .15s ease,color .15s ease,box-shadow .15s ease}
html body :is(.cmp-remove,.my-ad-remove-declined,.remove-img-btn,.cmp-x):not(:disabled){background:#fee2e2!important;color:var(--b-dng)!important;border:0!important}
@media(hover:hover){html body :is(.cmp-remove,.my-ad-remove-declined,.remove-img-btn,.cmp-x,.m4u-dialog-close,.report-close,.btn-close-modal):hover{background:var(--b-dng)!important;color:#fff!important}}
html body :is(.cmp-remove,.my-ad-remove-declined,.remove-img-btn,.cmp-x,.m4u-dialog-close,.report-close,.btn-close-modal):active{transform:scale(.92)}
html body :is(.cmp-remove,.my-ad-remove-declined,.remove-img-btn,.cmp-x,.m4u-dialog-close,.report-close,.btn-close-modal):focus-visible{outline:none;box-shadow:0 0 0 3px var(--b-ring)}

/* ---------- loading spinner: add class "is-busy" to any button ---------- */
.is-busy{position:relative;pointer-events:none;opacity:.85}
.is-busy::after{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:m4uBtnSpin .7s linear infinite}
@keyframes m4uBtnSpin{to{transform:rotate(360deg)}}

/* ---------- phone: 44px tap height, stacked dialogs ---------- */
@media(max-width:760px){
html body :is(.my-ad-edit,.my-ad-delete,.my-ad-promote,.dl-mini,.acc-act,.of-btn,.btn-remove-fav,.btn-site-toggle,.btn-contact-support,.btn-contact-ads,.btn-edit-modal-open){min-height:44px}
html body .m4u-dialog-actions{display:flex;flex-direction:column-reverse;gap:8px}
html body .m4u-dialog-actions button{width:100%}
html body :is(.btn-save,.btn-submit-listing,.btn-wizard-submit,.btn-submit-contact,.report-submit,.report-cancel){min-height:48px}
}
@media(prefers-reduced-motion:reduce){html body *{transition-duration:.01ms!important}.is-busy::after{animation:none}html body :is(a,button):hover,html body :is(a,button):active{transform:none!important}}

/* ---------- back links, card actions ---------- */
html body :is(.m4u-back-btn,.nav-back-btn){box-sizing:border-box;min-height:40px;padding:0 16px;border-radius:var(--b-r)!important;background:#fff;border:1.5px solid #cbd5e1;color:#0f172a;font-weight:600;display:inline-flex;align-items:center;gap:6px;text-decoration:none;transition:transform .15s ease,background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
html body :is(.btn-card-wa,.cmp-btn){box-sizing:border-box;min-height:34px;padding:0 12px;border-radius:9px!important;font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:transform .15s ease,background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
html body .cmp-btn{background:#fff!important;background-image:none!important;border:1.5px solid #cbd5e1!important;color:#0f172a!important}
html body .btn-card-wa{background:#dcfce7!important;border:1.5px solid var(--b-ok)!important;color:#166534!important}
html body :is(.btn-card-wa,.cmp-btn):active{transform:scale(.97)}
@media(hover:hover){
html body :is(.m4u-back-btn,.nav-back-btn):hover,html body .cmp-btn:hover{background:var(--b-soft)!important;border-color:var(--b-pri)!important;color:var(--b-pri-h)!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.14)}
html body .btn-card-wa:hover{background:var(--b-ok)!important;color:#fff!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(22,163,74,.28)}}
html body :is(.m4u-back-btn,.nav-back-btn,.btn-card-wa,.cmp-btn):active{transform:scale(.97)}
html body :is(.m4u-back-btn,.nav-back-btn,.btn-card-wa,.cmp-btn):focus-visible{outline:none;box-shadow:0 0 0 3px var(--b-ring)}
@media(max-width:760px){html body :is(.m4u-back-btn,.nav-back-btn){min-height:44px}}

/* ---------- ad page seller panel: one even stack (10px gaps, 48px buttons) ---------- */
html body div.seller-panel{display:flex;flex-direction:column;gap:10px}
html body div.seller-panel [hidden]{display:none!important}
html body div.seller-panel>.seller-header{margin:0 0 6px!important}
html body div.seller-panel :is(.dl-visit,.btn-contact-large,#offerBtn,#ownerOffersLink,.cmp-modal-btn,.report-ad-btn){margin:0!important;width:100%;min-height:48px!important;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border-radius:var(--b-r)!important;font-size:14px!important;font-weight:600!important;line-height:1.2!important;font-family:inherit!important}
html body div.seller-panel .btn-contact-large .text{font-size:inherit;font-weight:inherit}
html body div.seller-panel .btn-contact-large.call{background:#0f172a!important;color:#fff!important;border:1.5px solid #0f172a!important}
html body div.seller-panel .btn-contact-large.wa{background:var(--b-ok)!important;color:#fff!important;border:1.5px solid var(--b-ok)!important}
html body div.seller-panel .dl-visit{border:1.5px solid var(--b-pri);background:var(--b-soft);color:#1d4ed8}
html body div.seller-panel #offerBtn{box-shadow:none!important;border:1.5px solid transparent}
html body div.seller-panel #ownerOffersLink{background:#fffbeb;border:1.5px dashed #f59e0b;color:#92400e;font-weight:600}
html body div.seller-panel .cmp-modal-btn{background:#fff!important;border:1.5px solid #cbd5e1!important;color:#0f172a!important}
html body div.seller-panel .cmp-modal-btn.on{background:var(--b-ok)!important;border-color:var(--b-ok)!important;color:#fff!important}
@media(hover:hover){html body div.seller-panel .cmp-modal-btn:not(.on):hover{background:var(--b-soft)!important;border-color:var(--b-pri)!important;color:var(--b-pri-h)!important}
html body div.seller-panel .btn-contact-large:hover{transform:translateY(-1px)}}
html body div.seller-panel :is(.dl-visit,.btn-contact-large,#offerBtn,#ownerOffersLink,.cmp-modal-btn,.report-ad-btn):active{transform:scale(.97)}
html body div.seller-panel #modalChatSellerBtn{margin:0!important;width:100%;min-height:48px!important;padding:0 16px!important;box-sizing:border-box;border-radius:var(--b-r)!important;font-size:14px!important;font-weight:600!important;line-height:1.2!important;font-family:inherit!important;background:var(--b-pri)!important;border:1.5px solid var(--b-pri)!important;color:#fff!important;display:flex;align-items:center;justify-content:center;transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease}
@media(hover:hover){html body div.seller-panel #modalChatSellerBtn:hover{background:var(--b-pri-h)!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.28)}}
html body div.seller-panel #modalChatSellerBtn:active{transform:scale(.97)}
html body div.seller-panel .action-icons{margin:0!important;gap:10px!important}
html body div.seller-panel .action-icons button{min-height:48px!important;border-radius:var(--b-r)!important;margin:0!important}
html body div.seller-panel .btn-contact-large{text-align:center;padding:0 12px}html body div.seller-panel .btn-contact-large .text{white-space:nowrap}

html body .btn-card-wa{gap:6px}
html body .btn-card-wa svg{flex:none}

/* Empty-state buttons: same size, stacked, no hover effect */
.m4u-empty-actions{display:flex;flex-direction:column;align-items:center;gap:10px}
.m4u-empty-btn,.m4u-empty-btn:hover,.m4u-empty-btn:active,.m4u-empty-btn:focus{width:260px;max-width:100%;white-space:nowrap;box-sizing:border-box;min-height:44px;padding:10px 16px!important;border-radius:12px!important;font-size:14px;font-weight:700;margin:0!important;transform:none!important;box-shadow:none!important;transition:none!important;cursor:pointer;font-family:inherit}
#emptyNotifyBtn.m4u-empty-btn,#emptyNotifyBtn.m4u-empty-btn:hover{background:#2563eb!important;color:#fff!important;border:1px solid #2563eb!important}
#emptyResetBtn.m4u-empty-btn,#emptyResetBtn.m4u-empty-btn:hover{background:#fff!important;color:#334155!important;border:1px solid #cbd5e1!important}

/* Home search button: white round, blue icon, no hover effect */
html body #portalSearchBtn.btn-search-hero,html body #portalSearchBtn.btn-search-hero:hover,html body #portalSearchBtn.btn-search-hero:active{display:inline-flex!important;align-items:center;justify-content:center;width:46px!important;height:46px!important;min-width:46px;padding:0!important;border-radius:50%!important;background:#fff!important;background-image:none!important;color:#2563eb!important;border:2px solid #2563eb!important;box-shadow:none!important;transform:none!important;transition:none!important;font-size:0}
html body #portalSearchBtn svg{display:block}

/* No hover / press effect: category tiles, Cancel draft, home search button */
html body .post-cat-item,html body .post-cat-item:hover,html body .post-cat-item:active,html body .post-cat-item:focus,
html body .btn-cancel-draft,html body .btn-cancel-draft:hover,html body .btn-cancel-draft:active,html body .btn-cancel-draft:focus,
html body #portalSearchBtn,html body #portalSearchBtn:hover,html body #portalSearchBtn:active,html body #portalSearchBtn:focus{transform:none!important;transition:none!important;-webkit-tap-highlight-color:transparent}
html body .post-cat-item:hover:not(.disabled),html body .post-cat-item:active{box-shadow:0 4px 12px rgba(37,99,235,.08)!important;border-color:#2563eb!important;background:#eff6ff!important}
html body .btn-cancel-draft,html body .btn-cancel-draft:hover,html body .btn-cancel-draft:active,html body .btn-cancel-draft:focus{background:#fef2f2!important;color:#b91c1c!important;border-color:#fecaca!important;box-shadow:none!important}

/* Subtle hover effects (mouse only): Cancel draft, home search button, category tiles */
@media (hover:hover){
html body button.btn-cancel-draft#cancelPostingDraft:hover:not(:disabled){background:#fee2e2!important;border-color:#fca5a5!important;color:#b91c1c!important;transition:background .15s,border-color .15s!important}
html body button#portalSearchBtn.btn-search-hero:hover{background:#2563eb!important;color:#fff!important;transition:background .15s,color .15s!important}
html body .post-cat-item.active-category:hover:not(.disabled){background:#dbeafe!important;transform:translateY(-2px)!important;transition:transform .15s,background .15s!important}
}
html body button#portalSearchBtn.btn-search-hero:active{background:#1d4ed8!important;color:#fff!important}

/* Empty-state buttons: subtle hover (mouse only) */
@media (hover:hover){
html body button#emptyNotifyBtn.m4u-empty-btn:hover{background:#1d4ed8!important;border-color:#1d4ed8!important;color:#fff!important;box-shadow:0 4px 12px rgba(37,99,235,.25)!important;transition:background .15s,border-color .15s,box-shadow .15s!important}
html body button#emptyResetBtn.m4u-empty-btn:hover{background:#eff6ff!important;border-color:#2563eb!important;color:#1d4ed8!important;transition:background .15s,border-color .15s,color .15s!important}
}

/* Sinhala and Tamil letters join together, so CAPS and letter spacing break them. Turn both off in those languages. */
html[lang="si"] .field-group label, html[lang="ta"] .field-group label,
html[lang="si"] .post-cat-item h4, html[lang="ta"] .post-cat-item h4,
html[lang="si"] label, html[lang="ta"] label {
  text-transform: none;
  letter-spacing: 0;
}
