.cc-window {
    box-sizing: border-box;
    --dp-cookie-palette-button-background: #a1796e;
    --dp-cookie-palette-button-text: #1f1f1f;
    background-color: transparent;
    max-width: 700px !important;
}

.cc-window.cc-bottom-right,
.cc-window.cc-bottom-left,
.cc-window.cc-bottom {
    left: auto;
    right: 100px;
    bottom: 1rem;
}

.cc-window .powered-by {
    display: none;
}

.cc-window .cc-body {
    margin: 0 auto 1.5rem;
    padding: 1.5rem;
    border: 1px solid #d8d8d8;
    border-radius: 0.75rem;
    background: #f2f2f2;
    color: #1f1f1f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cc-window .cc-message {
    padding: 0px;
}

.cc-window .cc-legal-links {
    padding-top: 0.5rem;
}

.cc-window .cc-message,
.cc-window .cc-message p,
.cc-window .cc-message label,
.cc-window .cc-legal-links,
.cc-window .cc-legal-links a {
    color: #1f1f1f;
}

.cc-window .cc-compliance {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cc-window .cc-compliance .cc-btn {
    flex: 1 1 0;
    min-height: 2.8rem;
    border: 2px solid #a1796e;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cc-window .cc-config {
    background: transparent;
    color: #a1796e;
}

.cc-window .cc-config:hover,
.cc-window .cc-config:focus-visible {
    background: #a1796e;
    color: #1f1f1f;
}

.cc-window .cc-deny,
.cc-window .cc-allow-all {
    background: #a1796e;
    color: #1f1f1f;
}

.cc-window .cc-deny:hover,
.cc-window .cc-deny:focus-visible,
.cc-window .cc-allow-all:hover,
.cc-window .cc-allow-all:focus-visible {
    background: transparent;
    color: #a1796e;
}

.cc-window .cc-btn:focus-visible,
.cc-window-config .cc-btn:focus-visible,
.dp--revoke:focus-visible {
    outline: 3px solid #1f1f1f;
    outline-offset: 2px;
}

.cc-window-config .cc-config {
    width: min(960px, calc(100vw - 2rem));
    margin: 1rem auto;
    border-radius: 0.75rem;
    border: 1px solid #d8d8d8;
    background: #f2f2f2;
    color: #1f1f1f;
}

.cc-window-config .cc-config .powered-by {
    display: none;
}

.cc-window-config .cc-config-header,
.cc-window-config .cc-config-body,
.cc-window-config .cc-config-footer {
    color: #1f1f1f;
}

.cc-window-config .cc-config-body .cc-message {
    font-size: 0.6em;
    line-height: 1.6em;
}

.cc-window-config .cc-config-body .dp--cookie-check label {
    font-size: 0.75em;
    line-height: 1.6em;
}

.cc-window-config .cc-config-header > span {
    font-size: 1.25rem;
    font-weight: 700;
}

.cc-window-config .cc-legal-links a {
    font-size: 0.8em;
}

.cc-window-config .cc-config-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cc-window-config .cc-config-footer > :nth-child(2) {
    order: -1;
}

.cc-window-config .cc-config-footer .cc-btn {
    flex: 1 1 0;
    min-height: 2.8rem;
    border: 2px solid #a1796e;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.6em;
    line-height: 1em;
    max-width: 300px;
}

.cc-window-config .cc-config-footer .cc-allow {
    background: transparent;
    color: #a1796e;
}

.cc-window-config .cc-config-footer .cc-allow:hover,
.cc-window-config .cc-config-footer .cc-allow:focus-visible {
    background: #a1796e;
    color: #1f1f1f;
}

.cc-window-config .cc-config-footer .cc-deny,
.cc-window-config .cc-config-footer .cc-allow-all {
    background: #a1796e;
    color: #1f1f1f;
}

.cc-window-config .cc-config-footer .cc-deny:hover,
.cc-window-config .cc-config-footer .cc-deny:focus-visible,
.cc-window-config .cc-config-footer .cc-allow-all:hover,
.cc-window-config .cc-config-footer .cc-allow-all:focus-visible {
    background: transparent;
    color: #a1796e;
}

.cc-window-config .cc-config-group-name .cc-btn-collapse {
    color: #1f1f1f;
}

.cc-window-config .cc-config-group-name {
    align-items: center;
}

.cc-window-config .ns-cookie-group-description {
    margin: 0 0 0.85rem;
    padding: 0 0 0 0.3rem;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.45;
}

.dp--revoke .dp--hover {
    font-size: 20px !important;
    line-height: 1.2;
}

.dp--revoke:hover .dp--hover,
.dp--revoke:focus-visible .dp--hover {
    font-size: 20px !important;
}

@media (max-width: 900px) {
    .cc-window.cc-bottom-right {
        right: 5%;
        left: 5%;
        bottom: 1rem;
        width: 90%;
    }

    .cc-window .cc-body {
        margin: 0 auto 0.75rem;
        padding: 1rem;
    }

    .cc-window .cc-compliance {
        min-width: 100px !important;
    }

    .cc-window .cc-compliance,
    .cc-window-config .cc-config-footer {
        flex-direction: column;
    }

    .cc-window .cc-compliance .cc-btn,
    .cc-window-config .cc-config-footer .cc-btn {
        width: 100%;
        max-width: 300px;
    }
}