/* MiniSun Pro — public registration form + My Account business page.
   Neutral, theme-agnostic; the theme sets typography & brand colours via the --msp-* tokens. */

:root {
	--msp-accent: #d9821f;        /* placeholder — replace with MiniSun Pro brand */
	--msp-border: #ddd;
	--msp-muted: #666;
	--msp-error: #b3261e;
	--msp-success: #1e7d3a;
	--msp-info: #1f5fa8;
	--msp-radius: 8px;
}

.msp-register { max-width: 720px; margin-inline: auto; }
.msp-register fieldset { border: 1px solid var(--msp-border); border-radius: var(--msp-radius); padding: 1rem 1.25rem 0.5rem; margin: 0 0 1.5rem; }
.msp-register legend { padding-inline: 0.5rem; font-weight: 600; }

.msp-field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.msp-field label { font-weight: 500; }
.msp-field .req { color: var(--msp-error); }
.msp-field input:not([type="checkbox"]):not([type="file"]),
.msp-field select,
.msp-field textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--msp-border); border-radius: var(--msp-radius); font: inherit; }
.msp-field input:focus, .msp-field select:focus, .msp-field textarea:focus { outline: 2px solid var(--msp-accent); outline-offset: 1px; border-color: var(--msp-accent); }
.msp-field small { color: var(--msp-muted); }
.msp-field.has-error input, .msp-field.has-error select { border-color: var(--msp-error); }
.msp-field-error { color: var(--msp-error); font-size: 0.9em; }
.msp-field--check label { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }

.msp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .msp-row { grid-template-columns: 1fr; } }

.msp-submit { display: flex; flex-direction: column; gap: 0.5rem; }
.msp-submit .button { padding: 0.8rem 1.5rem; font-weight: 600; }
.msp-submit small { color: var(--msp-muted); }

.msp-alert { padding: 0.85rem 1rem; border-radius: var(--msp-radius); margin: 0 0 1.25rem; border: 1px solid; }
.msp-alert--error   { border-color: var(--msp-error);   background: color-mix(in srgb, var(--msp-error) 8%, white); }
.msp-alert--success { border-color: var(--msp-success); background: color-mix(in srgb, var(--msp-success) 8%, white); }
.msp-alert--info    { border-color: var(--msp-info);    background: color-mix(in srgb, var(--msp-info) 8%, white); }

/* My Account: business details */
.msp-status { font-size: 1.05em; }
.msp-status--approved strong { color: var(--msp-success); }
.msp-status--pending  strong { color: var(--msp-info); }
.msp-status--rejected strong { color: var(--msp-error); }
.msp-details { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.msp-details th { text-align: start; width: 30%; color: var(--msp-muted); font-weight: 500; padding: 0.4rem 0; vertical-align: top; }
.msp-details td { padding: 0.4rem 0; }
.msp-docs { list-style: none; padding: 0; margin: 0 0 1rem; }
.msp-docs li { padding: 0.4rem 0; border-bottom: 1px solid var(--msp-border); }
.msp-docs small { color: var(--msp-muted); }
.msp-upload { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; padding: 1rem; border: 1px dashed var(--msp-border); border-radius: var(--msp-radius); }
.msp-upload label { flex-basis: 100%; font-weight: 500; }

/* Catalog */
.msp-price-placeholder { color: var(--msp-muted); font-size: 0.95em; }
.msp-min-qty { display: inline-block; font-size: .8rem; color: var(--msp-muted); border: 1px dashed var(--msp-border); border-radius: 999px; padding: .1rem .6rem; margin: .3rem 0; }
.woocommerce ul.products li.product .msp-min-qty { margin: .4rem 1rem 0; }
.msp-rl__min { display: block; color: var(--msp-muted); font-size: .75rem; text-align: center; }
.msp-register-cta { margin-top: 1rem; }

/* Product page: request-list form / CTAs */
.msp-cta { padding: 1rem 1.25rem; border: 1px solid var(--msp-border); border-radius: var(--msp-radius); margin: 1rem 0; }
.msp-cta p { margin: 0 0 0.75rem; }
.msp-cta__login { margin-inline-start: 0.75rem; }
.msp-add { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.msp-add__field { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 500; }
.msp-add__field input, .msp-add__field select { padding: 0.6rem 0.75rem; border: 1px solid var(--msp-border); border-radius: var(--msp-radius); font: inherit; }
.msp-add__row { display: grid; grid-template-columns: 110px 1fr; gap: 0.75rem; }
.msp-add__btn { align-self: flex-start; }
.msp-add__view { font-size: 0.95em; }

/* Request list page */
.msp-rl { overflow-x: auto; }
.msp-rl__table td, .msp-rl__table th { vertical-align: middle; }
.msp-rl__product { min-width: 240px; }
.msp-rl__product a { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.msp-rl__product img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.msp-rl__product small { display: block; color: var(--msp-muted); }
.msp-rl__qty input { width: 80px; text-align: center; }
.msp-rl__remove { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--msp-muted); cursor: pointer; }
.msp-rl__remove:hover { color: var(--msp-error); }
.msp-rl__delivery { border: 1px solid var(--msp-border); border-radius: var(--msp-radius); padding: .9rem 1.1rem .6rem; margin: 1rem 0; display: grid; gap: .5rem; }
.msp-rl__delivery legend { padding-inline: .4rem; font-weight: 600; }
.msp-rl__delivery label { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.msp-rl__delivery small { color: var(--msp-muted); font-weight: 400; }
.msp-rl__message { display: flex; flex-direction: column; gap: 0.35rem; margin: 1rem 0; font-weight: 500; }
.msp-rl__message textarea { padding: 0.6rem 0.75rem; border: 1px solid var(--msp-border); border-radius: var(--msp-radius); font: inherit; }
.msp-rl__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.msp-rl__hint { color: var(--msp-muted); font-size: 0.9em; }
.msp-rl-link { display: inline-flex; gap: 0.4rem; align-items: center; }
.msp-rl-count { background: var(--msp-accent); color: #fff; border-radius: 999px; padding: 0 0.5rem; font-size: 0.8em; }

/* Quote panel (order view) */
.msp-quote { padding: 1.25rem 1.5rem; border: 1px solid var(--msp-border); border-inline-start: 4px solid var(--msp-info); border-radius: var(--msp-radius); margin-bottom: 1.5rem; }
.msp-quote--quoted { border-inline-start-color: var(--msp-accent); }
.msp-quote--quote-accepted, .msp-quote--processing, .msp-quote--completed { border-inline-start-color: var(--msp-success); }
.msp-quote--quote-declined, .msp-quote--quote-rejected, .msp-quote--quote-expired { border-inline-start-color: var(--msp-error); }
.msp-quote h3 { margin: 0 0 0.5rem; }
.msp-quote__message { white-space: pre-line; }
.msp-quote__expiry { font-weight: 600; }
.msp-quote__actions { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.msp-quote__reject summary { cursor: pointer; color: var(--msp-muted); }
.msp-quote__reject form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; max-width: 480px; }
.msp-quote__reject textarea { padding: 0.6rem 0.75rem; border: 1px solid var(--msp-border); border-radius: var(--msp-radius); font: inherit; }
.msp-quote__hint { color: var(--msp-muted); font-size: 0.9em; }
.msp-tbq { color: var(--msp-muted); font-style: italic; }
