/* Select originale conservato per la logica dell'app; il button ne occupa esattamente il rettangolo. */
.artboard .native-select.rf-compact-native {
  opacity: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.artboard .rf-compact-control {
  position: absolute;
  pointer-events: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #12211c;
  background: transparent;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.artboard .rf-compact-value { pointer-events: none; }
.artboard .rf-compact-chevron {
  display: inline-block;
  flex: none;
  width: .34em;
  height: .34em;
  margin: -.16em 0 0 auto;
  border-right: .09em solid currentColor;
  border-bottom: .09em solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
.artboard .rf-compact-control:hover { color: #0e7a5f; }
.artboard .rf-compact-control:focus-visible {
  outline: 3px solid #0e7a5f;
  outline-offset: 4px;
  border-radius: 3px;
}
.rf-compact-popup {
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  border: 2px solid #d3dcd4;
  border-radius: 8px;
  background: #fdfdf9;
  box-shadow: 0 8px 28px rgba(18, 33, 28, .24);
  color: #12211c;
  font: 16px/1.35 Manrope, Arial, sans-serif;
  scrollbar-width: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.rf-compact-popup[hidden] { display: none !important; }
.rf-compact-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 4px 10px;
  border: 0;
  border-bottom: 1px solid #e4e9e1;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rf-compact-option:last-child { border-bottom: 0; }
.rf-compact-option:hover,
.rf-compact-option:focus-visible,
.rf-compact-option[aria-selected="true"] {
  background: #edf5ef;
}
.rf-compact-option:focus-visible { outline: 2px solid #0e7a5f; outline-offset: -2px; }
.rf-compact-popup-mobile .rf-compact-option { min-height: 44px; }

/* Le frecce sono già presenti negli asset originali del design. */
.artboard .rf-compact-chevron{display:none}
