.cfr-wrapper {
    position: relative;
    padding-bottom: 20px;
}

.cfr-visible {
    position: relative;
    z-index: 1;
}

.cfr-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 40%,
        rgba(255, 255, 255, 0.95) 70%,
        rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

.cfr-wrapper.expanded .cfr-fade {
    display: none;
}

.cfr-hidden {
    display: none;
}

.cfr-wrapper.expanded .cfr-hidden {
    display: block;
}

.cfr-btn-container {
    text-align: center;
    margin: 30px 0;
    position: relative;
    z-index: 3;
}

.cfr-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.cfr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff !important;
}

.cfr-btn:active {
    transform: translateY(0);
}

/* For dark backgrounds */
body.dark-theme .cfr-fade,
body[class*="dark"] .cfr-fade {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.95) 70%,
        rgba(0, 0, 0, 1) 100%);
}

@media (max-width: 768px) {
    .cfr-fade {
        height: 120px;
    }

    .cfr-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
}