:root {
  --rf-cookie-red: #cc0000;
  --rf-cookie-bg: #0b0b0b;
  --rf-cookie-panel: #111;
  --rf-cookie-line: #333;
  --rf-cookie-text: #f5f5f5;
  --rf-cookie-muted: #b6b6b6;
}

.rf-cookie-dialog-open {
  overflow: hidden;
}

.rf-cookie-shell {
  position: fixed;
  z-index: 12000;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  pointer-events: none;
}

.rf-cookie-position-bottom {
  justify-content: center;
}

.rf-cookie-position-bottom-left {
  justify-content: flex-start;
}

.rf-cookie-position-bottom-right {
  justify-content: flex-end;
}

.rf-cookie-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  width: min(100%, 1180px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid #3a3a3a;
  border-top: 3px solid var(--rf-cookie-red);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(204, 0, 0, 0.07), transparent 28%),
    var(--rf-cookie-bg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
  color: var(--rf-cookie-text);
  padding: 20px;
  pointer-events: auto;
}

.rf-cookie-shell.is-preview {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.rf-cookie-shell.is-preview .rf-cookie-banner {
  max-width: 1040px;
}

.rf-cookie-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rf-cookie-eyebrow {
  color: #ee3030;
  font: 800 0.68rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rf-cookie-main h2,
.rf-cookie-preferences h3 {
  margin: 0;
  color: #fff;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rf-cookie-main p {
  max-width: 720px;
  margin: 0;
  color: var(--rf-cookie-muted);
  font: 400 0.86rem/1.48 Arial, Helvetica, sans-serif;
}

.rf-cookie-main a {
  width: max-content;
  color: #fff;
  font: 700 0.75rem/1.3 Arial, Helvetica, sans-serif;
  text-underline-offset: 3px;
}

.rf-cookie-actions,
.rf-cookie-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.rf-cookie-button {
  min-height: 42px;
  border: 1px solid #555;
  border-radius: 5px;
  background: #151515;
  color: #fff;
  padding: 10px 15px;
  font: 800 0.72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.rf-cookie-button:hover,
.rf-cookie-button:focus-visible {
  border-color: #fff;
  background: #222;
  outline: none;
}

.rf-cookie-button.is-primary {
  border-color: var(--rf-cookie-red);
  background: var(--rf-cookie-red);
}

.rf-cookie-button.is-primary:hover,
.rf-cookie-button.is-primary:focus-visible {
  border-color: #f33;
  background: #a90000;
}

.rf-cookie-button.is-text {
  border-color: transparent;
  background: transparent;
  color: #ddd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rf-cookie-preferences {
  display: grid;
  grid-column: 1 / -1;
  gap: 16px;
  width: min(100%, 760px);
  margin-inline: auto;
}

.rf-cookie-preferences-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rf-cookie-preferences-head > div {
  display: grid;
  gap: 4px;
}

.rf-cookie-preferences-head span {
  color: #e22;
  font: 800 0.66rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rf-cookie-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #444;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font: 300 1.7rem/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.rf-cookie-close:hover,
.rf-cookie-close:focus-visible {
  border-color: #fff;
  outline: none;
}

.rf-cookie-category-list {
  display: grid;
  border-top: 1px solid var(--rf-cookie-line);
}

.rf-cookie-category {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 13px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--rf-cookie-line);
  padding: 12px 2px;
  cursor: pointer;
}

.rf-cookie-category-copy {
  display: grid;
  gap: 4px;
}

.rf-cookie-category-copy strong {
  color: #fff;
  font: 800 0.82rem/1.2 Arial, Helvetica, sans-serif;
}

.rf-cookie-category-copy small {
  max-width: 590px;
  color: #aaa;
  font: 400 0.76rem/1.4 Arial, Helvetica, sans-serif;
}

.rf-cookie-category input {
  position: absolute;
  opacity: 0;
}

.rf-cookie-category > i {
  position: relative;
  display: block;
  width: 46px;
  height: 25px;
  border: 1px solid #4c4c4c;
  border-radius: 999px;
  background: #202020;
  transition: background 160ms ease, border-color 160ms ease;
}

.rf-cookie-category > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #aaa;
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.rf-cookie-category input:checked + i {
  border-color: var(--rf-cookie-red);
  background: rgba(204, 0, 0, 0.36);
}

.rf-cookie-category input:checked + i::after {
  background: #fff;
  transform: translateX(21px);
}

.rf-cookie-category input:focus-visible + i {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.rf-cookie-category.is-necessary {
  cursor: default;
}

.rf-cookie-category.is-necessary > b {
  border: 1px solid #454545;
  border-radius: 999px;
  color: #ccc;
  padding: 6px 9px;
  font: 800 0.62rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rf-cookie-panel-actions {
  padding-top: 2px;
}

.rf-cookie-fab {
  position: fixed;
  z-index: 9000;
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 66px);
  left: max(16px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #444;
  border-radius: 50%;
  background: #0d0d0d;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.46);
  color: #fff;
  cursor: pointer;
}

.rf-cookie-fab svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.rf-cookie-fab:hover,
.rf-cookie-fab:focus-visible {
  border-color: #e22;
  color: #f44;
  outline: none;
}

.rf-cookie-media-placeholder {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 120px;
  place-content: center;
  border: 1px dashed #4b4b4b;
  background: #101010;
  color: #fff;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

.rf-cookie-media-placeholder span {
  color: #aaa;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .rf-cookie-shell {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
  }

  .rf-cookie-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .rf-cookie-actions,
  .rf-cookie-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rf-cookie-actions .is-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .rf-cookie-actions .is-text {
    border-color: #444;
    text-decoration: none;
  }

  .rf-cookie-main h2,
  .rf-cookie-preferences h3 {
    font-size: 1.05rem;
  }

  .rf-cookie-category {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rf-cookie-category.is-necessary > b {
    font-size: 0.56rem;
  }

  .rf-cookie-panel-actions .is-primary {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .rf-cookie-fab {
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 60px);
    left: max(10px, env(safe-area-inset-left));
  }
}

@media (max-width: 420px) {
  .rf-cookie-actions,
  .rf-cookie-panel-actions {
    grid-template-columns: 1fr;
  }

  .rf-cookie-actions .is-primary {
    grid-column: auto;
  }

  .rf-cookie-button {
    width: 100%;
  }

  .rf-cookie-category {
    gap: 9px;
  }

  .rf-cookie-category-copy small {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-cookie-button,
  .rf-cookie-category > i,
  .rf-cookie-category > i::after {
    transition: none;
  }
}
