/* Header anchors the toggle in the filter's upper-right corner. */
#wrapper .coaches .coach-filter-header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 36px;
    width: 100%;
    padding: 8px 0;
    padding-right: 40px;
}

#wrapper .coaches .coach-filter-header h3 {
    margin: 5px;
    font-size:1.1rem;
    color:var(--color-caribbean);
}

#coach-filter-touch-menu {
    position: absolute;
    top:6px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: transparent;
    border-radius:5px;
    background:var(--color-anti-flash-white);
    outline: 3px solid var(--color-caribbean);
    outline-offset: 1px;
    z-index: 1;
}


/* The bars stay fixed relative to each other; only their wrapper rotates. */
#coach-filter-touch-menu .coach-filter-icon {
    position: relative;
    display: block;
    width: 29px;
    height: 30px;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

#coach-filter-touch-menu.animate .coach-filter-icon {
    transform: rotate(90deg);
}

#coach-filter-touch-menu .coach-filter-bar1,
#coach-filter-touch-menu .coach-filter-bar2 {
    position: absolute;
    top: 5px;
    width: 20px;
    height: 5px;
    background-color: var(--color-caribbean);
    border-radius: 7px;
}

/* Sharp downward V; the two lower ends meet at its tip. */
#coach-filter-touch-menu .coach-filter-bar1 {
    left: 4px;
    transform-origin: left center;
    transform: rotate(55deg);
}

#coach-filter-touch-menu .coach-filter-bar2 {
    right: 4px;
    transform-origin: right center;
    transform: rotate(-55deg);
}

.coach-filter {
  margin: 0 auto .25rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid #c9dfe0;
  border-radius: 16px;
  background: #f7fbfa;
  box-shadow: 0 8px 28px rgba(12, 73, 80, .07);
  font-size:.825rem;
}
.coach-filter__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.coach-filter__choices { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; margin-top:12px;}
.coach-filter__choice { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; color: #253f43; font-weight: 600; }
.coach-filter__choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #087580; cursor: pointer; }
.coach-filter__bottom { display: flex; align-items: center; gap: .85rem; margin-top: 1rem; padding-top:.5rem; border-top: 1px solid #d9e8e9; }
.coach-filter__search-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.coach-filter__search { flex: 1; min-width: 0; padding: .8rem 1rem; border: 1px solid #b5cbcd; border-radius: 9px; background: white; color: #243c40; font: inherit; }
.coach-filter__count { margin: .5rem 0!important; color: #526d72; font-size: .9rem; }
.coach-filter__empty { text-align: center; margin: 2rem auto; padding:2rem 0;}
.coach-filter__item[hidden], .coach-filter__empty[hidden] { display: none !important; }

#wrapper .coaches button.coach-filter__clear {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-caribbean);
  border-radius: 9px;
  color: var(--color-caribbean);
  background: var(--color-anti-flash-white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  width:auto;
  font-size:.9rem;
}

#wrapper .coaches button.coach-filter__clear:hover {
  background: #e8f4f2;
}

#wrapper .coaches button.coach-filter__clear:focus-visible {
  outline: 3px solid #e7b544;
  outline-offset: 2px;
}



.coach-filter__panel {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.35s ease;
}

.coach-filter__panel-inner {
	min-height: 0;
	overflow: hidden;
}

.coach-filter__panel.is-closed {
	grid-template-rows: 0fr;
}

@media (prefers-reduced-motion: reduce) {
	.coach-filter__panel,
	#coach-filter-touch-menu .coach-filter-icon {
		transition: none;
	}
}

