.relius-cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.relius-cookie-consent__panel {
  pointer-events: auto;
  touch-action: manipulation;
  max-width: 56rem;
  margin-inline: auto;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.5rem;
}

.relius-cookie-consent__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .relius-cookie-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.relius-cookie-consent__copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.relius-cookie-consent__title {
  margin: 0;
  font-weight: 600;
  color: #171717;
}

.relius-cookie-consent__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #404040;
}

.relius-cookie-consent__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.relius-cookie-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .relius-cookie-consent__actions {
    flex-direction: row;
    align-items: center;
  }
}

.relius-cookie-consent__btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.relius-cookie-consent__btn--outline {
  background: #fff;
  color: #171717;
  border-color: #d4d4d4;
}

.relius-cookie-consent__btn--outline:hover {
  background: #fafafa;
}

.relius-cookie-consent__btn--primary {
  background: #171717;
  color: #fff;
}

.relius-cookie-consent__btn--primary:hover {
  background: #262626;
}

.relius-cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.relius-cookie-consent-modal[hidden] {
  display: none;
}

.relius-cookie-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.relius-cookie-consent-modal__dialog {
  position: relative;
  width: min(100%, 32rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.relius-cookie-consent-modal__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.relius-cookie-consent-category {
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.relius-cookie-consent-category__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.relius-cookie-consent-category__name {
  margin: 0;
  font-weight: 600;
}

.relius-cookie-consent-category__desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #525252;
}

.relius-cookie-consent-category__status {
  font-size: 0.875rem;
  color: #737373;
  white-space: nowrap;
}

.relius-cookie-consent-category__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.relius-cookie-consent-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
