/**
 * Qoliber Proprietary Software
 *
 * @package   Qoliber_GdprEmbed
 * @copyright Copyright (c) 2026 Qoliber. All rights reserved.
 * @license   https://qoliber.com/license Proprietary License
 */

/**
 * Placeholder shown in place of a blocked third-party embed (YouTube,
 * Vimeo, Google Maps, ...). Plain, scoped CSS only — no Tailwind utility
 * classes — so it renders correctly on Hyvä too: Hyvä 1.4's Tailwind build
 * purges any class it cannot find as a literal string in a template or JS
 * file it scans, and this markup is generated server-side by
 * Qoliber\GdprEmbed\Model\EmbedRewriter, which no purge scan ever sees.
 *
 * Class names below MUST match Model/EmbedRewriter.php::placeholder()
 * exactly; that method is the single source of truth for the markup.
 */
.qoliber-gdpr-embed {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.qoliber-gdpr-embed *,
.qoliber-gdpr-embed *::before,
.qoliber-gdpr-embed *::after {
    box-sizing: inherit;
}

.qoliber-gdpr-embed__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

.qoliber-gdpr-embed__notice {
    margin: 0;
    max-width: 32em;
    color: #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
}

.qoliber-gdpr-embed__btn {
    display: inline-block;
    margin: 0;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.qoliber-gdpr-embed__btn:hover,
.qoliber-gdpr-embed__btn:focus-visible {
    background-color: #d0d0d0;
}

.qoliber-gdpr-embed__btn--secondary {
    background-color: transparent;
    color: #ffffff;
}

.qoliber-gdpr-embed__btn--secondary:hover,
.qoliber-gdpr-embed__btn--secondary:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/*
 * A deferred loader script (X, Instagram) has no intrinsic shape — the 16/9
 * box that suits a video player leaves a tall empty gap above a tweet. Size
 * this one to its own content instead, with a floor so the notice and buttons
 * are never cramped.
 */
.qoliber-gdpr-embed--script {
    aspect-ratio: auto;
    min-height: 8rem;
}
