.r42cc-banner.hidden,
.r42cc-modal.hidden { display: none !important; }

.r42cc-auto-footer-link {
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.r42cc-auto-footer-link a {
    color: var(--r42cc-link, #0066cc);
    text-decoration: underline;
    cursor: pointer;
}

.r42cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--r42cc-bg, #ffffff);
    color: var(--r42cc-text, #1a1a1a);
    padding: 20px;
    z-index: 999999;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
.r42cc-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.r42cc-banner__title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.r42cc-banner__body { margin: 0; }
.r42cc-banner__body a {
    color: var(--r42cc-link, #0066cc);
    text-decoration: underline;
}
.r42cc-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.r42cc-btn {
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
    min-width: 140px;
    transition: opacity 0.15s ease;
}
.r42cc-btn:hover { opacity: 0.85; }
.r42cc-btn--accept {
    background: var(--r42cc-accept-bg, #000000);
    color: var(--r42cc-accept-text, #ffffff);
}
.r42cc-btn--reject {
    background: var(--r42cc-reject-bg, #e5e5e5);
    color: var(--r42cc-reject-text, #1a1a1a);
}
.r42cc-btn--settings,
.r42cc-btn--save {
    background: var(--r42cc-settings-bg, transparent);
    color: var(--r42cc-settings-text, #1a1a1a);
    border-color: var(--r42cc-settings-border, #1a1a1a);
}

@media (max-width: 600px) {
    .r42cc-banner__actions { flex-direction: column; }
    .r42cc-btn { width: 100%; }
}

.r42cc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.r42cc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.r42cc-modal__panel {
    position: relative;
    background: var(--r42cc-bg, #ffffff);
    color: var(--r42cc-text, #1a1a1a);
    width: min(640px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.r42cc-modal__header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.r42cc-modal__header h2 { margin: 0; font-size: 18px; }
.r42cc-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: inherit;
}
.r42cc-modal__body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
}
.r42cc-modal__footer {
    padding: 16px 22px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.r42cc-cat {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 14px 0;
}
.r42cc-cat:last-child { border-bottom: none; }
.r42cc-cat header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.r42cc-cat h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}
.r42cc-cat p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
}
.r42cc-cat__always {
    font-size: 12px;
    opacity: 0.6;
}
.r42cc-cat details {
    margin-top: 10px;
    font-size: 12px;
}
.r42cc-cat summary {
    cursor: pointer;
    color: var(--r42cc-link, #0066cc);
}
.r42cc-cookies {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 12px;
}
.r42cc-cookies th,
.r42cc-cookies td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.r42cc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.r42cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.r42cc-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.2s;
}
.r42cc-toggle__slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.r42cc-toggle input:checked + .r42cc-toggle__slider {
    background: var(--r42cc-accept-bg, #000000);
}
.r42cc-toggle input:checked + .r42cc-toggle__slider::before {
    transform: translateX(20px);
}
