.wh-widerruf-wrap {
    max-width: 640px;
    margin: 0;
}

.wh-widerruf-form,
.wh-widerruf-message {
    border: 1px solid #d7d7d7;
    padding: 20px;
    background: #ffffff;
    box-sizing: border-box;
}

.wh-widerruf-form h2,
.wh-widerruf-message h2 {
    margin-top: 0;
}

.wh-widerruf-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.wh-widerruf-form input[type="text"],
.wh-widerruf-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    box-sizing: border-box;
}

.wh-widerruf-form button,
.wh-widerruf-trigger {
    cursor: pointer;
    padding: 10px 16px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
}

.wh-widerruf-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.wh-widerruf-legal-link {
    color: #cc0000;
    text-decoration: underline;
}

.wh-widerruf-summary {
    margin: 16px 0;
    padding: 12px;
    background: #f7f7f7;
}

.wh-widerruf-error {
    border-color: #cc0000;
}

.wh-widerruf-success {
    border-color: #2b7a0b;
}

.wh-widerruf-overlay,
.wh-widerruf-legal-overlay {
    display: none;
    position: fixed;
    inset: 0;
}

.wh-widerruf-overlay {
    z-index: 999999;
}

.wh-widerruf-legal-overlay {
    z-index: 1000001;
}

.wh-widerruf-overlay.is-open,
.wh-widerruf-legal-overlay.is-open {
    display: block;
}

.wh-widerruf-backdrop,
.wh-widerruf-legal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.wh-widerruf-modal,
.wh-widerruf-legal-modal {
    position: relative;
    z-index: 2;
    width: min(700px, calc(100vw - 30px));
    margin: 60px auto;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.wh-widerruf-legal-modal {
    width: min(960px, calc(100vw - 30px));
}

.wh-widerruf-close-button {
    position: absolute;
  top: 0px;
  right: 0px;
  font-size: 28px;
  line-height: 1;
  background: #E81123;
  color: #333333;
  border: 0;
  padding: 4px 8px 4px 8px;

}

.wh-widerruf-legal-content-wrap {
    max-height: calc(100vh - 140px);
    overflow: auto;
    padding: 24px;
}

.wh-widerruf-legal-content-wrap h2 {
    margin-top: 0;
}

@media (max-width: 767px) {
    .wh-widerruf-modal,
    .wh-widerruf-legal-modal {
        width: calc(100vw - 20px);
        margin: 30px auto;
    }

    .wh-widerruf-legal-content-wrap {
        max-height: calc(100vh - 90px);
        padding: 18px;
    }
}
