.custom-button {
    background-color: transparent;
    color: #2d2f2f99;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.custom-button:hover {
    background-color: #ddd;
    color: black;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 85%;
    max-width: 100%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.category-list {
    margin-top: 20px;
}

.category-item {
    margin: 10px 0;
}

.child-category {
    margin-left: 20px;
}

.grandchild-category {
    margin-left: 40px;
}

#filtersSection {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.filter-item {
    margin: 10px 0;
}

#openFilterModalBtn {
    display: none;
}
#openCriterionModalBtn {
    display: none;
}
.upload-photo__preview {
    margin-bottom: 10px;
    text-align: center;
    border: 2px dashed #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.upload-photo__preview-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.form-gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-gallery-row__item {
    flex: 0 0 auto;
}
/* Style for the filter item container */
.filter-item {
    margin-bottom: 1rem;
}

.category-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Style for the filter steps (checkboxes) */
.filters-steps {
    padding-left: 20px; /* Indentation for sub-filters */
}

.filter-step {
    margin-bottom: 0.5rem;
}

.filter-step input {
    margin-right: 10px;
}

/* Optional: Style for disabled (checked) categories */
.category-name input[disabled] {
    opacity: 0.6;
}
/* Filter Section Styles */
.criteria-section {
    margin: 20px 0;
    font-size: 16px;
    color: #333;
}

.criteria-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.criteria-list {
    padding-left: 20px;
}

.criteria-group {
    margin-bottom: 20px;
}

.criteria-group-name {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.criteria-item {
    margin-left: 20px;
    font-size: 16px;
    margin-bottom: 8px;
}

.criteria-item input {
    margin-right: 10px;
}

.criteria-item label {
    cursor: pointer;
}

/* Disabled Criteria (Already Selected Filters) */
.criteria-group-name label {
    color: #777;
    text-decoration: line-through;
}

.criteria-group-name input {
    cursor: not-allowed;
}

/* General Styling for the Form */
.main-form__item {
    margin-bottom: 20px;
}



/* Styling for Image Upload Section */
.upload-photo {
    position: relative;
    /*width: 100px;*/
    /*height: 100px;*/
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.upload-photo__label img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.upload-photo__input {
    display: none;
}

/* Styling for Image Gallery Previews */
#multiple-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

#multiple-previews .preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

#multiple-previews .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#single-preview-container .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#multiple-previews .preview-item .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

#multiple-previews .preview-item .delete-btn:hover {
    background-color: #000;
    color: #fff;
}
#single-preview-container .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

#single-preview-container .delete-btn:hover {
    background-color: #000;
    color: #fff;
}
.selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.category-title {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}
.child-category{
    display: flex;
    flex-wrap: wrap;
}
