/* Overlay */
.sm-ebd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.sm-ebd-overlay.is-visible {
    display: flex;
}

.sm-ebd-wrapper {
    cursor: pointer;
}

/* Popup Container */
.sm-ebd-popup {
    background: #fff;
    color: #000;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
    /* Square shape, no border-radius */
    border-radius: 0;
}

/* Close Button */
.sm-ebd-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #000;
}


/* Typography inherited from theme */
.sm-ebd-popup h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: inherit;
    color: #000;
}

.sm-ebd-popup p {
    font-family: inherit;
    color: #333;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.sm-ebd-popup #sm-ebd-gdpr {
    font-size: 0.7em;
}

/* Form Elements */
.sm-ebd-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #000;
    border-radius: 0;
    box-sizing: border-box;
    font-family: inherit;
}

.sm-ebd-form button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.sm-ebd-form button:hover {
    background: #333;
}

.sm-ebd-message {
    margin-top: 15px;
    font-size: 0.9em;
}

.sm-ebd-message.error {
    color: red;
}

.sm-ebd-message.success {
    color: green;
}