:root {
    --color-black: #353748;
    --color-light-gray: #EFF1F3;
    --color-medium-gray: #D0CDCD;
    --color-red: #EB112A;
    --color-dark-gray: #5E5E5E;
}

#dynamic-category-wrapper {
    margin: 0 auto;
}

.categories__search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
	padding: 26px 32px;
	background-color:var(--color-light-gray);
	display:flex;
	justify-content: space-between;
}

.categories__search {
    width: 90%;
    font-size: 24px;
    border: none !important;
    background-color: transparent !important;
    box-sizing: border-box;
}

.categories__search::placeholder {
	color:var(--color-black);
}

.categories__search-icon {
    width: 20px;
    height: 20px;
	align-self:center;
}


.categories__select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    display: none;
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px;
    background-color: var(--color-light-gray);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    height: 80px;
}

.custom-select-content {
    display: flex;
    align-items: center;
    gap: 16px;
}


.custom-select-text {
    font-size: 24px;
    color: var(--color-black);
}

.custom-select-arrow-icon {
    width: 20px;
    height: 20px;
	transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.custom-select-trigger.open .custom-select-arrow-icon {
    transform: rotate(0deg);
}

.custom-select-options {
    display: none;
    position: absolute;
    background-color: var(--color-light-gray);
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--color-medium-gray);
    z-index: 99;
    top: 100%;
    left: 0;
}

.custom-select-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-select-option img {
    margin-right: 16px;
}

.custom-select-option:hover {
    background-color: var(--color-medium-gray);
}

.custom-select-option--active {
    background-color: var(--color-light-gray);
    border: 3px solid var(--color-red);
}


.categories__top-left-corner,
.categories__top-right-corner,
.categories__bottom-left-corner,
.categories__bottom-right-corner {
    position: absolute;
    display: none;
    background-color: var(--color-red);
}

.categories__top-left-corner {
    width: 22px;
    height: 8px;
    top: 0;
    left: 0;
}

.categories__top-left-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    top: 0;
    left: 0;
    background-color: var(--color-red);
}

.categories__bottom-left-corner {
    width: 22px;
    height: 8px;
    bottom: 0;
    left: 0;
}

.categories__bottom-left-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    bottom: 0;
    left: 0;
    background-color: var(--color-red);
}

.categories__top-right-corner {
    width: 22px;
    height: 8px;
    top: 0;
    right: 0;
}

.categories__top-right-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    top: 0;
    right: 0;
    background-color: var(--color-red);
}

.categories__bottom-right-corner {
    width: 22px;
    height: 8px;
    bottom: 0;
    right: 0;
}

.categories__bottom-right-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    bottom: 0;
    right: 0;
    background-color: var(--color-red);
}

#dynamic-category-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

#dynamic-category-content .categories__btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 64px;
}

#dynamic-category-content .categories__btn {
    background-color: var(--color-light-gray);
    border: none;
    color: var(--color-black);
    padding: 26px 32px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    gap: 16px;
    transition: color 0.3s ease, background-color 0.3s ease;
    width: auto;
    white-space: nowrap;
	position:relative;
}

#dynamic-category-content .categories__btn:hover,
#dynamic-category-content .categories__btn--active {
    color: var(--color-red);
    background-color: var(--color-light-gray);
}


.categories__arrow {
    display: none;
    width: 40px;
    height: 40px;
    background-color: var(--color-red);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 24px;
}

.categories__arrow .categories__arrow-svg {
    height: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#dynamic-category-content .categories__btn--active + .categories__arrow {
    display: block;
}

#dynamic-category-content__content {
    border: 5px solid var(--color-red);
    padding: 20px;
    margin-top: 40px;
}

#dynamic-category-content__content .categories__box {
    display: none;
	display: flex;
	flex-direction: column;
	gap:40px;
}

#dynamic-category-content__content .categories__box--active {
    display: flex;
	flex-direction: column;
	gap:40px;
}

#dynamic-category-content__content .categories__title {
    font-size: 24px;
	font-weight:bold;
    color: var(--color-black);
    margin-bottom: 8px;
	padding:0;
}

#dynamic-category-content__content .categories__title .category-name{
	font-size: 14px;
	font-weight:400;
}

#dynamic-category-content__content .categories__text {
    font-size: 18px;
    color: var(--color-dark-gray);
    line-height: 1.5;
}


#dynamic-category-content .categories__top-left-corner,
#dynamic-category-content .categories__top-right-corner,
#dynamic-category-content .categories__bottom-left-corner,
#dynamic-category-content .categories__bottom-right-corner,
#dynamic-category-content .categories__top-left-corner::after,
#dynamic-category-content .categories__top-right-corner::after,
#dynamic-category-content .categories__bottom-left-corner::after,
#dynamic-category-content .categories__bottom-right-corner::after
{
	position: absolute;
	display: none;
	background-color:var(--color-red);
}

#dynamic-category-content .categories__btn--active .categories__top-left-corner,
#dynamic-category-content .categories__btn--active .categories__top-right-corner,
#dynamic-category-content .categories__btn--active .categories__bottom-left-corner,
#dynamic-category-content .categories__btn--active .categories__bottom-right-corner,
#dynamic-category-content .categories__btn--active .categories__top-left-corner::after,
#dynamic-category-content .categories__btn--active .categories__top-right-corner::after,
#dynamic-category-content .categories__btn--active .categories__bottom-left-corner::after,
#dynamic-category-content .categories__btn--active .categories__bottom-right-corner::after
{
    display: block;
}

#dynamic-category-content .categories__top-left-corner{
	width:22px;
	height:8px;
	top:0;
	left:0;
}

#dynamic-category-content .categories__top-left-corner::after{
	content:'';
	width:8px;
	height:22px;
	top:0;
	left:0;
}

#dynamic-category-content .categories__bottom-left-corner{
	width:22px;
	height:8px;
	bottom:0;
	left:0;
}

#dynamic-category-content .categories__bottom-left-corner::after{
	content:'';
	width:8px;
	height:22px;
	bottom:0;
	left:0;
}


#dynamic-category-content .categories__top-right-corner{
	width:22px;
	height:8px;
	top:0;
	right:0;
}

#dynamic-category-content .categories__top-right-corner::after{
	content:'';
	width:8px;
	height:22px;
	top:0;
	right:0;
}


#dynamic-category-content .categories__bottom-right-corner{
	width:22px;
	height:8px;
	bottom:0;
	right:0;
}

#dynamic-category-content .categories__bottom-right-corner::after{
	content:'';
	width:8px;
	height:22px;
	bottom:0;
	right:0;
}

.categories__search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    padding: 26px 32px;
    background-color: var(--color-light-gray);
    display: flex;
    justify-content: space-between;
    position: relative;
}


.categories__search-wrapper .categories__top-left-corner,
.categories__search-wrapper .categories__top-right-corner,
.categories__search-wrapper .categories__bottom-left-corner,
.categories__search-wrapper .categories__bottom-right-corner {
    position: absolute;
    display: none;
    background-color: var(--color-red);
}

.categories__search-wrapper--active .categories__top-left-corner,
.categories__search-wrapper--active .categories__top-right-corner,
.categories__search-wrapper--active .categories__bottom-left-corner,
.categories__search-wrapper--active .categories__bottom-right-corner {
    display: block;
}

.categories__search-wrapper .categories__top-left-corner {
    width: 22px;
    height: 8px;
    top: 0;
    left: 0;
}

.categories__search-wrapper .categories__top-left-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    top: 0;
    left: 0;
    background-color: var(--color-red);
}

.categories__search-wrapper .categories__bottom-left-corner {
    width: 22px;
    height: 8px;
    bottom: 0;
    left: 0;
}

.categories__search-wrapper .categories__bottom-left-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    bottom: 0;
    left: 0;
    background-color: var(--color-red);
}

.categories__search-wrapper .categories__top-right-corner {
    width: 22px;
    height: 8px;
    top: 0;
    right: 0;
}

.categories__search-wrapper .categories__top-right-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    top: 0;
    right: 0;
    background-color: var(--color-red);
}

.categories__search-wrapper .categories__bottom-right-corner {
    width: 22px;
    height: 8px;
    bottom: 0;
    right: 0;
}

.categories__search-wrapper .categories__bottom-right-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 22px;
    bottom: 0;
    right: 0;
    background-color: var(--color-red);
}

.no-results-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.no-results-message > .categories__text{
	margin:0!important;
}

.no-results-message .categories__text {
    font-size: 18px;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

.categories__select-wrapper{
	display: none;
}

#dynamic-category-content__content.categories__content{
	display:flex;
	flex-direction:column;
	gap:40px;
}

@media only screen and (max-width: 1290px) {
    #dynamic-category-select {
        display: block;
        width: 100%;
        padding: 10px;
        font-size: 16px;
        margin-bottom: 20px;
    }
	.categories__select-wrapper{
		display: block;
	}

    #dynamic-category-content{
        display: none!important;
    }
}

@media only screen and (max-width: 600px) {
    	.categories__search {
		font-size: 18px;
	}
}

@media only screen and (max-width: 460px) {
    	.categories__search {
		font-size: 14px;
	}
}