#rl-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 1.25em 2em;
  background: #ffffff;
  border-top: 3px solid #c8102e;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.15);
  font-family: "Overpass", sans-serif;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0s linear 0.35s;
}

#rl-cookie-banner.rl-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.35s ease, visibility 0s linear 0s;
}

.rl-cookie-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25em;
}

.rl-cookie-banner__text {
  flex: 1 1 480px;
  margin: 0;
  color: #231f20;
  font-size: 0.95em;
  line-height: 1.6;
}

.rl-cookie-banner__text strong {
  display: block;
  margin-bottom: 0.25em;
  color: #231f20;
  font-family: "Poppins", sans-serif;
  font-size: 1.15em;
  font-weight: 600;
}

.rl-cookie-banner__text a {
  color: #c8102e;
  text-decoration: underline;
}

.rl-cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65em;
}

.rl-btn {
  min-height: 44px;
  padding: 0.7em 1.35em;
  border: 1px solid #c8102e;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.rl-btn:focus-visible,
.rl-cookie-modal__close:focus-visible,
.rl-cookie-category__toggle:focus-visible,
.rl-switch input:focus-visible + .rl-switch__slider {
  outline: 2px solid #231f20;
  outline-offset: 3px;
}

.rl-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.rl-btn--outline {
  background: #ffffff;
  color: #c8102e;
}

.rl-btn--outline:hover {
  background: #fdecee;
}

.rl-btn--solid {
  background: #c8102e;
  color: #ffffff;
}

.rl-btn--solid:hover {
  background: #a50d26;
  border-color: #a50d26;
}

.rl-cookie-status {
  display: none;
  flex: 1 0 100%;
  margin: 0;
  color: #a50d26;
  font-size: 0.9em;
  line-height: 1.4;
}

.rl-cookie-status:not(:empty) {
  display: block;
}

#rl-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25em;
  background: rgba(25, 22, 22, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

#rl-cookie-modal.rl-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.rl-cookie-modal__panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 620px);
  max-height: 86vh;
  overflow: hidden;
  border-radius: 9px;
  background: #ffffff;
  color: #231f20;
  font-family: "Overpass", sans-serif;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

#rl-cookie-modal.rl-visible .rl-cookie-modal__panel {
  transform: translateY(0) scale(1);
}

.rl-cookie-modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0.75em 1.5em;
  border-bottom: 1px solid #e9e5e2;
}

.rl-cookie-modal__brand {
  color: #c8102e;
  font-family: "Poppins", sans-serif;
  font-size: 1.2em;
  font-weight: 700;
}

.rl-cookie-modal__brand span {
  color: #4a4645;
  font-size: 0.75em;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.rl-cookie-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #4a4645;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1.5em;
}

.rl-cookie-modal__content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5em;
  overscroll-behavior: contain;
}

.rl-cookie-modal__content h2 {
  margin: 0 0 1em;
  color: #231f20;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35em, 4vw, 1.75em);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.rl-cookie-category {
  margin-bottom: 0.75em;
  padding: 1em 1.15em;
  border: 1px solid #e1dcda;
  background: #ffffff;
}

.rl-cookie-category__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.rl-cookie-category__toggle {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  gap: 0.85em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.rl-cookie-category__icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  border: 1.5px solid #c8102e;
  border-radius: 50%;
}

.rl-cookie-category__icon::before,
.rl-cookie-category__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #c8102e;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rl-cookie-category__icon::before {
  width: 0.55em;
  height: 1.5px;
}

.rl-cookie-category__icon::after {
  width: 1.5px;
  height: 0.55em;
}

.rl-cookie-category__toggle[aria-expanded="true"] .rl-cookie-category__icon::after {
  opacity: 0;
}

.rl-cookie-category__title {
  margin: 0;
  color: #231f20;
  font-family: "Poppins", sans-serif;
  font-size: 0.98em;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.rl-cookie-category__always {
  flex: 0 0 auto;
  color: #c8102e;
  font-family: "Poppins", sans-serif;
  font-size: 0.88em;
  font-weight: 600;
}

.rl-cookie-category__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.rl-cookie-category__panel.rl-open {
  max-height: 1200px;
  opacity: 1;
}

.rl-cookie-category__desc {
  margin: 0.8em 0 0;
  color: #5f5f5f;
  font-size: 0.88em;
  line-height: 1.55;
}

.rl-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
}

.rl-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rl-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background-color: #cccccc;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rl-switch__slider::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  content: "";
  transition: transform 0.2s ease;
}

.rl-switch input:checked + .rl-switch__slider {
  background-color: #c8102e;
}

.rl-switch input:checked + .rl-switch__slider::before {
  transform: translateX(20px);
}

.rl-cookie-modal__footer {
  flex: 0 0 auto;
  padding: 1em 1.5em 1.25em;
  border-top: 1px solid #eeeae8;
  background: #ffffff;
}

.rl-cookie-modal__footer .rl-btn {
  width: 100%;
  min-height: 56px;
  font-size: 1em;
  text-transform: uppercase;
}

.rl-cookie-modal__footer .rl-cookie-status:not(:empty) {
  margin-bottom: 0.75em;
}

@media (max-width: 640px) {
  #rl-cookie-banner {
    max-height: 85vh;
    overflow-y: auto;
    padding: 1em 1.15em;
  }

  .rl-cookie-banner__text {
    font-size: 0.82em;
    line-height: 1.4;
  }

  .rl-cookie-banner__actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5em;
  }

  .rl-cookie-banner__actions .rl-btn {
    min-width: 0;
    padding-right: 0.35em;
    padding-left: 0.35em;
    font-size: 0.72em;
  }

  #rl-cookie-manage {
    grid-column: 1 / -1;
  }

  .rl-cookie-modal__panel {
    width: min(100%, 420px);
    max-height: 82vh;
  }

  .rl-cookie-modal__header {
    min-height: 58px;
    padding-right: 1em;
    padding-left: 1em;
  }

  .rl-cookie-modal__content {
    padding: 1.2em 1em;
  }

  .rl-cookie-modal__content h2 {
    font-size: 1.05em;
  }

  .rl-cookie-category {
    padding: 0.9em 0.8em;
  }

  .rl-cookie-category__row {
    flex-wrap: wrap;
    gap: 0.6em;
  }

  .rl-cookie-category__toggle {
    flex: 1 1 100%;
  }

  .rl-switch {
    margin-left: 2em;
  }

  .rl-cookie-category__title {
    font-size: 0.9em;
  }

  .rl-cookie-category__always {
    max-width: none;
    margin-left: 2em;
    text-align: left;
  }

  .rl-cookie-modal__footer {
    padding: 0.9em 1em 1.1em;
  }

  .rl-cookie-modal__footer .rl-btn {
    padding-right: 0.5em;
    padding-left: 0.5em;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rl-cookie-banner,
  #rl-cookie-modal,
  .rl-cookie-modal__panel,
  .rl-cookie-category__panel,
  .rl-cookie-category__icon::before,
  .rl-cookie-category__icon::after,
  .rl-switch__slider,
  .rl-switch__slider::before {
    transition: none;
  }
}
