[comp="modal"] {
    position: fixed;
    top: 0;
    left: 0;
    background: #00000061;
    width: 100%;
    height: 100%;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
    padding: 9px;
}

[comp="modal"]>.box {
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: calc(100dvh - 20px);
    min-height: 500px;
    box-shadow: 0 20px 20px -26px;
}

[comp="modal"]>.box .cabecalho {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    position: relative;
    overflow: hidden;
}

[comp="modal"]>.box .cabecalho .titulo {
    flex: 1;
    background: #efefef;
    padding: 7px 11px;
    font-size: 14px;
    font-weight: 500;
    color: #3f3f3f;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

[comp="modal"]>.box .cabecalho button {
    aspect-ratio: 1;
    border: none;
    width: 31px;
    background-color: var(--color-red);
    color: white;
    cursor: pointer;
    transition: .2s ease;
}

[comp="modal"]>.box .cabecalho button:hover {
    box-shadow: inset 5em 1em #ffffff26;
}

[comp="modal"] .corpo {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

[comp="modal"] .corpo>[c-load] {
    text-align: center;
    padding: 80px 20px;
    font-size: 15px;
}

[comp="modal"] .corpo iframe {
    width: 100%;
    flex: 1;
}

[comp="modal"].modal-iframe .corpo {
    padding: 0;
}
