/* Controles de analíticas aislados del diseño de las páginas. */
.rf-consent,
.rf-consent * { box-sizing: border-box; }
.rf-consent[hidden] { display: none; }
.rf-consent {
    position: fixed;
    z-index: 1100;
    inset: auto 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: calc(100% - 2rem);
    max-width: 68rem;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    margin-inline: auto;
    padding: 1rem 1.25rem;
    border: 1px solid #d9c8e6;
    border-radius: 0.85rem;
    background: #fffaf4;
    color: #604378;
    box-shadow: 0 8px 36px #35224226;
    font: 14px/1.55 poppins, system-ui, sans-serif;
    text-align: left;
}
.rf-consent-copy { min-width: 0; }
.rf-consent h2 { margin: 0 0 0.3rem; color: #7c5899; font: 600 16px/1.4 poppins, system-ui, sans-serif; }
.rf-consent p { margin: 0; }
.rf-consent details { margin-top: 0.4rem; }
.rf-consent summary { width: fit-content; padding: 0.25rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rf-consent details p { margin-top: 0.5rem; }
.rf-consent a { color: inherit; text-decoration: underline; }
.rf-consent-actions { display: flex; flex: 0 0 auto; gap: 0.65rem; }
.rf-consent-actions button {
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    border: 1px solid #7c5899;
    border-radius: 0.45rem;
    background: #fffaf4;
    color: #604378;
    font: 600 14px/1.3 poppins, system-ui, sans-serif;
    cursor: pointer;
}
.rf-consent-actions button[data-rf-consent="granted"] { background: #7c5899; color: #fffaf4; }
.rf-consent button:focus-visible,
.rf-consent summary:focus-visible,
.rf-cookie-settings:focus-visible { outline: 3px solid #ffbf37; outline-offset: 3px; }
.rf-cookie-settings { min-height: 32px; padding: 0.25rem 0.5rem; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rf-privacy-footer { padding: 0 1rem 1rem; color: #7c5899; font: 14px/1.5 poppins, system-ui, sans-serif; text-align: center; }
@media (max-width: 767px) {
    .rf-privacy-footer { padding-bottom: 5rem; }
    .rf-consent { flex-direction: column; align-items: stretch; gap: 0.75rem; inset: auto 0.75rem max(0.75rem, env(safe-area-inset-bottom)); width: calc(100% - 1.5rem); padding: 0.9rem; font-size: 13px; }
    .rf-consent-actions button { flex: 1 1 0; }
}
