/* ==========================================================================
   SKYSTONE - DOWNLOADS V27
   Página central oficial: 535px.
   ========================================================================== */

body.template-skystone .sky-download {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cabeçalho ------------------------------------------------------------- */

body.template-skystone .sky-download .download-page-header {
    margin: 0 0 18px;
    padding: 0 0 13px;
    border-bottom: 1px solid #dcebed;
}

body.template-skystone .sky-download .download-page-header > span {
    display: block;
    margin: 0 0 6px;
    color: #73a6b5;
    font-size: 6px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.3px;
}

body.template-skystone .sky-download .download-page-header > h1 {
    margin: 0;
    color: #075f78;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
}

body.template-skystone .sky-download .download-page-custom {
    margin: 0;
    color: #426e7c;
    font-size: 7px;
    line-height: 1.45;
}

body.template-skystone .sky-download .download-page-custom > br:first-child,
body.template-skystone .sky-download .download-page-custom > p:empty {
    display: none;
}

/* Arquivos -------------------------------------------------------------- */

body.template-skystone .sky-download .download-files-section {
    margin: 0 0 18px;
}

body.template-skystone .sky-download .download-section-title,
body.template-skystone .sky-download .download-extra-section > h2 {
    margin: 0 0 9px;
    padding: 7px 9px;
    border-left: 2px solid #40b7cc;
    background: #f3fafb;
    color: #075f78;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

body.template-skystone .sky-download .download-empty {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px dashed #cfe1e6;
    background: #f9fcfd;
    color: #789aa5;
    font-size: 7px;
    line-height: 1.3;
    text-align: center;
    box-sizing: border-box;
}

body.template-skystone .sky-download .download-public-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
    color: #4d7582;
    font-size: 6.3px;
}

body.template-skystone .sky-download .download-public-table th {
    padding: 7px 6px;
    border: 1px solid #d5e6ea;
    background: #eff8fa;
    color: #356474;
    font-size: 6px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

body.template-skystone .sky-download .download-public-table td {
    padding: 7px 6px;
    border: 1px solid #e0ecef;
    vertical-align: middle;
    word-break: break-word;
}

body.template-skystone .sky-download .download-name {
    color: #075f78;
    font-weight: 700;
}

body.template-skystone .sky-download .download-size {
    white-space: nowrap;
    color: #608894;
}

body.template-skystone .sky-download .download-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

body.template-skystone .sky-download .download-link-button {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 1px solid #8fcbd7;
    background: #f2fafc;
    color: #087b9c;
    font-size: 5.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .14s ease, border-color .14s ease;
}

body.template-skystone .sky-download .download-link-button:hover {
    border-color: #55b4c8;
    background: #e9f8fa;
}

/* Requisitos ------------------------------------------------------------ */

body.template-skystone .sky-download .download-extra-section {
    margin: 0 0 18px;
    padding: 0;
}

body.template-skystone .sky-download .download-requirements {
    width: 100%;
    overflow: hidden;
    border: 1px solid #d6e7ea;
    background: #fff;
}

body.template-skystone .sky-download .download-requirements table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    color: #4d7582;
    font-size: 7px;
}

body.template-skystone .sky-download .download-requirements th,
body.template-skystone .sky-download .download-requirements td {
    height: 30px;
    padding: 0 9px;
    border: 0;
    border-right: 1px solid #e0ecef;
    border-bottom: 1px solid #e0ecef;
    text-align: left;
    vertical-align: middle;
    box-sizing: border-box;
}

body.template-skystone .sky-download .download-requirements tr:last-child td {
    border-bottom: 0;
}

body.template-skystone .sky-download .download-requirements th:last-child,
body.template-skystone .sky-download .download-requirements td:last-child {
    border-right: 0;
}

body.template-skystone .sky-download .download-requirements thead th {
    height: 31px;
    background: #eff8fa;
    color: #356474;
    font-size: 6.5px;
    font-weight: 700;
}

body.template-skystone .sky-download .download-requirements th:first-child,
body.template-skystone .sky-download .download-requirements td:first-child {
    width: 15%;
    color: #075f78;
    font-weight: 700;
}

/* Drivers --------------------------------------------------------------- */

/*
 * O HTML vem diretamente do editor de páginas e usa uma única célula com
 * links + vários &nbsp;. NÃO transformamos essa estrutura em grid porque os
 * espaços do editor viram itens anônimos e quebram a linha.
 *
 * Em vez disso, a célula vira uma linha flex centralizada. O texto &nbsp;
 * recebe font-size:0 e deixa de ocupar espaço visual.
 */
body.template-skystone .sky-download .download-extra-section > table {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #d6e7ea;
    border-collapse: collapse;
    background: #f9fcfd;
    box-sizing: border-box;
}

body.template-skystone .sky-download .download-extra-section > table tbody,
body.template-skystone .sky-download .download-extra-section > table tr {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.template-skystone .sky-download .download-extra-section > table td {
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 9px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 0;
    white-space: normal;
    box-sizing: border-box;
}

body.template-skystone .sky-download .download-extra-section > table a {
    flex: 0 0 74px;
    width: 74px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px;
    border: 1px solid #d4e5e9;
    background: #fff;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

body.template-skystone .sky-download .download-extra-section > table a:hover {
    transform: translateY(-1px);
    border-color: #8fcbd7;
    box-shadow: 0 4px 10px rgba(57, 111, 126, .08);
}

body.template-skystone .sky-download .download-extra-section > table img {
    display: block;
    max-width: 64px;
    max-height: 38px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
}

/* Remove parágrafo de quebra criado pelo editor depois da tabela. */
body.template-skystone .sky-download .download-extra-section > p:empty,
body.template-skystone .sky-download .download-extra-section > p:has(> br:only-child) {
    display: none;
}

/* Limpeza contra regras globais antigas -------------------------------- */

body.template-skystone .sky-download table,
body.template-skystone .sky-download tbody,
body.template-skystone .sky-download thead,
body.template-skystone .sky-download tr,
body.template-skystone .sky-download th,
body.template-skystone .sky-download td,
body.template-skystone .sky-download a,
body.template-skystone .sky-download img {
    float: none;
    max-width: none;
}

/* Responsivo ------------------------------------------------------------ */

@media (max-width: 620px) {
    body.template-skystone .sky-download .download-page-header > h1 {
        font-size: 19px;
    }

    body.template-skystone .sky-download .download-public-table {
        table-layout: auto;
        font-size: 6px;
    }

    body.template-skystone .sky-download .download-requirements {
        overflow-x: auto;
    }

    body.template-skystone .sky-download .download-requirements table {
        min-width: 430px;
    }

    body.template-skystone .sky-download .download-extra-section > table td {
        flex-wrap: wrap;
    }

    body.template-skystone .sky-download .download-extra-section > table a {
        flex-basis: 70px;
        width: 70px;
    }
}
