/*
 * Klevland Cookies — click-to-load embed placeholder styling.
 *
 * Brand tokens (`--klevland-primary`, `--klevland-accent`, `--klevland-radius`)
 * are inherited from `banner.css`, which is enqueued ahead of this file
 * (priority -9998 vs. our -9996). Hard fallbacks below keep the
 * placeholder usable even if banner.css is absent (e.g. a builder
 * editor suppressed the banner enqueue).
 *
 * The placeholder uses `aspect-ratio` inline-styled by the renderer so
 * the layout matches what the real iframe would have taken.
 */

.kc-embed-placeholder {
    position: relative;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: var(--klevland-radius, 6px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.kc-embed-placeholder .kc-embed-thumb {
    max-width: 30%;
    height: auto;
    opacity: 0.4;
}

.kc-embed-placeholder .kc-embed-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
}

.kc-embed-placeholder .kc-embed-label {
    margin: 0 0 12px 0;
    color: var(--klevland-primary, #1a1a1a);
    font-size: 0.95em;
}

.kc-embed-placeholder .kc-embed-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.kc-embed-placeholder button {
    background: var(--klevland-primary, #1a1a1a);
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: var(--klevland-radius, 6px);
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
}

.kc-embed-placeholder button.kc-embed-accept-all {
    background: var(--klevland-accent, #c8a96a);
    color: var(--klevland-primary, #1a1a1a);
}

.kc-embed-placeholder button:focus-visible {
    outline: 2px solid var(--klevland-accent, #c8a96a);
    outline-offset: 2px;
}
