
#wccatm-modal,
.wccatm-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.wccatm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.wccatm-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 560px);
    background: #fff;
    padding: 28px 26px;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,.20);
    box-sizing: border-box;
}

.wccatm-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0;
}

.wccatm-modal h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #222;
}

.wccatm-modal p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.45;
    color: #333;
}

.wccatm-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wccatm-actions .button,
.wccatm-actions a.button,
.wccatm-actions button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none;
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.wccatm-primary-btn,
.wccatm-primary-btn:hover,
.wccatm-primary-btn:focus,
.wccatm-secondary-btn,
.wccatm-secondary-btn:hover,
.wccatm-secondary-btn:focus {
    background: var(--wccatm-primary, #57c3c2);
    color: #fff;
}

body.wccatm-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .wccatm-modal {
        padding: 22px 18px;
    }

    .wccatm-modal h3 {
        font-size: 20px;
    }

    .wccatm-modal p {
        font-size: 15px;
    }

    .wccatm-actions {
        flex-direction: column;
    }

    .wccatm-actions .button,
    .wccatm-actions a.button,
    .wccatm-actions button.button {
        width: 100%;
    }
}
