/* Rank Bix SEO Pro - cookie consent banner and declaration. Colours come from the Cookie Bar
   Appearance settings through --rbx-bg, --rbx-fg, --rbx-btn and --rbx-btn-fg. */
.rbx-consent[hidden], .rbx-consent-float[hidden], .rbx-consent [hidden] { display: none !important; }
.rbx-consent { position: fixed; z-index: 2147483000; font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--rbx-fg); }
.rbx-consent *, .rbx-consent *::before, .rbx-consent *::after { box-sizing: border-box; }
.rbx-consent__panel:focus { outline: none; }
.rbx-consent__panel { position: relative; background: var(--rbx-bg); color: var(--rbx-fg); box-shadow: 0 10px 40px rgba(0, 0, 0, .28); display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); }

/* Layouts */
.rbx-consent--bar { left: 0; right: 0; }
.rbx-consent--bar.rbx-consent--bottom { bottom: 0; }
.rbx-consent--bar.rbx-consent--top { top: 0; }
.rbx-consent--bar .rbx-consent__panel { padding: 18px max(16px, calc((100vw - 1100px) / 2)); }
.rbx-consent--bar:not(.is-prefs) .rbx-consent__panel { flex-direction: row; flex-wrap: wrap; align-items: center; }
.rbx-consent--bar:not(.is-prefs) .rbx-consent__main { flex: 1 1 420px; }
.rbx-consent--box { right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); }
.rbx-consent--box.rbx-consent--top { bottom: auto; top: 16px; }
.rbx-consent--box .rbx-consent__panel, .rbx-consent--modal .rbx-consent__panel { padding: 20px; border-radius: 12px; }
.rbx-consent--modal { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 14, 22, .55); }
.rbx-consent--modal .rbx-consent__panel { width: min(560px, 100%); }
html.rbx-consent-open:has(.rbx-consent--modal:not([hidden])) { overflow: hidden; }

/* Content */
.rbx-consent__main { display: flex; gap: 14px; align-items: flex-start; }
.rbx-consent__logo { width: 40px; height: 40px; object-fit: contain; flex: none; border-radius: 8px; }
.rbx-consent__title { margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.rbx-consent__text { margin: 0; opacity: .92; }
.rbx-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rbx-consent__close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: inherit; font-family: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; opacity: .75; }
.rbx-consent__close:hover { opacity: 1; }

/* Choices: replaces the first screen, the buttons stay in view below the list */
.rbx-consent__prefs { overflow: auto; max-height: 56vh; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; overscroll-behavior: contain; }
.rbx-consent--bar .rbx-consent__prefs { max-height: 50vh; }
.rbx-consent--bar.is-prefs .rbx-consent__prefs { width: 100%; }
.rbx-consent.is-prefs .rbx-consent__actions { border-top: 1px solid color-mix(in srgb, var(--rbx-fg) 14%, transparent); padding-top: 14px; }
.rbx-consent__prefs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; background: var(--rbx-bg); z-index: 1; padding-bottom: 4px; }
.rbx-consent__subtitle { margin: 0; font-weight: 700; font-size: 16px; }
.rbx-consent .rbx-consent__close--prefs { position: static; padding: 2px 6px; }
.rbx-consent__about-wrap { font-size: 13px; }
.rbx-consent__about { margin: 0; opacity: .85; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.rbx-consent__about.is-open { display: block; -webkit-line-clamp: none; line-clamp: none; }
.rbx-consent .rbx-consent__more { background: none; border: 0; padding: 2px 0; margin: 2px 0 0; color: var(--rbx-link, inherit); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rbx-consent__cat { border-top: 1px solid color-mix(in srgb, var(--rbx-fg) 14%, transparent); padding: 10px 0 2px; }
.rbx-consent__cat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rbx-consent .rbx-consent__cat-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; margin: 0; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; flex: 1 1 auto; min-width: 0; }
.rbx-consent__chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; margin: 0 4px 0 2px; opacity: .7; }
.rbx-consent__cat-toggle[aria-expanded="true"] .rbx-consent__chevron { transform: rotate(45deg); }
.rbx-consent__always { font-size: 12.5px; font-weight: 700; white-space: nowrap; opacity: .8; }
.rbx-consent__cat-body { padding: 0 0 6px 22px; }
.rbx-consent__cat-desc, .rbx-consent__gpc { margin: 4px 0 0; font-size: 13px; opacity: .85; }
.rbx-consent__gpc { font-style: italic; padding-left: 22px; }
.rbx-consent__count { font-size: 12px; font-weight: 400; opacity: .7; white-space: nowrap; }
.rbx-consent__cookies { margin: 8px 0 0; padding-left: 16px; font-size: 12.5px; }
.rbx-consent__cookies li { margin: 4px 0; }

/* Switch */
.rbx-consent__switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.rbx-consent__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rbx-consent__track { width: 38px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--rbx-fg) 28%, transparent); position: relative; flex: none; transition: background .15s; }
.rbx-consent__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.rbx-consent__switch input:checked + .rbx-consent__track { background: var(--rbx-btn); }
.rbx-consent__switch input:checked + .rbx-consent__track::after { transform: translateX(16px); background: var(--rbx-btn-fg, #fff); }
.rbx-consent__switch input:disabled + .rbx-consent__track { opacity: .6; cursor: not-allowed; }
.rbx-consent .rbx-consent__switch input:focus-visible + .rbx-consent__track { outline: 2px solid var(--rbx-btn); outline-offset: 2px; }

/* Buttons */
.rbx-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
/* Doubled class: stronger than theme button rules (sizes, capitals, hover colours) without !important. */
.rbx-consent .rbx-consent__btn { font-family: inherit; font-weight: 600; font-size: var(--rbx-btn-size, 14px); line-height: 1.2; letter-spacing: normal; text-transform: none; text-shadow: none; box-shadow: none;
    padding: var(--rbx-btn-pad, 11px 20px); margin: 0; min-height: 0; width: auto; border-radius: var(--rbx-radius, 8px); border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: opacity .15s; }
.rbx-consent .rbx-consent__btn:hover { opacity: .88; }
/* Themes often style a:focus, button:focus and input:focus (rings, glows). Keep them off the banner;
   the banner's own outline shows only for keyboard focus. */
.rbx-consent a:focus, .rbx-consent button:focus, .rbx-consent input:focus, .rbx-consent-float:focus,
.rbx-declaration a:focus { outline: none; box-shadow: none; }
.rbx-consent .rbx-consent__btn:focus-visible, .rbx-consent .rbx-consent__details:focus-visible, .rbx-consent .rbx-consent__close:focus-visible, .rbx-consent a:focus-visible, .rbx-consent .rbx-consent__cat-toggle:focus-visible, .rbx-consent .rbx-consent__more:focus-visible,
.rbx-consent-float.rbx-consent-float:focus-visible, .rbx-declaration a:focus-visible { outline: 2px solid var(--rbx-btn, currentColor); outline-offset: 2px; }
.rbx-consent .rbx-consent__btn--main, .rbx-consent .rbx-consent__btn--main:hover { background: var(--rbx-btn); color: var(--rbx-btn-fg); border-color: var(--rbx-btn); }
.rbx-consent .rbx-consent__btn--line, .rbx-consent .rbx-consent__btn--line:hover { background: var(--rbx-rej-bg, transparent); color: var(--rbx-rej-fg, inherit); border-color: var(--rbx-rej-border, currentColor); }
.rbx-consent .rbx-consent__btn--ghost, .rbx-consent .rbx-consent__btn--ghost:hover { background: transparent; color: var(--rbx-link, inherit); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-left: 6px; padding-right: 6px; }
.rbx-consent .rbx-consent__btn--main, .rbx-consent .rbx-consent__btn--line, .rbx-consent .rbx-consent__btn--save { min-width: 120px; }
/* Save my choices, and Choose cookies when shown as a button: an outline in the Choose cookies colour. */
.rbx-consent .rbx-consent__btn--save, .rbx-consent .rbx-consent__btn--save:hover,
.rbx-consent--choose-button .rbx-consent__btn--ghost, .rbx-consent--choose-button .rbx-consent__btn--ghost:hover { background: transparent; color: var(--rbx-link, inherit); border-color: currentColor; text-decoration: none; padding: var(--rbx-btn-pad, 11px 20px); }
.rbx-consent.rbx-consent--choose-button .rbx-consent__btn--ghost { min-width: 120px; }

.rbx-consent-float { position: fixed; left: 16px; bottom: 16px; z-index: 2147482999; background: var(--rbx-bg); color: var(--rbx-fg); border: 0; border-radius: 999px; padding: 9px 14px; font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); opacity: .9; }
.rbx-consent-float:hover { opacity: 1; }

/* Choose cookies under the text: only for the stacked bar on larger screens */
.rbx-consent .rbx-consent__details { display: none; }
@media (min-width: 601px) {
    .rbx-consent--bar.rbx-consent--bar-stack:not(.is-prefs) .rbx-consent__panel { flex-wrap: nowrap; gap: 32px; }
    .rbx-consent--bar.rbx-consent--bar-stack:not(.is-prefs) .rbx-consent__main { align-items: center; gap: 24px; }
    .rbx-consent--bar.rbx-consent--bar-stack .rbx-consent__logo { width: 56px; height: 56px; }
    .rbx-consent--bar.rbx-consent--bar-stack .rbx-consent__text { margin-bottom: 0; }
    .rbx-consent--bar.rbx-consent--bar-stack:not(.is-prefs) .rbx-consent__actions { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 260px; flex: none; }
    .rbx-consent--bar.rbx-consent--bar-stack:not(.is-prefs) .rbx-consent__btn--main { order: 1; }
    .rbx-consent--bar.rbx-consent--bar-stack:not(.is-prefs) .rbx-consent__btn--line { order: 2; }
    .rbx-consent--bar.rbx-consent--bar-stack.rbx-consent--choose-button:not(.is-prefs) .rbx-consent__btn--ghost { order: 3; }
    .rbx-consent--bar.rbx-consent--bar-stack.rbx-consent--choose-link .rbx-consent__actions .rbx-consent__btn--ghost { display: none; }
    .rbx-consent--bar.rbx-consent--bar-stack.rbx-consent--choose-link:not(.is-prefs) .rbx-consent__details:not([hidden]) { display: inline-flex; }
    .rbx-consent .rbx-consent__details { align-items: center; gap: 10px; margin: 14px 0 0; padding: 2px 0; background: none; border: 0; color: var(--rbx-link, inherit); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
    .rbx-consent .rbx-consent__details:hover { text-decoration: underline; text-underline-offset: 3px; }
    .rbx-consent__details .rbx-consent__chevron { margin: 0; opacity: 1; }
}

/* Narrow banners (corner box, centred window, phones): Reject all and Allow all side by side with the
   same weight, the Choose cookies link centred underneath. */
.rbx-consent--box .rbx-consent__actions, .rbx-consent--modal .rbx-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
.rbx-consent--box .rbx-consent__btn--line, .rbx-consent--modal .rbx-consent__btn--line { order: 1; }
.rbx-consent--box .rbx-consent__btn--main, .rbx-consent--modal .rbx-consent__btn--main { order: 2; }
.rbx-consent--box .rbx-consent__btn--ghost, .rbx-consent--modal .rbx-consent__btn--ghost { order: 3; grid-column: 1 / -1; justify-self: center; }
.rbx-consent--box.rbx-consent--choose-button .rbx-consent__btn--ghost, .rbx-consent--modal.rbx-consent--choose-button .rbx-consent__btn--ghost,
.rbx-consent--box .rbx-consent__btn--save, .rbx-consent--modal .rbx-consent__btn--save { order: 3; grid-column: 1 / -1; justify-self: stretch; }
.rbx-consent.rbx-consent--box .rbx-consent__btn, .rbx-consent.rbx-consent--modal .rbx-consent__btn { min-width: 0; }

@media (max-width: 600px) {
    .rbx-consent { font-size: 13px; }
    .rbx-consent--bar .rbx-consent__panel { padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); gap: 12px; border-radius: 14px 14px 0 0; }
    .rbx-consent--bar.rbx-consent--top .rbx-consent__panel { border-radius: 0 0 14px 14px; }
    .rbx-consent__main { gap: 10px; }
    .rbx-consent__logo { width: 32px; height: 32px; }
    .rbx-consent__copy { padding-right: 22px; } /* room for the close icon */
    .rbx-consent__actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .rbx-consent .rbx-consent__btn { min-width: 0; white-space: normal; }
    .rbx-consent .rbx-consent__btn--line { order: 1; }
    .rbx-consent .rbx-consent__btn--main { order: 2; }
    .rbx-consent .rbx-consent__btn--ghost { order: 3; grid-column: 1 / -1; justify-self: center; padding-top: 4px; padding-bottom: 4px; }
    .rbx-consent.rbx-consent--choose-button .rbx-consent__btn--ghost, .rbx-consent .rbx-consent__btn--save { order: 3; grid-column: 1 / -1; justify-self: stretch; padding: var(--rbx-btn-pad, 11px 20px); }
    /* Stacked: one full-width button per row, Allow all first. */
    .rbx-consent--phone-stack .rbx-consent__actions { grid-template-columns: 1fr; }
    .rbx-consent.rbx-consent--phone-stack .rbx-consent__btn--main { order: 1; }
    .rbx-consent.rbx-consent--phone-stack .rbx-consent__btn--line { order: 2; }
    .rbx-consent.rbx-consent--phone-stack .rbx-consent__btn--save, .rbx-consent.rbx-consent--phone-stack.rbx-consent--choose-button .rbx-consent__btn--ghost { order: 3; }
    .rbx-consent__prefs { max-height: 55vh; }
}
@media (prefers-reduced-motion: reduce) {
    .rbx-consent__track, .rbx-consent__track::after, .rbx-consent__btn, .rbx-consent__chevron { transition: none; }
}

/* [rankbix_cookie_declaration] */
.rbx-declaration__state { border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; padding: 14px 16px; margin: 0 0 1.5em; }
.rbx-declaration__state p { margin: .35em 0; }
.rbx-declaration__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .8em !important; }
.rbx-declaration__btn { display: inline-block; padding: 8px 14px; border-radius: 8px; background: #1d2327; color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 14px; }
.rbx-declaration__btn--line { background: transparent; color: inherit !important; border: 2px solid currentColor; }
.rbx-declaration__note, .rbx-declaration__meta { font-size: 13px; opacity: .75; }
.rbx-declaration__table { overflow-x: auto; margin-bottom: 1.5em; }
.rbx-declaration__table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rbx-declaration__table th, .rbx-declaration__table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(0, 0, 0, .1); vertical-align: top; }
