#crgpd-banner[hidden],
#crgpd-open-preferences[hidden] {
    display: none !important;
}

#crgpd-banner.crgpd-banner {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

#crgpd-banner.crgpd-banner[hidden] {
    display: none !important;
}

.crgpd-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
}

.crgpd-box {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100vw - 32px));
    max-height: min(650px, calc(100vh - 40px));
    overflow-y: auto;
    margin: 0;
    background: #fff;
    color: #111;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, .35);
    box-sizing: border-box;
}

.crgpd-logo-wrap {
    padding: 25px 42px 10px;
    text-align: left;
}

.crgpd-logo {
    display: block;
    width: auto !important;
    max-width: 250px !important;
    height: auto !important;
    max-height: 78px !important;
    object-fit: contain;
}

.crgpd-content {
    padding: 8px 42px 32px;
}

.crgpd-content h2 {
    margin: 5px 0 18px !important;
    padding: 0 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.crgpd-text {
    margin: 0 0 12px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #222 !important;
}

.crgpd-privacy {
    margin: 8px 0 18px !important;
}

.crgpd-privacy a {
    color: #111 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.crgpd-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 24px 0 0 !important;
}

#crgpd-banner .crgpd-btn {
    display: inline-block !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 22px !important;
    border: 1px solid #d2d2d2 !important;
    border-radius: 0 !important;
    background: #f2f2f2 !important;
    color: #222 !important;
    cursor: pointer !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    text-transform: none !important;
}

#crgpd-banner .crgpd-btn:hover {
    opacity: .9;
}

#crgpd-banner .crgpd-accept {
    background: #1f55d8 !important;
    border-color: #1f55d8 !important;
    color: #fff !important;
}

#crgpd-banner .crgpd-refuse,
#crgpd-banner .crgpd-customize {
    background: #eeeeee !important;
    color: #222 !important;
}

#crgpd-banner .crgpd-save {
    background: #1f55d8 !important;
    border-color: #1f55d8 !important;
    color: #fff !important;
}

.crgpd-preferences {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
}

.crgpd-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.crgpd-option small {
    display: block;
    margin-top: 3px;
    opacity: .75;
}

.crgpd-manage {
    position: fixed !important;
    left: 15px !important;
    bottom: 15px !important;
    z-index: 2147483646 !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #222 !important;
    border-radius: 3px !important;
    padding: 9px 13px !important;
    cursor: pointer !important;
    box-shadow: 0 3px 15px rgba(0,0,0,.18) !important;
}

@media (max-width: 600px) {
    #crgpd-banner.crgpd-banner {
        padding: 10px !important;
    }

    .crgpd-box {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .crgpd-logo-wrap {
        padding: 20px 20px 5px;
    }

    .crgpd-logo {
        max-width: 190px !important;
        max-height: 60px !important;
    }

    .crgpd-content {
        padding: 8px 20px 22px;
    }

    .crgpd-content h2 {
        font-size: 20px !important;
    }

    .crgpd-actions {
        justify-content: stretch !important;
    }

    #crgpd-banner .crgpd-btn {
        flex: 1 1 100%;
        width: 100% !important;
    }
}
