/* ==========================================================================
   Compatibility for the SMMNepal Reseller plugin (v1.0.0).
   The plugin prints its own light-theme <style> block (.smmn-*) inside each shortcode and some
   inline colours. These rules override it for the dark theme. Selectors start with "body" so they
   win over the plugin's single-class rules. Nothing here changes behaviour, only appearance.
   ========================================================================== */

body .smmn-box label { color: var(--text); }
body .smmn-box input[type=text],
body .smmn-box input[type=url],
body .smmn-box input[type=number],
body .smmn-box select {
	background: var(--bg); color: var(--text); border: 1px solid var(--line);
	border-radius: var(--radius-sm); min-height: 46px; padding: .6rem .8rem; font-size: 1rem;
}
body .smmn-box input:focus, body .smmn-box select:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
body .smmn-box input::placeholder { color: var(--muted); }
body .smmn-box a { color: var(--link); }

body .smmn-btn {
	background: var(--accent); color: #fff; border: 0; border-radius: var(--radius-sm);
	min-height: 44px; padding: .6rem 1.2rem; font-weight: 600; font-family: inherit;
}
body .smmn-btn:hover { background: var(--accent-hi); }
body .smmn-btn.smmn-sm { min-height: 36px; padding: .35rem .8rem; }

body .smmn-muted { color: var(--muted); }
body .smmn-bal { color: var(--text); }
body .smmn-quote { color: var(--text); }
body .smmn-pay label { color: var(--text); }

body .smmn-note { border: 1px solid var(--line); background: var(--panel); }
body .smmn-note.smmn-ok { color: #8be8cc; border-color: #2ed3a2; background: rgba(46, 211, 162, .1); }
body .smmn-note.smmn-warn { color: #fbd38d; border-color: #f59e0b; background: rgba(245, 158, 11, .1); }
body .smmn-note.smmn-err { color: #ffb4c2; border-color: #ff6b87; background: rgba(255, 107, 135, .1); }
body .smmn-note a { color: inherit; text-decoration: underline; }

body .smmn-table th, body .smmn-table td { border-bottom: 1px solid var(--line); color: var(--text); }
body .smmn-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
body .smmn-table a { color: var(--link); }

/* Wallet ledger amounts use inline dark green / red; make them readable on dark. */
body .smmn-table td[style*="#1b5e20"] { color: var(--ok) !important; font-weight: 700; }
body .smmn-table td[style*="#a12727"] { color: var(--bad) !important; font-weight: 700; }

/* Small screens: let the plugin tables scroll inside their own wrapper. */
body .smmn-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 719px) {
	body .smmn-table th, body .smmn-table td { padding: .6rem .5rem; }
	body .smmn-pay label { display: block; margin: .4rem 0; }
}
