/* BB Elements – File Box (PDF)
---------------------------------------------- */
.bbe-file-box {
	display: flex;
	align-items: center;
	gap: var(--bbe-gap, 12px);
	text-decoration: none;
	outline: none;
	border: 1px solid transparent; /* sera surchargé par Elementor */
	border-radius: 8px;            /* sera surchargé par Elementor */
	padding: 12px;                 /* sera surchargé par Elementor */
	transition: box-shadow .2s ease, transform .05s ease;
}

.bbe-file-box:hover {
	text-decoration: none;
}

.bbe-file-box:focus {
	outline: none;
}

.bbe-file-box__thumb-wrap {
	flex: 0 0 var(--bbe-thumb-width, 120px);
	width: var(--bbe-thumb-width, 120px);
	max-width: 100%;
}

.bbe-file-box__thumb {
	display: block;
	width: 100%;
	height: auto;
}

.bbe-file-box__thumb--placeholder {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100px;
        font-size: 48px;
        line-height: 1;
        opacity: .7;
        background: #f3f4f5;
        border: 1px dashed #ddd;
        border-radius: 6px;
}

.bbe-file-box__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
}

.bbe-file-box__label {
        line-height: 1.3;
}

.bbe-file-box__meta {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: baseline;
        margin-top: 4px;
        gap: 8px;
        color: #4b5563;
        font-size: .9375em;
        line-height: 1.4;
}

.bbe-file-box__description,
.bbe-file-box__filesize {
        display: inline;
        min-width: 0;
}

/* Gestion de la position de l'image par classe (définie via prefix_class) */
.bbe-image-before .bbe-file-box__thumb-wrap { order: 0; }
.bbe-image-before .bbe-file-box__content    { order: 1; }
.bbe-image-after  .bbe-file-box__thumb-wrap { order: 1; }
.bbe-image-after  .bbe-file-box__content    { order: 0; }
