
/* =========================================================
   RAPPiD Consent
   ========================================================= */

.rappid-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
}

.rappid-consent__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, .16);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.rappid-consent__content {
  max-width: 700px;
}

.rappid-consent__title {
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.rappid-consent__content p {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.rappid-consent__content a {
  font-size: 13px;
  color: inherit;
  text-decoration: underline;
}

.rappid-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rappid-consent button,
.rappid-consent-settings button {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}

.rappid-consent button:hover,
.rappid-consent-settings button:hover {
  background: #f5f5f5;
}

/* Primärer Button */
.rappid-consent [data-consent="accept"],
.rappid-consent-settings [data-consent="accept"],
.rappid-consent-settings [data-consent="save"] {
  background: #333;
  border-color: #333;
  color: #fff;
}

.rappid-consent [data-consent="accept"]:hover,
.rappid-consent-settings [data-consent="accept"]:hover,
.rappid-consent-settings [data-consent="save"]:hover {
  background: #111;
  border-color: #111;
}


/* =========================================================
   Preferences Dialog
   ========================================================= */

.rappid-consent-settings {
  position: fixed;
  inset: 0;
  z-index: 100000;
  padding: 20px;
  background: rgba(0, 0, 0, .45);

  display: flex;
  align-items: center;
  justify-content: center;
}

.rappid-consent-settings[hidden],
.rappid-consent[hidden] {
  display: none !important;
}

.rappid-consent-settings__dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .25);
}

.rappid-consent-settings__dialog > [data-consent="close"] {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.rappid-consent-settings__dialog h2 {
  margin: 0 35px 8px 0;
  font-size: 22px;
}

.rappid-consent-settings__dialog > p {
  margin: 0 0 22px;
  color: #666;
  line-height: 1.5;
}

.rappid-consent-settings__dialog > label {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 10px;
  padding: 15px 0;
  margin: 0;
  border-top: 1px solid #eee;
  cursor: pointer;
}

.rappid-consent-settings__dialog > label input {
  grid-row: 1 / 3;
  margin-top: 3px;
}

.rappid-consent-settings__dialog > label strong {
  display: block;
  color: #222;
}

.rappid-consent-settings__dialog > label span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}

.rappid-consent-settings__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

  .rappid-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .rappid-consent__inner {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .rappid-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rappid-consent__actions [data-consent="accept"] {
    grid-column: 1 / -1;
  }

  .rappid-consent__actions button {
    width: 100%;
  }

  .rappid-consent-settings {
    padding: 10px;
  }

  .rappid-consent-settings__dialog {
    padding: 22px 18px;
    max-height: calc(100vh - 20px);
  }

  .rappid-consent-settings__actions {
    flex-direction: column;
  }

  .rappid-consent-settings__actions button {
    width: 100%;
  }
}