.cc-window {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483647 !important;
}

#cc-settings-overlay,
#ccpa-overlay {
    display: none;
    position: fixed;
    inset: 0;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20001;
    height: 100dvh;
}

#ccpa-overlay {
    z-index: 20002;
}

#cc-settings-overlay .inner,
#ccpa-overlay .inner {
    display: flex;
    flex-direction: column;
    max-height: 90dvh;
    overflow: auto;
    box-sizing: border-box;
    width: 90%;
    max-width: 480px;
    padding: 24px 24px 80px;
    border-radius: 8px;
    background: #fff;
}

#cc-settings-overlay h2,
#ccpa-overlay h2 {
    margin-top: 0;
    color: #222;
    font-size: 1.3em;
}

#cc-settings-overlay p,
#ccpa-overlay p {
    margin: 8px 0 16px;
    color: #555;
    font-size: .95em;
}

.cc-toggle {
    position: relative;
    display: inline-block;
    padding-left: 50px;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 24px;
}

.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; top: 2px; left: 0; width: 36px; height: 20px; border-radius: 34px; background: #ccc; transition: .3s; }
.cc-slider:before { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; content: ''; transition: .3s; }
.cc-toggle input:checked + .cc-slider { background: #0085a1; }
.cc-toggle input:checked + .cc-slider:before { transform: translateX(16px); }
.cc-description { display: block; margin: 6px 0 0 24px; color: #777; font-size: .9em; line-height: 1.5; word-break: break-word; }
.cc-buttons { position: sticky; bottom: -24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; margin-top: 24px; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); }
.cc-buttons button { padding: 8px 16px; border: 0; border-radius: 4px; cursor: pointer; }
.cc-buttons a { margin-right: auto; line-height: 32px; }
.ccc-settings-trigger { position: fixed; right: 16px; bottom: 16px; z-index: 19999; padding: 8px 12px; border: 1px solid #0085a1; border-radius: 4px; background: #fff; color: #0085a1; cursor: pointer; }
#cc-settings-close, #ccpa-close { background: #ccc; color: #333; }
#cc-settings-save, #ccpa-save { background: #0085a1; color: #fff; }

@media (max-width: 767px) {
    .cc-window { right: 0 !important; bottom: 0 !important; left: 0 !important; top: auto !important; width: 100% !important; max-height: 90dvh; overflow-y: auto !important; border-radius: 0 !important; }
    .cc-window .cc-message { max-height: 40vh; overflow-y: auto; }
    .cc-window .cc-compliance { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
    .cc-window .cc-btn { flex: 1 1 48%; text-align: center; }
}

@media (max-width: 360px) {
    #cc-settings-overlay .inner, #ccpa-overlay .inner { padding: 16px 16px 72px; }
    #cc-settings-overlay h2, #ccpa-overlay h2 { font-size: 1.1em; }
}
