.pl-dropdown-1 {
    max-height: 400px;
    overflow: hidden;
    position: relative;

    transition: max-height 0.3s ease-in-out;
}

.pl-dropdown-1.closed {
    max-height: 120px;
}

.pl-dropdown-1 p {
    margin-bottom: 10px;
}

.pl-dropdown-1>div {
    max-height: inherit;
}

.pl-dropdown-1>div:nth-child(3):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent 0%, white 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pl-dropdown-1.closed>div:nth-child(3)::after {
    opacity: 1;
}

.pl-dropdown-1:hover {
    cursor: pointer;
}

.pl-dropdown-1 p,
.pl-dropdown-1 h2 {
    user-select: none;
}

.pl-dropdown-1 p:last-child {
    margin-bottom: 0;
}

.pl-dropdown-1.closed>.elementor-widget-icon>.elementor-icon-wrapper>.elementor-icon {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.pl-dropdown-1>.elementor-widget-icon>.elementor-icon-wrapper>.elementor-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

@media screen and (max-width: 1000px) {
    .pl-dropdown-1 {
        /* original: 50px 50ch 1fr 100px; */
        grid-template-columns: 50px 30ch 1fr 50px !important;
    }

    .pl-dropdown-1>div:nth-child(2) {
        font-size: 12px;
    }
}

@media screen and (max-width: 700px) {
    .pl-dropdown-1 {
        grid-template-columns: 50px 1fr !important;
        grid-template-rows: auto auto auto;
        max-height: none !important;
    }

    .pl-dropdown-1.closed {
        max-height: none !important;
    }

    .pl-dropdown-1>div:nth-child(3) {
        grid-column: 1 / -1;
        max-height: 400px;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        position: relative;
    }

    .pl-dropdown-1.closed>div:nth-child(3) {
        max-height: 120px;
    }

    .pl-dropdown-1>div:nth-child(4) {
        grid-column: 1 / -1;
    }

    .pl-dropdown-1>div:nth-child(2) {
        font-size: 12px;
    }

    .pl-dropdown-1>div:nth-child(3):after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to bottom, transparent 0%, white 100%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .pl-dropdown-1.closed>div:nth-child(3)::after {
        opacity: 1;
    }
}