/* File block - document and price list rows inside an accordion */
.wp-block-details .wp-block-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--wp--preset--color--border-gray, #D9D9D9);
}
.wp-block-details .wp-block-file:last-child {
    border-bottom: none;
}

/* File name is the primary link - opens the document */
.wp-block-details .wp-block-file > a:not(.wp-block-file__button) {
    flex: 1 1 260px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
    line-height: 1.4;
    color: var(--wp--preset--color--secondary, #001020);
    text-decoration: none;
}
.wp-block-details .wp-block-file > a:not(.wp-block-file__button):hover,
.wp-block-details .wp-block-file > a:not(.wp-block-file__button):focus-visible {
    text-decoration: underline;
}

/* Download button stays compact so it never dominates the row */
.wp-block-details .wp-block-file .wp-block-file__button {
    flex: 0 0 auto;
    padding: 7px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 3px;
    background-color: var(--wp--preset--color--secondary, #001020);
    color: var(--wp--preset--color--white, #fff);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.wp-block-details .wp-block-file .wp-block-file__button:hover,
.wp-block-details .wp-block-file .wp-block-file__button:focus-visible {
    background-color: var(--wp--preset--color--primary-dark, #3d4a1f);
    opacity: 1;
}

@media (max-width: 575px) {
    .wp-block-details .wp-block-file {
        justify-content: flex-start;
    }
    .wp-block-details .wp-block-file > a:not(.wp-block-file__button) {
        flex: 1 1 100%;
    }
}
