/* Challenge Arena 2.5.4374 — searchable country selectors, selected-country tags and RTL form alignment */
.arena-country-select + .select2-container{width:100%!important;max-width:100%}
.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple{min-height:38px;border:1px solid var(--bs-border-color,#dee2e6);border-radius:.55rem;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#212529);transition:border-color .15s ease,box-shadow .15s ease}
.select2-container--default.select2-container--focus .select2-selection--single,.select2-container--default.select2-container--focus .select2-selection--multiple,.select2-container--default.select2-container--open .select2-selection--single,.select2-container--default.select2-container--open .select2-selection--multiple{border-color:color-mix(in srgb,var(--arena-accent,#6f42c1) 58%,#fff);box-shadow:0 0 0 .2rem color-mix(in srgb,var(--arena-accent,#6f42c1) 18%,transparent)}
.select2-container--default .select2-selection--single .select2-selection__rendered{display:flex;align-items:center;min-height:36px;padding-inline:.75rem 2.2rem;color:inherit;line-height:1.35}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:36px;inset-inline-end:.35rem;inset-inline-start:auto}
.select2-container--default .select2-selection--multiple{display:flex;align-items:center;padding:.2rem .35rem;cursor:text}
.select2-container--default .select2-selection--multiple .select2-selection__rendered{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;width:100%;margin:0;padding:0}
.select2-container--default .select2-selection--multiple .select2-selection__choice{display:inline-flex;align-items:center;gap:.35rem;max-width:100%;margin:0;padding:.35rem .55rem;border:1px solid color-mix(in srgb,var(--arena-accent,#6f42c1) 28%,var(--bs-border-color,#dee2e6));border-radius:999px;background:color-mix(in srgb,var(--arena-accent,#6f42c1) 10%,var(--bs-body-bg,#fff));color:var(--bs-body-color,#212529);font-size:.82rem;font-weight:700}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{position:static;order:2;display:grid;place-items:center;width:18px;height:18px;margin:0;border:0;border-radius:50%;color:inherit;background:rgba(127,127,127,.12);font-size:1rem;line-height:1}
.select2-container--default .select2-search--inline .select2-search__field{height:28px;margin:0;padding-inline:.3rem;color:var(--bs-body-color,#212529);font-family:inherit}
.select2-dropdown{z-index:1090;border-color:var(--bs-border-color,#dee2e6);border-radius:.65rem;background:var(--bs-body-bg,#fff);box-shadow:0 16px 45px rgba(23,21,43,.16);overflow:hidden}
.select2-search--dropdown{padding:.55rem}.select2-search--dropdown .select2-search__field{min-height:38px;border:1px solid var(--bs-border-color,#dee2e6);border-radius:.5rem;padding-inline:.7rem;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#212529);font-family:inherit}
.select2-results__options{max-height:280px!important}.select2-container--default .select2-results__option{padding:.55rem .7rem;color:var(--bs-body-color,#212529)}
.select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--arena-accent,#6f42c1);color:#fff}.select2-container--default .select2-results__option[aria-selected=true]{background:color-mix(in srgb,var(--arena-accent,#6f42c1) 12%,var(--bs-body-bg,#fff))}
.arena-country-option{display:flex;align-items:center;gap:.55rem;min-width:0}.arena-country-flag{flex:0 0 auto;font-size:1.12rem;line-height:1}.arena-country-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.arena-country-code{margin-inline-start:auto;color:var(--bs-secondary-color,#6c757d);font-size:.7rem;font-weight:800;letter-spacing:.06em}
.app-body .select2-container--default .select2-selection--single,.app-body .select2-container--default .select2-selection--multiple,.app-body .select2-dropdown,.app-body .select2-search--dropdown .select2-search__field{background:var(--bs-body-bg,#fff)}
.public-body .select2-container--default .select2-selection--single,.arena-lb-public .select2-container--default .select2-selection--single{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#fff}.public-body .select2-container--default .select2-selection--single .select2-selection__rendered,.arena-lb-public .select2-container--default .select2-selection--single .select2-selection__rendered{color:#fff}.public-body .select2-container--default .select2-selection--single .select2-selection__arrow b,.arena-lb-public .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#fff transparent transparent transparent}

/* Bootstrap LTR stylesheet corrections when the document is Arabic. */
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .form-select{background-position:left .75rem center;padding-right:.75rem;padding-left:2.25rem}
html[dir="rtl"] .form-check{padding-right:1.5em;padding-left:0;text-align:right}
html[dir="rtl"] .form-check .form-check-input{float:right;margin-right:-1.5em;margin-left:0}
html[dir="rtl"] .form-switch{padding-right:2.5em;padding-left:0}
html[dir="rtl"] .form-switch .form-check-input{margin-right:-2.5em;margin-left:0;background-position:right center}
html[dir="rtl"] .form-switch .form-check-input:checked{background-position:left center}
html[dir="rtl"] .select2-container{direction:rtl;text-align:right}
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered{padding-right:.75rem;padding-left:2.2rem}
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow{left:.35rem;right:auto}
html[dir="rtl"] .select2-container--default .select2-selection--multiple .select2-selection__rendered{padding-right:0}
html[dir="rtl"] .select2-container--default .select2-selection--multiple .select2-selection__choice{direction:rtl}
html[dir="rtl"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{order:2}
html[dir="rtl"] .select2-search--dropdown .select2-search__field,html[dir="rtl"] .select2-search--inline .select2-search__field{text-align:right;direction:rtl}
html[dir="rtl"] .modal-header .btn-close{margin:-.5rem auto -.5rem -.5rem}
html[dir="rtl"] .dropdown-menu-end{right:auto!important;left:0!important;text-align:right}
html[dir="rtl"] .text-end{text-align:left!important}html[dir="rtl"] .text-start{text-align:right!important}
html[dir="rtl"] .me-1{margin-right:0!important;margin-left:.25rem!important}html[dir="rtl"] .me-2{margin-right:0!important;margin-left:.5rem!important}html[dir="rtl"] .me-3{margin-right:0!important;margin-left:1rem!important}
html[dir="rtl"] .ms-1{margin-left:0!important;margin-right:.25rem!important}html[dir="rtl"] .ms-2{margin-left:0!important;margin-right:.5rem!important}html[dir="rtl"] .ms-3{margin-left:0!important;margin-right:1rem!important}
html[dir="rtl"] .me-4{margin-right:0!important;margin-left:1.5rem!important}html[dir="rtl"] .ms-4{margin-left:0!important;margin-right:1.5rem!important}
html[dir="rtl"] .me-auto{margin-right:0!important;margin-left:auto!important}html[dir="rtl"] .ms-auto{margin-left:0!important;margin-right:auto!important}
html[dir="rtl"] .border-start{border-left:0!important;border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}html[dir="rtl"] .border-end{border-right:0!important;border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}
html[dir="rtl"] .rounded-start{border-top-left-radius:0!important;border-bottom-left-radius:0!important;border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}html[dir="rtl"] .rounded-end{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-top-left-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}
html[dir="rtl"] .float-start{float:right!important}html[dir="rtl"] .float-end{float:left!important}
html[dir="rtl"] .bi-arrow-right,html[dir="rtl"] .bi-arrow-left,html[dir="rtl"] .bi-chevron-right,html[dir="rtl"] .bi-chevron-left,html[dir="rtl"] .bi-box-arrow-right{display:inline-block;transform:scaleX(-1)}
html[dir="rtl"] .input-group>:not(:first-child){margin-right:-1px;margin-left:0}html[dir="rtl"] .input-group>:first-child{border-radius:0 .5rem .5rem 0}html[dir="rtl"] .input-group>:last-child{border-radius:.5rem 0 0 .5rem}
@media(max-width:575.98px){.select2-container--default .select2-selection--multiple .select2-selection__choice{max-width:100%;font-size:.76rem}.arena-country-code{display:none}}


/* 2.5.4381 — local image country flags with two remote SVG fallbacks; no OS-dependent regional-indicator rendering. */
.arena-country-flag-visual{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:1.45em;min-width:1.45em;aspect-ratio:3/2;overflow:hidden;border-radius:.18rem;background:var(--bs-tertiary-bg,#f0f1f4);box-shadow:0 0 0 1px rgba(20,25,40,.12);vertical-align:-.14em}
.arena-country-flag-image{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;opacity:0;transition:opacity .1s linear}
.arena-country-flag-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:.82em;line-height:1;white-space:nowrap}
.arena-country-flag-visual.is-loaded .arena-country-flag-image{opacity:1}
.arena-country-flag-visual.is-loaded .arena-country-flag-fallback{visibility:hidden}
.arena-country-flag-visual.is-failed{width:auto;min-width:1.45em;overflow:visible;background:transparent;box-shadow:none}
.arena-country-option .arena-country-flag{font-size:1rem}
.select2-selection__choice .arena-country-flag-visual{width:1.25em;min-width:1.25em}
.event-country-chip .arena-country-flag-visual{width:1.35em;min-width:1.35em}
.lb-admin-avatar .arena-country-flag-visual,.lb-avatar .arena-country-flag-visual{width:2rem;min-width:2rem}
.arena-country-chip-grid .arena-country-flag-visual{width:1.75rem;min-width:1.75rem}
