/**
 * ALLCITY oEmbed iframe styles
 *
 * Overrides WP's default wp-embed-template by depending on the same handle —
 * equal-specificity rules later in the cascade win, so no !important needed.
 * Per-site brand font is injected via wp_add_inline_style on the same handle
 * (the iframe is isolated from main.css). Custom share dialog markup is
 * rendered by acn_print_embed_sharing_dialog(); we reuse WP's wp-embed-share-*
 * class names so the bundled embed JS handles open/close + select-all.
 */

/* ── CARD ───────────────────────────────────────────────────────────────── */

.wp-embed {
    background: #f7f7f7;
    border: 0;
    border-radius: 4px;
    padding: 24px;
}

.wp-embed-heading {
    font-family: var(--acn-embed-heading-font, system-ui, sans-serif);
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 16px 0;
}

.wp-embed-heading a {
    color: #000;
    text-decoration: none;
}

.wp-embed-heading a:hover {
    text-decoration: underline;
}

.wp-embed-excerpt,
.wp-embed-comments {
    display: none;
}

.wp-embed-featured-image img {
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.wp-embed-featured-image.square {
    max-width: fit-content;
    margin-right: 0;
}

/* ── META ROW ────────────────────────────────────────────────────────────── */

.wp-embed-footer {
    margin-top: 16px;
}

.wp-embed-site-title {
    font-weight: 600;
    color: #666;
}

.wp-embed-meta {
    color: #666;
}

/* ── SHARE BUTTON ────────────────────────────────────────────────────────── */

.wp-embed-share-dialog-open {
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.wp-embed-share-dialog-open:hover {
    opacity: 1;
}

/* ── SHARE DIALOG ────────────────────────────────────────────────────────── */

.wp-embed-share-dialog {
    background: rgba(0, 0, 0, 0.55);
}

.wp-embed-share-dialog-content {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    padding: 28px 24px 24px;
    position: relative;
    color: #000;
}

/* Override WP's default 30x30 absolute box; we control the SVG dimensions. */
.wp-embed-share-dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: color 0.15s ease;
}

.wp-embed-share-dialog-close:hover {
    color: #000;
}

.acn-embed-close-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.acn-embed-share-label {
    font-family: var(--acn-embed-heading-font, system-ui, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    margin: 0 0 12px 0;
    color: #000;
}

.wp-embed-share-input {
    width: 100%;
    min-height: 110px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #000;
    resize: vertical;
    box-sizing: border-box;
}

.wp-embed-share-description {
    font-size: 12px;
    color: #666;
    margin: 10px 0 0 0;
}
