/* =============================================================
   AE Embed Image - Frontend CSS v1.9.0
   ============================================================= */

/* Wrapper */
.aeei-wrapper,
.aeei-plain-wrapper {
    display: block;
    width: 100%;
    margin: 1rem 0;
}

/* Image */
.aeei-image-container {
    position: relative;
    display: block;
    line-height: 0;
}

.aeei-image {
    display: block;
    width: 100%;
    height: auto;
    -webkit-user-select: none;
            user-select: none;
    pointer-events: none;
}

/* Transparent overlay to catch right-click */
.aeei-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: default;
}

/* Caption */
.aeei-caption {
    font-size: 0.85rem;
    color: #777;
    margin: 0.4rem 0 0;
    font-style: italic;
}

/* ── Embed trigger link ── */
.aeei-embed-trigger {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: #1B6B7B;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    text-align: center;
    box-sizing: border-box;
}
.aeei-embed-trigger:hover { color: #145663; }

/* ── Inline embed panel (hidden by default via inline style) ── */
.aeei-embed-panel {
    margin-top: 0.6rem;
    padding: 0.85rem 1rem;
    background: #f4f8f9;
    border: 1px solid #b7d3d8;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.aeei-embed-panel p {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    color: #444;
    line-height: 1.5;
}

.aeei-embed-code {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: #145663;
    background: #fff;
    border: 1px solid #c5dde1;
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 0.5rem;
}

.aeei-copy-btn {
    display: inline-block;
    background: #E8941A;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.aeei-copy-btn:hover { background: #F0A83A; }
.aeei-copy-btn.copied { background: #2a7a4a; }

.aeei-embed-note,
.aeei-embed-panel .aeei-embed-note,
.aeei-embed-panel p.aeei-embed-note,
.aeei-embed-panel div.aeei-embed-note {
    margin: 0.5rem 0 0 !important;
    font-size: 0.72rem !important;
    color: #c0392b !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: block !important;
}
