/* RC Rider's 79 - bandeau cookies */

.rcrc {
  --rcrc-red: #E1001E;
  --rcrc-red-dark: #B80018;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.rcrc [hidden] { display: none !important; }
.rcrc a { color: #FF4A5C; text-decoration: underline; }
.rcrc a:hover { color: #FF7A87; }

.rcrc-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000;
  width: calc(100% - 32px);
  max-width: 560px;
  box-sizing: border-box;
  padding: 20px 22px;
  background: #131316;
  color: #F2F2F3;
  border: 1px solid #2E2E34;
  border-top: 4px solid var(--rcrc-red);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.rcrc-title {
  margin: 0 0 6px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: #FFFFFF;
}
.rcrc-desc { margin: 0; font-size: 0.95rem; line-height: 1.5; color: #C9C9CF; }

.rcrc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.rcrc-btn {
  flex: 1 1 auto;
  white-space: nowrap;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid #FFFFFF;
  border-radius: 3px;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.rcrc-btn:hover, .rcrc-btn:focus-visible { background: #FFFFFF; color: #0B0B0D; }
.rcrc-btn--red { background: var(--rcrc-red); border-color: var(--rcrc-red); }
.rcrc-btn--red:hover, .rcrc-btn--red:focus-visible { background: var(--rcrc-red-dark); border-color: var(--rcrc-red-dark); color: #FFFFFF; }

.rcrc-link {
  min-height: 44px;
  padding: 0 4px;
  border: none;
  background: none;
  color: #C9C9CF;
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}
.rcrc-link:hover { color: #FFFFFF; }

.rcrc-panel {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
}
.rcrc-panel__box {
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 24px;
  background: #131316;
  color: #F2F2F3;
  border-top: 4px solid var(--rcrc-red);
}
.rcrc-panel__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.rcrc-cat { padding: 14px 0; border-top: 1px solid #26262C; }
.rcrc-cat:first-of-type { margin-top: 12px; }
.rcrc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rcrc-cat__name { margin: 0; font-size: 1.05rem; font-weight: 600; color: #FFFFFF; cursor: pointer; }
.rcrc-cat p { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.45; color: #B9B9C0; }
.rcrc-always { font-size: 0.85rem; font-weight: 600; color: #8FD9A0; }

.rcrc-switch { position: relative; flex: 0 0 auto; width: 52px; height: 30px; }
.rcrc-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.rcrc-switch span { position: absolute; inset: 0; border-radius: 15px; background: #3A3A42; transition: background 0.15s ease; }
.rcrc-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.15s ease;
}
.rcrc-switch input:checked + span { background: var(--rcrc-red); }
.rcrc-switch input:checked + span::after { transform: translateX(22px); }
.rcrc-switch input:focus-visible + span { outline: 2px solid #FFFFFF; outline-offset: 2px; }

.rcrc-float {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--rcrc-red);
  border-radius: 50%;
  background: #131316;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.rcrc-float:hover { background: var(--rcrc-red); }

.rcrc-footer-link { margin: 12px 0 0; text-align: center; font-size: 0.85rem; }
.rcrc-footer-link a { color: #A8A8B0; text-decoration: underline; }
.rcrc-footer-link a:hover { color: #FF4A5C; }

@media (max-width: 575px) {
  .rcrc-banner {
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    padding: 16px;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .rcrc-title { font-size: 1.3rem; }
  .rcrc-btn { flex: 1 1 100%; }
  .rcrc-desc { font-size: 0.9rem; }
  .rcrc-panel { padding: 0; align-items: flex-end; }
  .rcrc-panel__box { max-height: 90vh; padding: 18px 16px; }
  .rcrc-float { width: 40px; height: 40px; left: 12px; bottom: 12px; }
}
