.rounded-select { position: relative; display: inline-block; width: 100%; min-width: 0; vertical-align: middle; }
.rounded-select[hidden] { display: none !important; }
.rounded-select .rounded-select-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; opacity: 0 !important; clip-path: inset(50%); pointer-events: none; }
.rounded-select .rounded-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 10px 16px; border: 1px solid #d8ddde; border-radius: 999px; background: #faf8f2; color: var(--lk-vatn-djupt, #204e6b); font: inherit; font-weight: 500; line-height: 1.4; text-align: left; cursor: pointer; box-shadow: none; }
.rounded-select-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded-select .rounded-select-trigger::after { content: ''; flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.rounded-select .rounded-select-trigger:focus-visible, .rounded-select .rounded-select-trigger[aria-expanded=true] { outline: 2px solid #2786aa; outline-offset: 2px; }
.rounded-select .rounded-select-trigger:disabled { opacity: .5; cursor: not-allowed; }
.rounded-select .rounded-select-trigger[aria-invalid=true] { border-color: #a33b32; }
.rounded-select-menu { position: fixed; z-index: 100000; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid #d8ddde; border-radius: 24px; background: #faf8f2; color: var(--lk-vatn-djupt, #204e6b); box-shadow: 0 12px 30px #1d405522; font: 400 16px/1.4 Arial, sans-serif; }
.rounded-select-menu[hidden] { display: none; }
.rounded-select-menu [role=option] { padding: 12px 14px; border-radius: 16px; cursor: pointer; overflow-wrap: anywhere; }
.rounded-select-menu [aria-selected=true] { background: #e8ebde; }
.rounded-select-menu [role=option]:hover, .rounded-select-menu .is-active { background: #e8ebde; outline: 1px solid #c6d4ce; outline-offset: -1px; }
.rounded-select-menu [aria-disabled=true] { opacity: .45; cursor: not-allowed; }
/* Navigation dropdowns use the same soft panel and option corners. */
body .dropdown-content, body.profile-page .dropdown-content, body #map-account-dropdown { border-radius: 24px; padding: 8px; }
body .dropdown-content a { border-radius: 16px; }

.rounded-select-group-heading { padding: 10px 14px 6px; color: var(--lk-steinn, #71828c); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.rounded-select-menu [role=group] + [role=group] { border-top: 1px solid #d8ddde; margin-top: 6px; padding-top: 4px; }
.rounded-select-sports-menu .rounded-select-group-heading, .rounded-select-menu .rounded-select-group { font-weight: 700; border-top: 1px solid #d8ddde; margin-top: 8px; padding: 12px 10px; border-radius: 8px; }
.rounded-select-menu .rounded-select-sport { padding-left: 24px; }
.rounded-select-check { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border: 1px solid #9faeae; border-radius: 4px; margin-right: 10px; vertical-align: middle; font-size: 14px; }

.activity-sport-group { display:flex; align-items:center; gap:8px; padding:12px 4px 8px; margin-top:8px; border-top:1px solid #d8ddde; font-weight:700; color:var(--lk-vatn-djupt); cursor:pointer; }
.activity-sport-group[hidden] { display:none; }

/* Compact text for grouped activity choices (60% of the 16px menu text). */
.rounded-select-sports-menu { font-size: 9.6px; }
.rounded-select-sports-menu .rounded-select-check { font-size: 8.4px; }

/* Tighter activity rows, with a small gap between sport groups. */
.rounded-select-sports-menu [role=option] { padding-top: 5px; padding-bottom: 5px; }
.rounded-select-sports-menu .rounded-select-group,
.rounded-select-sports-menu .rounded-select-group-heading { margin-top: 4px; padding-top: 6px; padding-bottom: 6px; }
