.sc-refreshed-product-documents {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

.sc-refreshed-product-documents * {
    box-sizing: border-box;
}

/* Base layout: flex row on desktop */
.sc-rpd-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

/* Lead Section */
.sc-rpd-lead {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 24px;
    flex-shrink: 0;
}

.sc-rpd-grid.count-1 .sc-rpd-lead { width: 50%; }
.sc-rpd-grid.count-2 .sc-rpd-lead { width: 40%; }
.sc-rpd-grid.count-3 .sc-rpd-lead { width: 33.333%; }
.sc-rpd-grid.count-4 .sc-rpd-lead { width: 30%; }
.sc-rpd-grid.count-5 .sc-rpd-lead { width: 25%; }

.sc-rpd-lead-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.sc-rpd-lead-title {
    font-weight: 600;
    font-size: 21px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.sc-rpd-lead-desc {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
}

/* Resources Wrapper */
.sc-rpd-resources-wrap {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

/* Individual Resource */
.sc-rpd-res-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 12px 24px;
    text-decoration: none;
    border-right: 1px solid;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    min-width: 0;
    border-right-color: #E8E1EE; /* Default fallback */
}

.sc-rpd-res-item:last-child {
    border-right: none;
}

.sc-rpd-res-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease, fill 0.2s ease;
}

.sc-rpd-res-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sc-rpd-res-title {
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.sc-rpd-res-meta {
    font-weight: 400;
    font-size: 13px;
    margin-top: 2px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .sc-rpd-grid {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sc-rpd-lead {
        width: 100% !important;
        padding-right: 0;
        padding-bottom: 24px;
        border-bottom: 1px solid #E8E1EE;
        margin-bottom: 20px;
    }
    
    .sc-rpd-resources-wrap {
        flex-wrap: wrap;
        margin: 0 -12px;
    }
    
    .sc-rpd-res-item {
        flex: 1 1 45%;
        padding: 12px;
        border-right: none;
    }
}

@media (max-width: 767px) {
    .sc-rpd-resources-wrap {
        flex-direction: column;
        margin: 0;
    }
    
    .sc-rpd-res-item {
        flex: 1 1 100%;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid;
    }
    
    .sc-rpd-res-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
