#abrir-cotizacion { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.cot-badge { min-width: 1.45em; padding: .12em .4em; border-radius: 4px; text-align: center; background: #243b54; color: white; font-size: .82em; font-variant-numeric: tabular-nums; }
.cot-badge[hidden], .cot-dialog [hidden] { display: none; }
#products .card:has(.cot-add) { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: 1fr auto; }
#products .card .cot-add { grid-column: 1/-1; justify-self: start; }
.cot-add { background: white; color: #80380f; border: 1px solid #bb9d88; border-radius: 6px; font-weight: 650; padding: .35rem .8rem; min-height: 36px; }
.cot-add:hover { border-color: #8a4018; background: #fcf5f0; }
.cot-dialog { box-sizing: border-box; width: min(38rem,calc(100% - 1.25rem)); max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; margin: auto; padding: clamp(18px,4vw,32px); border: 1px solid #bed0df; border-radius: 14px; background: white; color: #192c42; box-shadow: 0 18px 65px #10223857; }
.cot-dialog::backdrop { background: rgb(16 31 49 / .63); }
.cot-dialog .cot-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid #b66534; }
.cot-dialog h2 { font: 700 clamp(1.45rem,3vw,1.95rem)/1.16 system-ui,sans-serif; letter-spacing: -.035em; }
.cot-dialog button, .cot-dialog a { font: 650 .95rem/1.35 system-ui,sans-serif; min-height: 42px; border-radius: 6px; padding: .55rem .9rem; }
.cot-close, .cot-copy { color: #20374e; background: white; border: 1px solid #95a5b6; }
.cot-close:hover, .cot-copy:hover { background: #eef2f6; }
.cot-items { list-style: none; margin: 0; padding: 0; }
.cot-items li { display: grid; grid-template-columns: minmax(0,1fr) 6rem auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #d1dbe3; }
.cot-items strong { font-size: 1rem; line-height: 1.36; overflow-wrap: anywhere; }
.cot-items label { display: grid; gap: .25rem; font-size: .8rem; color: #465c72; }
.cot-items input { text-align: left; padding: .42rem .6rem; border: 1px solid #8999ab; border-radius: 5px; background: white; color: #192c42; font: 600 1rem/1.3 system-ui,sans-serif; font-variant-numeric: tabular-nums; }
.cot-items input[aria-invalid="true"] { border: 2px solid #a44623; }
.cot-items .cot-remove { color: #843c18; background: transparent; border: 0; text-decoration: underline; text-underline-offset: .15em; }
.cot-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.cot-actions .cot-mail { display: inline-flex; align-items: center; background: #954319; color: white; border: 1px solid transparent; text-decoration: none; }
.cot-actions .cot-mail:hover { background: #78330f; }
.cot-actions :disabled, .cot-mail[aria-disabled=true] { opacity: .65; cursor: default; }
.cot-empty { margin: 1.15rem 0 .25rem; }
.cot-help,.cot-status { margin: .8rem 0 0; font-size: .88rem; line-height: 1.5; color: #4a6075; }
.cot-status:empty { display: none; }
.cot-manual { box-sizing: border-box; width: 100%; min-height: 6rem; margin-top: .5rem; font: inherit; }
@media(max-width:560px){
  .cot-items li { grid-template-columns: 1fr auto; gap: .5rem .9rem; }
  .cot-items strong { grid-column: 1/-1; }
  .cot-items input { width: 7rem; }
  .cot-actions > * { flex: 1 1 auto; justify-content: center; text-align: center; }
}
