/* Group name on left, am-fileline (icon + link + size) on right */

.am-attachments-tab .document-row {
    display: grid;
    grid-template-columns: 290px 1fr;
    align-items: center;
    gap: 16px 24px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.am-attachments-tab .document-row:last-child {
    border-bottom: none;
}

.am-attachments-tab .document-left {
    min-width: 0;
    max-width: 325px;
}

.am-attachments-tab .document-title {
    font-size: 15px;
    font-weight: 400;
    color: #4a4a4a;
}

.am-attachments-tab .document-right {
    min-width: 0;
    display: flex;
    justify-content: left;
}

/* Amasty structure: .am-fileline contains .am-fileicon, .am-filelink, .am-filesize */
.am-attachments-tab .am-fileline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.am-attachments-tab .am-fileicon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.am-attachments-tab .am-filelink {
    font-size: 14px;
    color: #374151;
    text-decoration: none;
}

.am-attachments-tab a.am-filelink:hover {
    text-decoration: underline;
    color: #111827;
}

.am-attachments-tab .am-filesize {
    font-size: 13px;
    color: #6b7280;
}

@media only screen and (min-width: 768px) {
    [id^="tab-label-amfile_attachment_grouped"][data-role="collapsible"] {
        max-width: 20%;
    }
}

@media (max-width: 768px) {
    .am-attachments-tab .document-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Hide Amasty Product Tabs inline style tags that appear as text (added by DetailsPlugin) */
.product.info.detailed style,
.product.data.items style,
[class*="product"][class*="info"] style,
[class*="product"][class*="data"] style {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    opacity: 0 !important;
}
