.lb-sr-wrap {
    position: relative;
    margin-top: 14px;
    margin-bottom: 22px;
}

.lb-sr-content {
    position: relative;
    max-height: var(--lb-sr-h-desktop, 200px);
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767.98px) {
    .lb-sr-content {
        max-height: var(--lb-sr-h-mobile, 170px);
    }
}

.lb-sr-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 72%, #ffffff 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.lb-sr-wrap.is-expanded .lb-sr-fade,
.lb-sr-wrap.is-short .lb-sr-fade {
    opacity: 0;
}

.lb-sr-wrap.is-short .lb-sr-content {
    max-height: none !important;
}

.lb-sr-wrap.is-short .lb-sr-actions {
    display: none !important;
}

.lb-sr-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

.lb-sr-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 24px;
    border: 1.5px solid #0284c7;
    border-radius: 999px;
    background: #ffffff;
    color: #0369a1;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.12);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.lb-sr-toggle:hover,
.lb-sr-toggle:focus-visible {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.24);
    transform: translateY(-1px);
    outline: none;
}

.lb-sr-wrap.is-in-view:not(.is-expanded) .lb-sr-toggle {
    border-color: #0369a1;
    box-shadow: 0 5px 16px rgba(2, 132, 199, 0.2);
}

.lb-sr-btn-icon {
    transition: transform 0.28s ease;
    flex-shrink: 0;
}

.lb-sr-wrap.is-expanded .lb-sr-btn-icon {
    transform: rotate(180deg);
}

/* Dam bao in an hoac xuat PDF luon hien 100% noi dung */
@media print {
    .lb-sr-content {
        max-height: none !important;
        overflow: visible !important;
    }
    .lb-sr-fade,
    .lb-sr-actions {
        display: none !important;
    }
}
