.govbr-file-drag-drop {
    display: block;
    border: 1px solid var(--colors_gray05);
    border-radius: 0.5rem;
}

.govbr-file-drag-drop-principal {
    padding: 1rem;
}

.govbr-file-drag-drop-categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.govbr-file-drag-drop-categoria {
    flex: 1 1 40rem;
    max-width: 80rem;
    padding: 1rem;
    margin: 0.5rem;
    border: 1px solid var(--colors_gray05);
    border-radius: 0.5rem;
}

.govbr-file-drag-drop-categoria-titulo {
    margin: 0;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--colors_actionborder_and_focuscolor);
}

.govbr-file-drag-drop-secao-drag-over {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: minmax(12rem, auto) 1fr;
    padding: 1rem;
    row-gap: 0.5rem;
}

.govbr-file-drag-drop-icone-drag-over {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    font-size: 4rem;
    opacity: 0.5;
    border: 1px solid var(--colors_gray08);
    padding: 2rem;
    border-radius: 1rem;
}

.govbr-file-drag-drop-texto-drag-over {
    grid-row: 2;
    grid-column: 2;
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0.5;
}

.govbr-file-drag-drop-arquivos {
    display: flex;
    justify-content: center;
    grid-gap: 0.5rem;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 1;
}

.govbr-file-drag-drop-arquivo {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 12rem;
    width: 10rem;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-sizing: border-box;
    background: var(--colors_databackgroundcolor);
    border: 1px solid var(--colors_gray05);
    max-width: 20rem;
    min-width: 12rem;
}

.govbr-file-drag-drop-arquivo-pode-visualizar {
    cursor: pointer;
}

.govbr-file-drag-drop-arquivo-pode-visualizar:hover,
.govbr-file-drag-drop-arquivo-pode-visualizar:focus-visible {
    background: var(--colors_gray02);
}

.govbr-file-drag-drop-visualizar {
    display: flex;
    flex-direction: column;
    border-width: 0;
}

.govbr-file-drag-drop-visualizar-conteudo {
    flex: 1 1 auto;
    overflow: auto;
}

.govbr-file-drag-drop-visualizar-application {
    height: 100vh;
    width: 80vw;
    border: 1px solid var(--colors_gray04);
    border-radius: 0.5rem;
    overflow: hidden;
}

.govbr-file-drag-drop-visualizar-imagem {
    object-fit: contain;
    width: fit-content;
    height: fit-content;
    align-self: center;
    min-width: 25rem;
    min-height: 20rem;
    border: 1px solid var(--colors_gray04);
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(135deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(135deg, transparent 75%, #ccc 75%);
    background-size: 25px 25px;
    background-position:
        0 0,
        12.5px 0,
        12.5px -12.5px,
        0px 12.5px;
}

.govbr-file-drag-drop-visualizar-texto {
    display: flex;
    flex-direction: column;
}

.govbr-file-drag-drop-visualizar-texto-input-container {
    display: flex;
    align-items: center;
}

.govbr-file-drag-drop-visualizar-texto-input {
    position: relative;
    flex: 0 0 auto;
    height: auto;
    width: fit-content;
    appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    min-width: initial;
}

.govbr-file-drag-drop-visualizar-texto-input::before {
    display: block;
    content: '';
    border: 2px solid var(--colors_gray08);
    border-radius: 4px;
    margin: 6px;
    padding: 0;
    height: 17px;
    width: 17px;
    line-height: 1;
    pointer-events: none;
    box-sizing: border-box;
}

.govbr-file-drag-drop-visualizar-texto-input:checked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 14px;
    width: 14px;
    border: 2px solid var(--colors_gray08);
    border-radius: 2px;
    transform: translate(6px, 2px) rotate(45deg);
    clip-path: polygon(60% 30%, 60% 100%, 100% 100%, 100% 30%);
    pointer-events: none;
    box-sizing: border-box;
}

.govbr-file-drag-drop-visualizar-texto-valor {
    margin: 0;
    min-height: 25rem;
    min-width: 20rem;
}

.govbr-file-drag-drop-visualizar-texto-wrap {
    white-space: normal;
    word-break: break-word;
}

.govbr-file-drag-drop-visualizar-texto-gigante {
    position: relative;
    padding-top: 2rem;
    display: block;
}

.govbr-file-drag-drop-visualizar-texto-gigante::before {
    content: 'O conteúdo deste arquivo é muito grande para ser exibido no navegador. Abaixo é exibida parte deste. Para ver tudo realize o download do arquivo.';
    position: absolute;
    top: 0;
    left: 0;
    height: 2rem;
    background: var(--colors_danger_condform_row_background);
    width: 100%;
    font-size: 1.2rem;
    line-height: 2rem;
    font-family: var(--fonts_primary-font);
    text-align: center;
    font-weight: bold;
    color: var(--colors_danger_condform);
}

.govbr-file-drag-drop-visualizar-texto-label {
    margin: 0;
    padding: 0;
}

.govbr-file-drag-drop-preview-arquivo {
    pointer-events: none;
    width: 5.5rem;
    height: 5.5rem;
    opacity: 0.75;
    object-fit: contain;
    margin: auto 0;
}

.govbr-file-drag-drop-preview-img {
    pointer-events: none;
    width: 10rem;
    max-height: 5.5rem;
    object-fit: contain;
    margin: auto 0;
}

.govbr-file-drag-drop-preview-img + .govbr-file-drag-drop-preview-arquivo {
    display: none !important;
}

.govbr-file-drag-drop-titulo-arquivo {
    overflow: hidden;
    width: 100%;
    line-height: 1;
    font-size: 1.2rem;
    word-break: break-all;
    margin-top: 0.5rem;
}

.govbr-file-drag-drop-arquivo-remover {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    margin-right: 0.2rem;
    border-radius: 0.5rem;
    padding: 0;
    height: 2.6rem;
    width: 2.6rem;
    font-size: 1.4rem;
    vertical-align: bottom;
}

.govbr-file-drag-drop-arquivo-remover:hover,
.govbr-file-drag-drop-arquivo-remover:focus-visible {
    background: #00000022;
}

.govbr-file-drag-drop input {
    display: block;
    height: 1px;
    width: 1px;
    grid-column: 1 / -1;
    border: none;
    box-shadow: none;
    opacity: 0.01 !important;
    background: none !important;
}

.govbr-file-drag-drop .govbr-file-drag-drop-possui-arquivos > .govbr-file-drag-drop-icone-drag-over {
    display: none;
}

.govbr-file-drag-drop-secao-drag-over.govbr-file-drag-drop-recebendo-arquivo,
.govbr-file-drag-drop-secao-drag-over:hover,
.govbr-file-drag-drop-secao-drag-over:has(input:focus-visible) {
    background: var(--colors_gray04);
}

.govbr-file-drag-drop-secao-drag-over.govbr-file-drag-drop-recebendo-arquivo::before {
    content: 'Solte o(s) arquivo(s) para enviar.';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: var(--colors_gray04);
    z-index: 2;
    color: var(--colors_gray08);
    font-size: 3rem;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto {
    border: 1px dashed var(--colors_gray05);
    border-radius: 0.5rem;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto:hover,
.govbr-file-drag-drop.govbr-file-drag-drop-compacto:has(input:focus-visible) {
    background: initial;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-possui-arquivos > .govbr-file-drag-drop-icone-drag-over {
    display: inline-flex;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-secao-drag-over {
    grid-template-rows: 5rem 0;
    padding: 0;
    row-gap: 0;
    grid-template-columns: auto 1fr;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-icone-drag-over {
    background: var(--colors_databackgroundcolor);
    margin: 0 0.5rem;
    grid-column: 1;
    font-size: 2rem;
    padding: 1rem;
    color: var(--color-main-dark);
    opacity: 0.75;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-icone-drag-over:hover {
    background: var(--colors_gray04);
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-texto-drag-over {
    display: none;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-arquivos {
    grid-column: 2;
    flex-direction: column;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-obrigatorio::before {
    content: '(Este item é obrigatorio)';
    position: absolute;
    color: var(--colors_danger);
    opacity: 0.75;
    font-weight: 600;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-obrigatorio > .govbr-file-drag-drop-arquivo {
    height: auto;
    border: none;
    z-index: 1;
    padding: 0.5rem;
    max-width: initial;
    width: auto;
}

.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-obrigatorio > .govbr-file-drag-drop-arquivo > .govbr-file-drag-drop-preview-arquivo,
.govbr-file-drag-drop.govbr-file-drag-drop-compacto .govbr-file-drag-drop-obrigatorio > .govbr-file-drag-drop-arquivo > .govbr-file-drag-drop-preview-img {
    display: none;
}

.govbr-file-drag-drop-imagem-preview-temp {
    position: absolute !important;
    display: inline-block !important;
    overflow: hidden !important;
    top: -99999px !important;
    left: -99999px !important;
    height: 1px !important;
    width: 1px !important;
}
