/**
 * Unit Cookies — iFrame Placeholder CSS v2.0.0
 * Style dla placeholderów blokowanych iFrame przed udzieleniem zgody.
 */

/* ── Kontener placeholdera ── */
.uc-iframe-placeholder {
    --uc-ifr-bg:        rgba(20, 20, 20, 0.88);
    --uc-ifr-border:    rgba(255, 255, 255, 0.10);
    --uc-ifr-text:      rgba(255, 255, 255, 0.85);
    --uc-ifr-muted:     rgba(255, 255, 255, 0.50);
    --uc-ifr-accent:    #4285f4;
    --uc-ifr-radius:    6px;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    background: var(--uc-ifr-bg);
    border: 1px solid var(--uc-ifr-border);
    border-radius: var(--uc-ifr-radius);
    overflow: hidden;
    box-sizing: border-box;

    /* Subtelny wzór w tle — siatka pikseli */
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Wewnętrzny wrapper — centruje zawartość pionowo i poziomo */
.uc-ifr-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 24px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ── Ikona ciasteczka (SVG stroke) ── */
.uc-ifr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--uc-ifr-muted);
    flex-shrink: 0;
}

.uc-ifr-icon svg {
    display: block;
}

/* ── Tekst opisu ── */
.uc-ifr-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--uc-ifr-text);
}

/* ── Przycisk „Załaduj" ── */
.uc-ifr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 22px;
    background: var(--uc-ifr-accent);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: opacity .18s ease, background .18s ease;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.uc-ifr-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4l3 3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.uc-ifr-btn:hover  { opacity: .85; }
.uc-ifr-btn:active { opacity: .70; }

.uc-ifr-btn:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.6);
    outline-offset: 3px;
}

/* ── Wariant: gdy placeholder jest wąski (np. sidebar) ── */
.uc-iframe-placeholder[style*="width"] .uc-ifr-inner,
.uc-iframe-placeholder.uc-ifr-narrow  .uc-ifr-inner {
    padding: 16px 12px;
    gap: 10px;
}

.uc-iframe-placeholder[style*="width"] .uc-ifr-icon,
.uc-iframe-placeholder.uc-ifr-narrow  .uc-ifr-icon {
    width: 44px;
    height: 44px;
}

.uc-iframe-placeholder[style*="width"] .uc-ifr-icon svg,
.uc-iframe-placeholder.uc-ifr-narrow  .uc-ifr-icon svg {
    width: 26px;
    height: 26px;
}

.uc-iframe-placeholder[style*="width"] .uc-ifr-text,
.uc-iframe-placeholder.uc-ifr-narrow  .uc-ifr-text {
    font-size: 12px;
}

/* ── Responsywność ── */
@media (max-width: 480px) {
    .uc-iframe-placeholder {
        min-height: 160px;
    }
    .uc-ifr-inner {
        padding: 18px 16px;
        gap: 10px;
    }
    .uc-ifr-icon {
        width: 50px;
        height: 50px;
    }
    .uc-ifr-icon svg {
        width: 28px;
        height: 28px;
    }
    .uc-ifr-text {
        font-size: 12px;
    }
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .uc-ifr-btn { transition: none; }
}
