/* ── Button variants ───────────────────────────────────────────────────────── */

.mu-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: 2px;
    border: 2px solid transparent;
    padding: 10px 20px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, opacity .2s;
    white-space: nowrap;
}

.mu-modal-btn--full { width: 100%; justify-content: center; }

/* Primary */
.mu-modal-btn--primary {
    background: #FF6B00;
    color: #fff;
    border-color: #FF6B00;
}
.mu-modal-btn--primary:hover { background: #e05e00; border-color: #e05e00; }

/* Secondary */
.mu-modal-btn--secondary {
    background: transparent;
    color: #FF6B00;
    border-color: #FF6B00;
}
.mu-modal-btn--secondary:hover { background: #FF6B00; color: #fff; }

/* Ghost */
.mu-modal-btn--ghost {
    background: transparent;
    color: #0D0D0D;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13px;
}
.mu-modal-btn--ghost::after { content: ' →'; }
.mu-modal-btn--ghost:hover { color: #FF6B00; }

/* Custom — colors injected by Elementor selectors */
.mu-modal-btn--custom {
    background: #FF6B00;
    color: #fff;
    border-color: transparent;
}

/* ── Modal overlay + box ───────────────────────────────────────────────────── */

.mu-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.mu-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    cursor: pointer;
    animation: mu-modal-fadein .2s ease;
}

.mu-modal-box {
    position: relative;
    background: #fff;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    padding: 36px 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: mu-modal-slidein .22s ease;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .mu-modal-box { padding: 28px 20px 24px; }
}

/* ── Close button ──────────────────────────────────────────────────────────── */

.mu-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    transition: color .15s, background .15s;
    padding: 0;
}
.mu-modal-close:hover { color: #0D0D0D; background: #f0f0f0; }

/* ── Heading ───────────────────────────────────────────────────────────────── */

.mu-modal-heading {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
    color: #0D0D0D;
    line-height: 1.3;
    padding-right: 24px;
}

/* ── Fields (definition list) ──────────────────────────────────────────────── */

.mu-modal-fields {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mu-modal-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mu-modal-row:last-child { border-bottom: none; padding-bottom: 0; }

dt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #999;
    margin: 0;
}

dd {
    font-size: 15px;
    color: #0D0D0D;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

dd a { color: #FF6B00; }
dd a:hover { text-decoration: underline; }

.mu-modal-suffix {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

.mu-modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

@media (max-width: 480px) {
    .mu-modal-row { grid-template-columns: 1fr; gap: 2px; }
    dt { margin-bottom: 2px; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.mu-modal-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e6;
}

.mu-modal-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: #FF6B00;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mu-modal-footer-link:hover { text-decoration: underline; }

.mu-modal-empty { color: #999; font-style: italic; margin: 0; }

/* ── Animations ────────────────────────────────────────────────────────────── */

@keyframes mu-modal-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes mu-modal-slidein {
    from { opacity: 0; transform: translateY(-12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Body scroll lock ──────────────────────────────────────────────────────── */

body.mu-modal-open { overflow: hidden; }
