/* Custom dropdowns for the pricing calculator (replaces native <select> UI).
   The native select stays in the DOM, hidden, so the calculator JS keeps working. */
.cs { position: relative; width: 100%; }
.cs-native {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
  clip: rect(0 0 0 0); clip-path: inset(50%); margin: -1px;
}
.cs-trigger {
  display: block; width: 100%; text-align: left;
  font: inherit; font-size: var(--pw-md, 1rem); color: var(--pw-ink, #1c1813);
  background: #fdfcfab8;
  border: 1px solid rgba(28, 24, 19, .28); border-radius: var(--pw-r, 3px);
  height: 46px; line-height: 44px; padding: 0 2.1rem 0 .85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: border-color .18s ease, background-color .18s ease;
}
.cs-trigger:hover { border-color: #241a10; }
.cs-trigger[aria-expanded="true"] { border-color: #241a10; background: #fdfcfa; }
.field-row.is-invalid .cs-trigger { border-color: var(--red, #b00); }

.cs-panel {
  list-style: none; margin: 0; padding: 6px; z-index: 9999;
  background: #fdfcfa; border: 1px solid rgba(28, 24, 19, .22); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(10, 9, 8, .20);
  max-height: 300px; overflow-y: auto; font-size: var(--pw-md, 1rem);
  animation: csIn .14s ease;
}
@keyframes csIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cs-opt {
  padding: .62rem .7rem; border-radius: 6px; cursor: pointer;
  color: #1c1813; line-height: 1.3;
  transition: background-color .12s ease, color .12s ease;
}
.cs-opt:hover { background: #efe8dd; }
.cs-opt.is-sel { color: var(--red, #9b3d2b); font-weight: 500; }
.cs-opt.is-sel::after { content: " \2713"; }
@media (prefers-reduced-motion: reduce) { .cs-panel { animation: none; } }
