/* Cookie consent banner. Self-contained so it looks the same on the plain CSS and Tailwind pages. */
.rk-cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2147483000;
    max-width: 880px; margin: 0 auto;
    background: #ffffff; color: #2d3436;
    border: 1px solid #e3e1f5; border-radius: 16px;
    box-shadow: 0 12px 40px rgba(45, 52, 54, 0.18);
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px; line-height: 1.5; text-align: left;
}
.rk-cookie-banner[hidden] { display: none; }
.rk-cookie-inner { display: flex; align-items: center; gap: 20px; padding: 18px 20px; }
.rk-cookie-copy { flex: 1 1 auto; min-width: 0; }
.rk-cookie-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #2d3436; line-height: 1.3; }
.rk-cookie-text { margin: 0; color: #636e72; font-size: 14px; }
.rk-cookie-link { color: #6c5ce7; font-weight: 600; text-decoration: underline; }
.rk-cookie-actions { display: flex; flex: 0 0 auto; gap: 10px; }
/* Both choices share one style so neither is more prominent. */
.rk-cookie-banner .rk-cookie-btn {
    appearance: none; -webkit-appearance: none;
    width: auto; min-width: 150px; min-height: 44px; margin: 0; padding: 10px 18px;
    border: 2px solid #6c5ce7; border-radius: 10px;
    background: #6c5ce7; color: #ffffff;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
    cursor: pointer; box-shadow: none; transform: none; transition: background-color 0.15s ease;
}
.rk-cookie-banner .rk-cookie-btn:hover { background: #5649c0; border-color: #5649c0; transform: none; }
.rk-cookie-banner .rk-cookie-btn:focus-visible,
.rk-cookie-link:focus-visible,
.rk-cookie-settings-link:focus-visible { outline: 3px solid #2d3436; outline-offset: 2px; }
.rk-cookie-settings-link {
    appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; margin: 0;
    width: auto; min-width: 0; box-shadow: none; transform: none;
    font: inherit; color: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
}
.rk-cookie-settings-link:hover { text-decoration: underline; background: none; transform: none; }
.rk-cookie-settings-btn {
    appearance: none; -webkit-appearance: none; display: inline-block; width: auto;
    margin-top: 8px; padding: 10px 18px; border: 2px solid #6c5ce7; border-radius: 10px;
    background: #fff; color: #6c5ce7; font: inherit; font-weight: 600; cursor: pointer;
}
@media (max-width: 700px) {
    .rk-cookie-banner { left: 10px; right: 10px; bottom: 10px; }
    .rk-cookie-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
    .rk-cookie-actions { flex-direction: column; }
    .rk-cookie-banner .rk-cookie-btn { width: 100%; min-width: 0; }
}
/* Keep the banner above the signed-in mobile tab bar. */
@media (max-width: 700px) {
    body:has(.mobile-tabbar) .rk-cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .rk-cookie-banner .rk-cookie-btn { transition: none; } }
