.wpdss-readmore {
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.72;
    --wpdss-collapsed-height: 380px;
}

.wpdss-readmore__content {
    position: relative;
}

.wpdss-readmore__body {
    max-height: var(--wpdss-collapsed-height);
    overflow: hidden;
    transition: max-height 0.34s ease;
}

.wpdss-readmore.is-expanded .wpdss-readmore__body {
    max-height: 9999px;
}

.wpdss-readmore:not(.is-collapsible) .wpdss-readmore__body {
    max-height: none;
    overflow: visible;
}

.wpdss-readmore__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.92) 68%,
        rgba(255, 255, 255, 1) 100%
    );
    transition: opacity 0.25s ease;
}

.wpdss-readmore.is-collapsible:not(.is-expanded) .wpdss-readmore__fade {
    opacity: 1;
}

.wpdss-readmore__toggle {
    margin-top: 12px;
    padding: 8px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    color: #1f1f1f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpdss-readmore.is-collapsible .wpdss-readmore__toggle {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.wpdss-readmore__related {
    margin-top: 14px;
}

.wpdss-readmore__toggle:hover,
.wpdss-readmore__toggle:focus-visible {
    border-color: #9a9a9a;
    background: #f9f9f9;
    outline: none;
}

@media (max-width: 768px) {
    .wpdss-readmore {
        --wpdss-collapsed-height: 320px;
    }

    .wpdss-readmore__fade {
        height: 84px;
    }
}
