/* Representations */
.av-alb-blogposts:has(.type-representation) {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.post.type-representation {
    flex: 0 0 calc(50% - 20px);
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #cccccc;
    border-radius: 25px;
}

.post.type-representation .entry-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.post.type-representation .entry-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
}

.av-alb-blogposts:has(.type-representation) .single-big:has(.pagination) {
    flex: 0 0 calc(100% - 20px);
    display: flex;
    justify-content: center;
}

.post.type-representation .representation-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post.type-representation .representation-header .type {
    padding: 10px;
    border-radius: 20px;
    background-color: #abffa0;
    box-sizing: border-box;
    color: #000000;
    text-align: center;
    line-height: normal;
    font-size: 14px;
}

.post.type-representation .representation-header .publication-date {
    color: #737373;
    text-align: left;
    font-size: 14px;
    line-height: 27px;
}

.post.type-representation .entry-content .post-title.entry-title {
    font-size: 18px !important;
    color: #000000;
    font-weight: 500;
    margin-bottom: 40px;
    margin-bottom: 50px;
}

.post.type-representation .entry-content .files-urls {
    font-size: 16px !important;
    font-weight: 500;
    display: flex;
    gap: 30px;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
}

.post.type-representation .files-urls .file-name {
    margin-inline-end: 10px;
}

.post.type-representation .files-urls .file {
    margin-inline-end: 30px;
}

@media only screen and (max-width: 991px) {
    .post.type-representation {
        flex: 0 0 calc(100% - 20px);
        box-sizing: border-box;
        padding: 20px;
    }
}

@media (min-width: 992px) and (max-width: 1034px) {
    .post.type-representation .representation-header .type {
        flex: 0 0 calc(100% - 20px);
    }

    .post.type-representation .representation-header .publication-date {
        flex: 0 0 calc(100% - 20px);
    }
}

@media only screen and (max-width: 452px) {
    .post.type-representation .representation-header .type {
        flex: 0 0 calc(100% - 20px);
    }

    .post.type-representation .representation-header .publication-date {
        flex: 0 0 calc(100% - 20px);
    }
}

@media only screen and (max-width: 1115px) {
    .post.type-representation .files-urls {
        gap: 3px;
    }

    .post.type-representation .files-urls a {
        flex: 0 0 calc(100% - 20px);
    }
}

/* Representation filters */
#representation-filter {
    margin-bottom: 20px;
}

#representation-filter .wpc-filter-layout-search-field {
    width: 40%;
}

@media screen and (max-width: 991px) {
    #representation-filter .wpc-filter-layout-search-field {
        width: 100%;
    }
}

#representation-filter .wpc-term-item-content-wrapper .wpc-label-input {
    display: none !important;
}

#representation-filter .wpc-term-item-content-wrapper label {
    padding: 2px;
    border-radius: 20px;
    background-color: #cccccc;
    box-sizing: border-box;
    color: #000000;
    text-align: center;
    line-height: normal;
    font-size: 14px;
    border: none;
}

#representation-filter .wpc-filters-main-wrap input.wpc-label-input+label:hover {
    background-color: #abffa0;
    color: #000000 !important;
}

#representation-filter .wpc-filters-main-wrap input.wpc-label-input:checked+label {
    background-color: #abffa0;
}

#representation-filter .wpc-filters-main-wrap input.wpc-label-input+label:hover span.wpc-filter-label-wrapper {
    background-color: #abffa0 !important;
    border-radius: 20px;
    color: #000000 !important;
}

#representation-filter .wpc-filters-main-wrap input.wpc-label-input:checked+label span.wpc-filter-label-wrapper {
    background-color: #abffa0 !important;
    border-radius: 20px;
    color: #000000 !important;
    border: none;
}

#representation-filter .wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item input+label:hover a {
    color: #000000 !important;
}

#representation-filter .wpc-filters-main-wrap input.wpc-label-input:checked+label span.wpc-filter-label-wrapper, body .wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item input:checked+label a {
    color: #000000 !important;
}

#representation-filter .wpc-term-item-content-wrapper label .wpc-term-count .wpc-term-count-value {
    display: none;
}

#representation-filter .wpc-filters-main-wrap input.wpc-label-input:checked+label .wpc-term-count::before {
    content: "x";
    font-weight: 700;
    font-size: 18px;
    line-height: 0px;
}


@media only screen and (max-width: 767px) {
    #representation-filter .wpc-search-field {
        width: 100% !important;
    }
}

@media only screen and (max-width: 767px) {
    #maincontent:has(#representation-filter) {
        display: flex;
        flex-direction: column;
    }
}
