
/*
 * IWO Category Read More
 * Pełny opis pozostaje w DOM/HTML. CSS ogranicza jedynie jego widoczną wysokość.
 */

.iwo-category-readmore-ready {
    position: relative;
}

.iwo-category-readmore-content {
    position: relative;
    overflow: hidden;
    transition: max-height .35s ease;
}

.iwo-category-readmore-content:not(.is-expanded)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.iwo-category-readmore-content.is-expanded::after {
    display: none;
}

.iwo-category-readmore-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 18px;
    border: 2px solid #000;
    border-radius: 4px;
    background: #9DE627;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.iwo-category-readmore-button:hover,
.iwo-category-readmore-button:focus {
    background: #9DE627;
    color: #000;
    text-decoration: none;
    box-shadow: 3px 3px 0 #000;
    transform: translate(-1px, -1px);
    outline: none;
}

.iwo-category-readmore-button::after {
    content: "↓";
    font-size: 16px;
    line-height: 1;
}

.iwo-category-readmore-button[aria-expanded="true"]::after {
    content: "↑";
}

@media (max-width: 767px) {
    .iwo-category-readmore-button {
        padding: 10px 16px;
        font-size: 14px;
    }
}
