.cww-modal-open {
    overflow: hidden;
}

.cww-withdraw-button {
    cursor: pointer;
}

.cww-footer-entry {
    margin: 24px auto;
    max-width: 1200px;
    padding: 0 16px;
}

.cww-modal[hidden] {
    display: none !important;
}

.cww-form [hidden] {
    display: none !important;
}

.cww-modal {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999999;
}

.cww-modal__backdrop {
    background: rgba(16, 20, 24, 0.66);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.cww-modal__dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    color: #1f2933;
    max-height: min(90vh, 860px);
    max-width: 720px;
    overflow: auto;
    padding: 28px;
    position: relative;
    width: 100%;
}

.cww-modal__dialog h2 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0 40px 20px 0;
}

.cww-modal__close {
    align-items: center;
    background: #f2f4f7;
    border: 1px solid #d8dee6;
    border-radius: 50%;
    color: #1f2933;
    cursor: pointer;
    display: flex;
    font-size: 26px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
}

.cww-form label,
.cww-form fieldset {
    display: block;
    margin: 0 0 16px;
}

.cww-form input[type="text"],
.cww-form input[type="email"],
.cww-form input[type="tel"],
.cww-form select,
.cww-form textarea {
    border: 1px solid #c9d2dc;
    border-radius: 6px;
    box-sizing: border-box;
    display: block;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 6px;
    padding: 10px 12px;
    width: 100%;
}

.cww-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cww-form fieldset {
    border: 1px solid #d8dee6;
    border-radius: 8px;
    padding: 14px 16px 4px;
}

.cww-form legend {
    font-weight: 700;
    padding: 0 6px;
}

.cww-form fieldset label {
    margin-bottom: 10px;
}

.cww-products {
    background: #f7f9fb;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 14px 16px;
}

.cww-products__title {
    font-weight: 700;
    margin: 0 0 10px;
}

.cww-products__list label {
    margin-bottom: 10px;
}

.cww-consent {
    align-items: flex-start;
    display: flex;
    gap: 8px;
}

.cww-consent input {
    margin-top: 5px;
}

.cww-recaptcha {
    margin: 0 0 16px;
}

.cww-message {
    margin: 12px 0;
}

.cww-message.is-error {
    color: #b42318;
}

.cww-message.is-success {
    color: #067647;
}

.cww-submit {
    min-width: 180px;
}

@media (max-width: 640px) {
    .cww-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .cww-modal__dialog {
        max-height: 92vh;
        padding: 22px;
    }

    .cww-grid {
        grid-template-columns: 1fr;
    }
}
