.cs-quote-add { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.cs-quote-add .cs-quote-add-btn { cursor: pointer; gap: .4rem; }
.cs-quote-add .cs-quote-add-btn.cs-added { opacity: .85; }
.cs-quote-add-loop { width: 100%; }
.cs-quote-add-loop .cs-quote-add-btn { width: 100%; }
.cs-quote-add-single { margin: 1rem 0; }
.cs-quote-qty-wrap { display: inline-flex; align-items: stretch; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; overflow: hidden; height: 48px; }
.cs-quote-qty-wrap .cs-qty-step { background: none; border: 0; width: 40px; font-size: 1.2rem; cursor: pointer; }
.cs-quote-qty-wrap .cs-quote-qty { width: 56px; border: 0; text-align: center; -moz-appearance: textfield; }
.cs-quote-qty-wrap .cs-quote-qty::-webkit-inner-spin-button, .cs-quote-qty-wrap .cs-quote-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cs-quote-view { display: inline-block; margin-left: .25rem; text-decoration: underline; }
.cs-quote-add-loop .cs-quote-view { margin: .35rem 0 0; font-size: .9em; }
.cs-quote-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cs-quote-table th, .cs-quote-table td { padding: .6rem .5rem; border-bottom: 1px solid rgba(0,0,0,.1); text-align: left; }
.cs-quote-table .cs-line-qty { width: 5rem; }
.cs-line-remove { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #a00; }
.cs-quote-form .cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.cs-quote-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.cs-quote-form label span { color: #a00; }
.cs-quote-form input, .cs-quote-form textarea { width: 100%; }
.cs-quote-form .cs-full { margin-top: .5rem; }
.cs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cs-notice { padding: .75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.cs-notice-ok { background: #e6f4ea; border: 1px solid #b7dfc4; }
.cs-notice-error { background: #fdeaea; border: 1px solid #f5c2c2; }
.cs-quote-count { display: inline-block; min-width: 1.4em; text-align: center; }
.cs-portal .cs-num { text-align: right; white-space: nowrap; }
.cs-portal-account, .cs-portal-meta { color: #555; }
.cs-pill { display: inline-block; font-size: .75em; padding: .15em .6em; border-radius: 1em; background: #eee; vertical-align: middle; font-weight: 600; }
.cs-pill-enviado, .cs-pill-en_negociacion { background: #fff4d6; color: #7a5a00; }
.cs-pill-aceptado, .cs-pill-convertido { background: #e6f4ea; color: #1e6b34; }
.cs-pill-rechazado, .cs-pill-vencido, .cs-pill-cancelado { background: #f3f3f3; color: #666; }
.cs-portal-box { border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: .75rem 1rem; margin: 0 0 .75rem; }
.cs-portal-box summary { cursor: pointer; display: flex; gap: .4rem; flex-wrap: wrap; align-items: baseline; }
.cs-portal-box summary .cs-num { margin-left: auto; }
.cs-portal-box textarea, .cs-portal-box input[type=text], .cs-portal-box select { width: 100%; max-width: 32rem; }
.cs-quote-table tfoot td { border-bottom: 0; }
.cs-quote-table .cs-total td { font-size: 1.1em; }
.cs-portal-link { padding: 2rem 0; }
.cs-portal-link .container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.cs-portal-user { background: #f6f7f7; border-radius: 6px; padding: .75rem 1rem; margin-bottom: 1rem; }

/* ------------------------------------------------------------------ */
/* Presupuesto que ve el cliente (enlace y «Mi cuenta»)               */
/* ------------------------------------------------------------------ */
.cs-portal-detail { --cs-brand: #1a7fc1; --cs-brand-dark: #135f92; --cs-ink: #1d2a36; --cs-muted: #5f6b77; --cs-line: #e1e6eb; --cs-soft: #f4f7fa; color: var(--cs-ink); }
.cs-portal-detail .cs-muted { color: var(--cs-muted); }
.cs-qd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.cs-qd-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--cs-brand); }
.cs-qd-title { margin: .1rem 0 .35rem; font-size: 1.6rem; line-height: 1.2; }
.cs-qd-total { text-align: right; background: var(--cs-soft); border-radius: 10px; padding: .75rem 1.1rem; }
.cs-qd-total span { display: block; font-size: .8rem; color: var(--cs-muted); }
.cs-qd-total strong { display: block; font-size: 1.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cs-qd-total small { color: var(--cs-muted); }
.cs-table-scroll { overflow-x: auto; }
.cs-portal-detail .cs-quote-table { font-variant-numeric: tabular-nums; }
.cs-portal-detail .cs-quote-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cs-muted); border-bottom: 2px solid var(--cs-line); }
.cs-portal-detail .cs-quote-table td { border-bottom-color: var(--cs-line); }
.cs-qd-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1.5rem; margin: 0 0 1.25rem; }
.cs-qd-terms div { margin: 0; }
.cs-qd-terms .cs-qd-wide { grid-column: 1 / -1; }
.cs-qd-terms dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cs-muted); }
.cs-qd-terms dd { margin: .15rem 0 0; font-weight: 600; }

/* Botones propios (no dependen del tema) */
.cs-btn { display: inline-block; border-radius: 8px; padding: .7rem 1.2rem; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.cs-btn-primary { background: var(--cs-brand, #1a7fc1); color: #fff; }
.cs-btn-primary:hover { background: var(--cs-brand-dark, #135f92); color: #fff; }
.cs-btn-ghost { background: #fff; color: var(--cs-brand, #1a7fc1); border-color: var(--cs-brand, #1a7fc1); }
.cs-btn-ghost:hover { background: var(--cs-soft, #f4f7fa); }
.cs-btn-link { background: none; color: var(--cs-muted, #5f6b77); text-decoration: underline; padding-left: .25rem; padding-right: .25rem; font-weight: 600; }
.cs-btn-big { font-size: 1.05rem; padding: .85rem 1.4rem; width: 100%; max-width: 28rem; }
.cs-btn:focus-visible, .cs-qd-choice summary:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }

/* Responder: tres opciones, una abierta a la vez */
.cs-qd-respond { border-top: 1px solid var(--cs-line); margin-top: 1.5rem; padding-top: 1.25rem; }
.cs-qd-respond h3 { margin: 0 0 .9rem; font-size: 1.15rem; }
.cs-qd-choice { display: inline; }
.cs-qd-choice summary { display: inline-block; list-style: none; margin: 0 .5rem .6rem 0; }
.cs-qd-choice summary::-webkit-details-marker { display: none; }
.cs-qd-choice[open] summary .cs-btn-ghost { background: var(--cs-soft); }
.cs-qd-choice[open] summary .cs-btn-link { color: var(--cs-ink); }
.cs-qd-panel { display: block; background: var(--cs-soft); border-radius: 10px; padding: 1rem 1.2rem; margin: .25rem 0 1rem; max-width: 40rem; }
.cs-qd-accept .cs-qd-panel { border-left: 4px solid var(--cs-brand); }
.cs-qd-panel label { display: block; font-weight: 600; margin-bottom: .3rem; }
.cs-qd-panel input[type=text], .cs-qd-panel textarea, .cs-qd-panel select { width: 100%; max-width: 100%; box-sizing: border-box; padding: .55rem .65rem; border: 1px solid #c8d0d8; border-radius: 6px; font: inherit; background: #fff; }
.cs-qd-lead { margin: 0 0 .5rem; font-weight: 600; }
.cs-qd-summary { list-style: none; margin: 0 0 1rem; padding: 0; }
.cs-qd-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed #cfd7df; }
.cs-qd-summary li span { color: var(--cs-muted); }
.cs-qd-fine { font-size: .85rem; margin: .25rem 0 0; }

/* Página del enlace: sin el tema de la web */
.cs-link-body { margin: 0; background: #eef2f6; color: #1d2a36; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
.cs-link-wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.cs-link-top { background: #fff; border-bottom: 1px solid #e1e6eb; }
.cs-link-top .cs-link-wrap { padding-top: 14px; padding-bottom: 14px; }
.cs-link-logo { display: block; height: 52px; width: auto; }
.cs-link-brand { font-size: 1.3rem; }
.cs-link-body main.cs-portal-link { background: #fff; border-radius: 12px; margin: 24px auto; padding: 24px; box-shadow: 0 1px 3px rgba(20,40,60,.08); }
.cs-link-foot { color: #5f6b77; font-size: .88rem; padding: 8px 0 32px; }
.cs-link-foot p { margin: .2rem 0; }
.cs-link-foot a { color: inherit; }
@media (max-width: 600px) {
	.cs-link-body main.cs-portal-link { margin: 12px 8px; padding: 16px; border-radius: 10px; }
	.cs-qd-total { text-align: left; width: 100%; }
	.cs-qd-choice summary, .cs-qd-choice summary .cs-btn { display: block; width: 100%; text-align: center; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) { .cs-btn { transition: none; } }
