/* =========================================
   invibe PDF List
   ========================================= */

.file-box-wrap {
    width: 100%;
}

.file-box-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #f4f7f9;
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border, #2e2784);
    margin: 35px 0;
}

.file-box-content {
    min-width: 0;
}

.file-box-data {
    display: block;
    margin-bottom: 10px;
}

.file-box-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

/* =========================================
   Zobacz – otwieranie modala
   ========================================= */

.file-box-modal {
    appearance: none;
    background: none;
    border: 0;
    padding: 0 12px;
    color: var(--color-text, #111);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.file-box-modal::after {
    content: "→";
    display: inline-block;
    margin-left: 5px;
    text-decoration: none;
}

/* =========================================
   PDF – ikona i link
   ========================================= */

.file-box-ico {
    flex: 0 0 auto;
}

.file-box-ico-download {
    text-align: center;
}

.file-box-ico-download a {
    display: block;
    color: #2e2784;
    text-align: center;
    white-space: nowrap;
}

.file-box-ico-download img {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin: 0 auto 4px;
}

/* Strzałkę linku Pobierz generuje motyw Klaro.
   Nie dodajemy kolejnej przez CSS wtyczki. */

/* =========================================
   Tekst dla czytników ekranu
   ========================================= */

.inv-file-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================
   Modal PDF
   ========================================= */

.inv-file-dialog {
    box-sizing: border-box;
    width: min(1000px, calc(100vw - 32px));
    max-width: 1000px;
    max-height: calc(100dvh - 32px);
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #2e2784;
    background: #fff;
    color: #111;
}

.inv-file-dialog[open] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inv-file-dialog::backdrop {
    background: rgb(0 0 0 / 75%);
}

.inv-file-dialog__bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.inv-file-dialog__title {
    font-size: 20px;
    margin: 0;
    line-height: 1.3;
}

.inv-file-dialog-close {
    flex: 0 0 auto;
    cursor: pointer;
}

.inv-file-dialog-frame {
    width: 100%;
    height: min(69dvh, 760px);
    min-height: 250px;
    border: 1px solid #888;
    background: #eee;
}

.inv-file-dialog__fallback {
    margin: 0;
    max-width: none;
    font-size: 14px;
}

.inv-file-dialog a {
    color: #2e2784;
}

/* =========================================
   Mobile – układ pionowy
   ========================================= */

@media (max-width: 600px) {

    .file-box-item {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 18px;
        margin: 20px 0;
        gap: 22px;
    }

    .file-box-content {
        width: 100%;
    }

    .file-box-data {
        margin-bottom: 10px;
    }

    .file-box-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .file-box-ico {
        align-self: center;
    }

    .file-box-ico-download img {
        width: 56px;
        height: 56px;
    }

    .file-box-ico-download a {
        font-size: 14px;
    }

    .inv-file-dialog {
        padding: 12px;
    }

    .inv-file-dialog__title {
        font-size: 17px;
    }

    .inv-file-dialog-frame {
        height: 62dvh;
    }
.file-box-content {
text-align: center;
}	
}
