#cotizacion {
  box-sizing: border-box;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: clamp(1rem, 5vw, 2rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #a0a8b4;
  border-radius: 12px;
  color: #11151a;
  background: #f9f7f4;
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.5;
}

#cotizacion::backdrop { background: rgb(11 27 52 / 65%); }

.quote-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.quote-header h2 {
  margin: 0;
  color: #0b1b34;
  font-size: clamp(1.375rem, 5vw, 1.875rem);
  line-height: 1.2;
}

.quote-intro { margin: 0.5rem 0 1.25rem; }

#cotizacion form,
.quote-result:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.quote-result { margin-top: 1.25rem; }
#cotizacion label { font-weight: 700; }

#cotizacion select,
#cotizacion textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  border: 1px solid #788292;
  border-radius: 6px;
  color: inherit;
  background: #fff;
  font: inherit;
}

#cotizacion select { margin-bottom: 0.375rem; }
#cotizacion textarea { resize: vertical; }

#cotizacion button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quote-close {
  flex: none;
  min-width: 44px;
  color: #0b1b34;
  background: transparent;
}

#cotizacion .quote-close { font-size: 1.5rem; }
.quote-close:hover { background: #e8ebf1; }

.quote-button {
  justify-self: start;
  padding: 0.5rem 0.875rem;
  color: #fff;
  background: #1554e8;
}

.quote-button:hover { background: #1243b8; }
.quote-status { margin: 0; font-size: 0.875rem; }

#cotizacion :focus-visible {
  outline: 2px solid #1554e8;
  outline-offset: 2px;
}
