/* Widerrufsbutton Overlay – CSS
   Namespace: .wdr-* damit es in WordPress, TYPO3 & Co. möglichst wenig kollidiert.
*/

#wdr-online-btn {
  cursor: pointer;
}

#wdr-online-btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wdr-overlay[hidden] {
  display: none !important;
}

.wdr-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.wdr-modal {
  width: min(680px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  box-sizing: border-box;
  padding: 26px;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wdr-modal *,
.wdr-modal *::before,
.wdr-modal *::after {
  box-sizing: border-box;
}

.wdr-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.wdr-modal__title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.wdr-modal__intro {
  margin: 0 0 18px;
  color: #444;
  line-height: 1.5;
}

.wdr-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.wdr-close:focus,
.wdr-input:focus,
.wdr-textarea:focus,
.wdr-submit:focus {
  outline: 3px solid #7aa7ff;
  outline-offset: 2px;
}

.wdr-field {
  margin: 0 0 14px;
}

.wdr-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}

.wdr-required {
  color: #b00020;
}

.wdr-input,
.wdr-textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #b7b7b7;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: #fff;
}

.wdr-textarea {
  min-height: 110px;
  resize: vertical;
}

.wdr-help {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.9rem;
}

.wdr-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.wdr-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.wdr-submit {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #111;
}

.wdr-submit[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.wdr-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
}

.wdr-status[hidden] {
  display: none !important;
}

.wdr-status--success {
  background: #e8f6ee;
  color: #0b5b2a;
}

.wdr-status--error {
  background: #fdecec;
  color: #8a1f11;
}

.wdr-legal {
  margin-top: 14px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.45;
}

.wdr-legal a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .wdr-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .wdr-modal {
    padding: 20px;
  }

  .wdr-submit {
    width: 100%;
  }
}
