.article_wrapper ul.sub-sections-menu li.active {
    background: hsla(5, 100%, 38%, 1);
}

.filter-check {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/***************************Для Все темы*********************************/
.theme-select {
    position: relative;
    width: 300px;
}

.theme-select-button {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 8px 12px 8px 12px;
    border: 1px solid hsla(0, 0%, 77%, 1);
    cursor: pointer;
    transition: all 0.2s;
}

.theme-select-button_hover {
    border: 1px solid hsla(0, 0%, 57%, 1);
}

.theme-select-button_active {
    border: 1px solid hsla(0, 0%, 11%, 1);
}

.theme-selected-text {
    flex-grow: 1;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: hsla(0, 0%, 77%, 1);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 15px;
}

.dropdown-arrow,
.close-icon {
    flex-shrink: 0;
    margin-right: 2px;
    margin-left: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-icon {
    display: none;
}

.theme-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 300px;
    overflow-y: auto;
    background-color: hsla(0, 0%, 96%, 1);
}

.theme-list.visible {
    display: block;
}

.theme-name {
    height: 36px;
    padding: 9px 0 9px 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.theme-selected-text.selected {
    color: hsla(0, 0%, 11%, 1);
    font-size: 14px;
}

.theme-name:hover {
    color: hsla(357, 69%, 46%, 1);
}

.theme-name.selected {
    background: hsla(0, 0%, 91%, 1);
    color: hsla(357, 69%, 46%, 1);
}

.theme-list.visible {
    display: block;
}

.theme-select-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

/***************************Для Всё время*********************************/
.calendar-wrapper {
    position: relative;
    width: 300px;
    display: flex;
    align-items: center;
    border: 1px solid hsla(0, 0%, 77%, 1);
}

.calendar-wrapper_active {
    border: 1px solid hsla(0, 0%, 57%, 1) !important;
}

.calendar-wrapper_selected {
    border: 1px solid hsla(0, 0%, 11%, 1) !important;
}

.form-control {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 300px;
    height: 36px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Merriweather', serif;
    line-height: 1;
    cursor: pointer;
    border: none;
}

.dropdown-calendar-arrow {
    position: absolute;
    right: 14px;
    top: 47%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: none;
}

.dropdown-calendar-arrow.active {
    top: 47%;
}

.form-control::placeholder {
    font-size: 14px;
    font-weight: 500;
    font-family: 'Merriweather', serif;
    line-height: 1;
}

.flatpickr-input {
    padding: 8px;
    width: 300px;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.inRange {
    background: hsla(353, 98%, 41%, 1) !important;
    border-color: hsla(353, 98%, 41%, 1) !important;
    /*border-radius: 0 !important;*/
    color: hsla(0, 0%, 100%, 1) !important;
    -webkit-box-shadow: -5px 0 0 hsla(353, 98%, 41%, 1), 5px 0 0 hsla(353, 98%, 41%, 1) !important;
    box-shadow: -5px 0 0 hsla(353, 98%, 41%, 1), 5px 0 0 hsla(353, 98%, 41%, 1) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg {
    fill: hsla(353, 98%, 41%, 1) !important;
}

.flatpickr-calendar .flatpickr-day.weekend {
    color: hsla(353, 98%, 41%, 1);
    font-weight: bold;
}

.flatpickr-calendar .flatpickr-day.weekend:hover {
    color: hsla(0, 0%, 100%, 1) !important;
}

.flatpickr-calendar {
    border-radius: 0 !important;
    background: hsla(0, 0%, 87%, 1) !important;
    webkit-box-shadow: inherit !important;
    box-shadow: inherit !important;
    font-family: 'Merriweather', serif !important;
}

.flatpickr-calendar .dayContainer {
    min-width: unset !important;
    width: 100% !important;
    min-height: 210px !important; /* Фиксированная высота для 6 строк */
}

.flatpickr-day.future-weekend {
    color: hsla(353, 98%, 41%, 1);
}

/* При наведении на прошедшие выходные */
.flatpickr-day.weekend:hover {
    color: white !important;
    background: hsl(353, 98%, 41%) !important;
}

@media (max-width: 640px) {
    .calendar-wrapper {
        width: 100%;
    }

    .form-control {
        margin: unset;
    }

    .theme-select {
        width: 100%;
    }
}
