h1 {
    text-align: center;
    padding: 24px 16px;
    font-weight: 500;
}

.plan-std-search-page h5 {
    text-align: center;
}

.plan-std-search-page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 24px;
    position: relative;
    min-height: 100vh;
    background-color: var(--color-surface);
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 16px 0;
    z-index: 0;
}

.std-plan-list-header {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 32px;
    width: 100%;
}

.std-plan-list-header:first-of-type {
    padding-top: 0;
}

.row {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.search-info {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
}

.plan-cards .divider {
    grid-column: 1 / -1;
}
.sub-header {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    background-color: var(--color-surface);
    position: sticky;
    top: 64px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 16px; 
    min-height: 56px;
    width: 100%;
    row-gap: 12px;
    z-index: 1;
}

.sub-header .amda-btn.icon {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    position: relative;
    padding: 16px 16px;
}

.search-box input {
    background-color: var(--color-surface-container-high);
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 48px;
    border: 0;
    color: var(--color-on-surface);
    font-family: var(--title-small-font-family-name);
    font-style: var(--title-small-font-family-style);
    font-weight: var(--title-small-font-weight);
    font-size: var(--title-small-font-size);
}

.search-box input::placeholder {
    color: var(--color-on-surface-variant);
}

.search-box .amda-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-surface-container-high);
}

.sort-by {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-left: auto;
    padding: 16px 16px;
} 

.sort-by > h6 {
    display:flex;
    align-items: center;
    margin-right: 8px;
}

.mob-filter-btn {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    column-gap: 8px;
    min-width: 80px;
    height: 40px;
    padding: 8px 24px 8px 16px;
    border: var(--outline-btn-border);
    border-radius: 20px;
    cursor: pointer;
}

.mob-filter-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--color-on-surface);
}

.num-results {
    display: block;
    width: 100%;
    padding: 8px var(--page-pad);
    font-weight: 500;
    font-size: 18px;
    background-color: #f8f8f8;
}

.plan-cards {
    grid-column: 1 / -1;
    grid-row: 3 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 0 16px;
}

.common {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.common h4 {
    margin-bottom: 8px;
}

.common ul {
    list-style: none;
    display: flex;
    width: 100%;
    gap: 8px;
}

.common li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search {
    width: 100%;
    margin: 0 auto;
}

.search ul {
    display: flex;
    flex-direction: column;
}

.search h4 {
    text-align: center;
}

@media (min-width: 549px) {
    .common {
        flex-direction: row;
    }

    .common .search {
        width: calc((100% - 24px) / 2);
        margin: 0;
    }
}


@media (min-width: 590px) {
    .plan-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 800px) {
    .plan-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.forms {
    grid-column: 1 / 2;
    grid-row: 1 / -1;
    width: min(80%, 256px);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    overflow-y: scroll;
    overscroll-behavior-y: contain;
    transform: translateX(-100%);
    transition: var(--exit-screen);
    background-color: var(--color-surface-container-lowest);
}

.menu-header {
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8px 4px;
    background-color: var(--color-surface-container-low);
}

.scrim.for-filters {
    z-index: 1;
}

.forms.slideR {
    transform: translateX(0);
    transition: var(--enter-screen);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px;
    position: sticky;
    top: 0;
    background-color: var(--color-surface-container-lowest);
    border-bottom: var(--border-light);
    z-index: 1;
}

.filters-header svg {
    width: 24px;
    height: 24px;
    fill: var(--color-on-surface);
}

.filters {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    padding: 24px 16px;
}

.forms h6 {
    color: var(--color-on-surface);
    font-family: var(--title-medium-font-family-name);
    font-style: var(--title-medium-font-family-style);
    font-weight: var(--title-medium-font-weight);
    font-size: var(--title-medium-font-size);
}

.filter-group.flex {
    display: flex;
    flex-direction: column;
    column-gap: 24px;
}

.filter-group:first-child {
    border-top: 0;
}

.filter-group > h6 {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.filter-list {
    list-style: none;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
}

.filter-item {
    position: relative;
    width: 100%;
}

.filter-list > .show-more-content {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
}

.show-more-btn {
    padding: 16px 24px;
    cursor: pointer;
    color: var(--color-on-surface);
}

.show-more-txt:after {
    content: "+ More";
}

.filter-list > #showmore:checked ~ label > .show-more-txt:after {
    content: "- Less";
}

.show-more-content.expanded {
    max-height: 9999px;
}

.filters label {
    color: var(--color-on-surface);
    font-family: var(--label-large-font-family-name);
    font-style: var(--label-large-font-family-style);
    font-weight: var(--label-large-font-weight);
    font-size: var(--label-large-font-size);
}

.filter-item label {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 16px;
    height: 40px;
    cursor: pointer;
}

.filter-item label > span:last-child {
    margin-left: 40px;
}

.pseudo-checkbox {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    border-radius: 4px;
    background-color: var(--color-surface-container-high);
}

.filter-item > input[type=checkbox] ~ label > .pseudo-checkbox:after {
    content: "";
    display: none;
    position: absolute;
    left: 8px;
    top: 3px;
    width: 8px;
    height: 14px;
    border: solid var(--color-on-primary);
    border-width: 0 3px 3px 0;
    transform: rotate(40deg);
}

.filter-item > input[type=checkbox]:checked ~ label > .pseudo-checkbox {
    background-color: var(--color-primary);
}

.filter-item > input[type=checkbox]:checked ~ label > .pseudo-checkbox:after {
    display: block;
}

.filter-chip-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.filter-chip {
    height: 32px;
}

.filter-chip > label {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    line-height: 1;
    border-radius: 8px;
    color: var(--color-on-surface);
    border: var(--border-light);
}

/* all filter types need work on colors */
.filter-chip > input[type=checkbox]:checked + label {
    background-color: var(--color-primary-container);
    color:var(--color-on-primary-container);
}

.segmented-filter-list {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
}

.segmented-chip {
    height: 32px;
    flex-grow: 1;
}

.segmented-chip:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.segmented-chip > label {
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border-light);
    border-left: 0;
}

.segmented-chip > input[type=checkbox]:checked + label {
    border-right: var(--border-light);
    background-color: var(--color-primary-container);
    color: var(--color-on-primary-container);
}

.segmented-chip:first-child > label {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: var(--border-light);
}

.segmented-chip:last-child > label {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.filter-actions {
    width: 100%;
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 16px;
    row-gap: 8px;
    background-color: var(--color-surface-container-lowest);
    padding: 24px 16px;
    border-top: var(--border-light);
}

/* sliders */
.min-max-input {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 16px;
    margin: 16px 0;
    row-gap: 28px;
}

.range-input {
    display: flex;
    flex-direction: row;
    column-gap: 16px;
    row-gap: 8px;
    width: 100%;
}

.text-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 48px;
    flex-grow: 1;
    border-radius: 8px;
    border: var(--border-light);
    background-color: var(--color-surface-container-high);
}

.text-input > .ud {
    margin-left: auto;
    width: 1px;
    height: 65%;
    background-color: var(--color-outline-variant);
}

.text-input > span {
    padding: 0 8px;
    color: var(--color-on-surface-variant);
    height: 65%;
    border-left: 1px solid var(--color-outline-variant);
    display:flex;
    align-items: center;
}

.text-input > input[type=text] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 100%;
    width: 100%;
    padding: 8px 4px 8px 16px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border: 0;
    background-color: transparent;
    color: var(--color-on-surface);
}

.text-input > input:focus {
    outline: none;
    background-color: var(--color-primary-container);
    border-right: 1px solid var(--color-outline);
}

.text-input > input:focus + span {
    border-left: none;
}

.text-input > input:focus-visible {
    outline-color: none;
}

.slider-container {
    width: 100%;
    position: relative;
}

.slider {
    width: 100%;
    height: 4px;
    background-color: var(--color-surface-container-highest);
    position: relative;
    border-radius: 2px;
}

.slider .between {
    height: 4px;
    position: absolute;
    border-radius: 5px;
    background-color: var(--primary-light);
    opacity: .8;
}

.slider-input {
    position: relative;
    width: 100%;
}

.slider-input > input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    pointer-events: none;
    cursor: pointer;
    width: 100%;
    position: absolute;
    background: none;
    top: -11px;
}

.slider-input > input[type=range]::-webkit-slider-thumb {
    width: 12px;
    height: 24px;
    border-radius: 8px;
    background-color: var(--primary-container-light);
    pointer-events: auto;
    -webkit-appearance: none;
    box-shadow: none;
    border: 2px solid var(--color-outline);
}

.slider-input > input[type=range]::-moz-range-thumb {
    width: 12px;
    height: 24px;
    border-radius: 8px;
    background-color: var(--primary-container-light);
    pointer-events: auto;
    -moz-appearance: none;
    box-shadow: none;
    border: 2px solid var(--color-outline);
}

.paginator.bot {
    grid-column: 1 / -1;
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.paginator.bot .amda-btn {
    border: 1px solid var(--color-outline);
}

@media (max-width: 349px) {
    .numfilters span:first-of-type {
        display: none;
    }
}

@media (min-width: 991px) {
    .plan-std-search-page {
        position: relative;
        display: grid;
        grid-template-columns: 256px auto;
        grid-template-rows: auto auto;
        padding: 16px;
    }

    .sub-header {
        display: none;
    }

    .forms {
        grid-column: 1 / 2;
        grid-row: 2 / -1;
        position: sticky;
        top: calc(64px + 24px);
        transform: translateX(0);
        height: calc(100vh - 64px - 24px - 24px);
        width: 100%;
        z-index: 0;
        background-color: var(--color-surface-container-lowest);
        border-radius: 8px;
        border: var(--border-light);
    }

    .mob-filter-btn {
        display: none;
    }

    .menu-header {
        display: none;
    }

    .plan-cards {
        grid-column: 2 / -1;
        grid-row: 2 / -1;
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .paginator.bot {
        grid-column: 2 / -1;
    }
