/*
 * =====================================================================
 * DGT CONSENT MANAGER
 * =====================================================================
 */

#dgtcm-root,
#dgtcm-root * {
    box-sizing: border-box;
}

.dgtcm-card {
    position: fixed;

    left: 50%;
    bottom: 24px;

    transform: translateX(-50%);

    width: min(760px, calc(100% - 32px));

    padding: 24px;

    background: #111;
    color: #fff;

    border-radius: 10px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45);

    /*
     * Alto propositalmente para o PREVIEW aparecer acima
     * do banner antigo durante nossos testes.
     */

    z-index: 2147483000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.dgtcm-card[hidden],
.dgtcm-reopen[hidden] {
    display: none !important;
}

.dgtcm-card h2 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 22px;
    line-height: 1.25;
}

.dgtcm-card p {
    margin: 0 0 12px;

    color: #ddd;

    font-size: 14px;
    line-height: 1.55;
}

.dgtcm-card a {
    color: #fff;
    text-decoration: underline;
}

.dgtcm-small {
    font-size: 13px !important;
}

.dgtcm-actions {
    display: flex;

    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}

.dgtcm-button {
    min-height: 42px;

    padding: 10px 16px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;
}

.dgtcm-primary {
    border: 1px solid #fff;

    background: #fff;
    color: #111;
}

.dgtcm-secondary {
    border: 1px solid #666;

    background: transparent;
    color: #fff;
}

.dgtcm-category {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 16px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.15);
}

.dgtcm-category strong {
    display: block;

    margin-bottom: 4px;

    color: #fff;
}

.dgtcm-category p {
    margin: 0;
}

.dgtcm-switch {
    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;

    color: #fff;
}

.dgtcm-switch input {
    width: 20px;
    height: 20px;
}

.dgtcm-reopen {
    position: fixed;

    left: 16px;
    bottom: 16px;

    z-index: 2147482999;

    padding: 10px 14px;

    border: 1px solid #555;
    border-radius: 6px;

    background: #111;
    color: #fff;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 620px) {

    .dgtcm-card {
        bottom: 12px;

        width: calc(100% - 24px);

        max-height: calc(100vh - 24px);

        overflow-y: auto;

        padding: 18px;
    }

    .dgtcm-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .dgtcm-button {
        width: 100%;
    }

    .dgtcm-category {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }
}
