/* ============================================================
   Popup button
   ============================================================ */

.pyrost-es-popup-btn {
    background-color: var(--e-global-color-accent, #f97316);
    font-family: "Rajdhani", sans-serif;
    font-size: 18px;
    font-weight: 600;
    fill: var(--e-global-color-3d30c73, #ffffff);
    color: var(--e-global-color-3d30c73, #ffffff);
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.pyrost-es-popup-btn:hover,
.pyrost-es-popup-btn:focus {
    opacity: 0.88;
    outline: none;
}

/* ============================================================
   Modal overlay + dialog
   ============================================================ */

.pyrost-es-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pyrost-es-modal[hidden] {
    display: none;
}

.pyrost-es-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    cursor: pointer;
}

.pyrost-es-modal-dialog {
    position: relative;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 40px 40px 36px;
    max-width: 500px;
    width: calc(100% - 32px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* Close button */
.pyrost-es-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s ease;
}

.pyrost-es-modal-close:hover,
.pyrost-es-modal-close:focus {
    color: #ffffff;
    outline: none;
}

/* Title */
.pyrost-es-modal-title {
    margin: 0 0 24px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    font-family: "Rajdhani", sans-serif;
}

/* Align block wrapper */
.pyrost-es-block-wrap {
    display: inline-block;
}

.wp-block-pyrost-email-subscribe-subscribe-button.alignleft  .pyrost-es-block-wrap { display: block; text-align: left; }
.wp-block-pyrost-email-subscribe-subscribe-button.aligncenter .pyrost-es-block-wrap { display: block; text-align: center; }
.wp-block-pyrost-email-subscribe-subscribe-button.alignright  .pyrost-es-block-wrap { display: block; text-align: right; }
