.rounded-select { position: relative; width: 100%; min-width: 0; }
.rounded-select-native { display: none !important; }
.rounded-select-button {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 48px; padding: 12px 15px;
  border: 1px solid #d9caca; border-radius: 15px; background: #fffdfc;
  color: #4a1925; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.rounded-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded-select-button:hover { border-color: #b7979d; background: #fff; }
.rounded-select-button:focus-visible, .rounded-select.is-open .rounded-select-button {
  border-color: #8b4e5d; box-shadow: 0 0 0 3px #8b4e5d13; outline: none;
}
.rounded-select-button:disabled { opacity: .5; cursor: default; }
.rounded-select-arrow {
  flex: 0 0 8px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; margin-right: 2px;
}
.rounded-select.is-open .rounded-select-arrow { transform: translateY(2px) rotate(225deg); }
.rounded-select-popover {
  position: fixed; z-index: 1300; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  padding: 7px; border: 1px solid #e5d9d9; border-radius: 18px; background: #fffdfc;
  box-shadow: 0 14px 42px #5728341d, 0 2px 7px #57283408; color: #4a1925;
  animation: rounded-select-in .16s ease-out; scrollbar-width: thin; scrollbar-color: #d7c5c8 transparent;
}
.rounded-select-popover[hidden] { display: none; }
.rounded-select-option {
  position: relative; padding: 12px 32px 12px 12px; border-radius: 11px;
  font-size: 14px; line-height: 1.4; cursor: pointer; transition: background .15s;
}
.rounded-select-option:hover, .rounded-select-option.is-active { background: #f6edee; }
.rounded-select-option[aria-selected="true"] { color: #3d5545; background: #eaf0e8; font-weight: 500; }
.rounded-select-option[aria-selected="true"]::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 5px; height: 9px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-65%) rotate(45deg);
}
.rounded-select-option[aria-disabled="true"] { opacity: .45; cursor: default; }
.sort-control:has(.rounded-select) { border: 0; padding: 0; background: transparent; }
.sort-control .rounded-select { min-width: 175px; }
.sort-control .rounded-select-button { min-height: 40px; padding: 8px 13px; border-radius: 13px; }
@keyframes rounded-select-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .rounded-select-popover { animation: none; }
  .rounded-select-button, .rounded-select-arrow, .rounded-select-option { transition: none; }
}
