:root {
    --cc-blue: #1764dc;
    --cc-blue-hover: #0e54c4;
    --cc-text: #22252a;
    --cc-surface: #ffffff;
}

/* Hide the whole consent component after a decision */
.cc[hidden],
.cc [hidden] {
    display: none !important;
}

.cc {
    position: relative;
    z-index: 2147483000;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--cc-text);
}

/* Main banner */
.cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483002;

    display: flex;
    align-items: center;
    gap: 28px;

    width: 100%;
    padding: 18px 28px;

    background: var(--cc-surface);
    border-top: 1px solid #e7e7e7;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);

    box-sizing: border-box;
}

.cc-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-copy h2 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}

.cc-copy p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.55;
}

.cc-copy a {
    color: var(--cc-blue);
    text-decoration: underline;
}

/* Buttons area */
.cc-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

/* Buttons */
.cc-btn {
    min-width: 150px;
    min-height: 48px;
    padding: 10px 24px;

    border: 2px solid var(--cc-blue);
    border-radius: 2px;

    background: var(--cc-blue);
    color: #ffffff;

    font: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.cc-btn:hover,
.cc-btn:focus-visible {
    background: var(--cc-blue-hover);
    border-color: var(--cc-blue-hover);
}

.cc-btn:active {
    transform: translateY(1px);
}

.cc-btn:focus-visible {
    outline: 3px solid rgba(23, 100, 220, 0.35);
    outline-offset: 2px;
}

/* Tablet */
@media (max-width: 980px) {
    .cc-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 18px 20px;
    }

    .cc-actions {
        justify-content: flex-end;
    }
}

/* Mobile */
@media (max-width: 620px) {
    .cc-banner {
        padding: 16px;
    }

    .cc-copy h2 {
        margin-bottom: 8px;
        font-size: 19px;
    }

    .cc-copy p {
        font-size: 14px;
    }

    .cc-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cc-btn {
        width: 100%;
        min-width: 0;
    }
}