/* ─── WP Consent Gate – Frontend Styles ─────────────────────────────────── */

/* CSS Custom Property Fallback */
:root {
    --wpcg-accent: #2271b1;
    --wpcg-radius: 10px;
    --wpcg-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

/* ── Overlay-Wrapper ────────────────────────────────────────────────────── */
.wpcg-overlay-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 200px !important;
    background: #f0f2f5 !important;
    border-radius: var(--wpcg-radius) !important;
    overflow: hidden !important;
    margin: 1em 0 !important;
}

.wpcg-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%) !important;
    color: #fff !important;
    z-index: 10 !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.wpcg-overlay-inner {
    text-align: center !important;
    max-width: 480px !important;
    width: 100% !important;
}

.wpcg-icon {
    margin-bottom: 14px !important;
    opacity: 0.9 !important;
    line-height: 1 !important;
}

.wpcg-icon svg {
    width: 48px !important;
    height: 48px !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)) !important;
}

.wpcg-service-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.6) !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.wpcg-overlay-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.wpcg-overlay-text a.wpcg-privacy-link {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: underline !important;
    font-size: 12px !important;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.wpcg-actions {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.wpcg-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.wpcg-btn:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px !important;
}

.wpcg-btn-accept {
    background: var(--wpcg-accent) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.wpcg-btn-accept:hover {
    filter: brightness(1.15) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.wpcg-btn-decline {
    background: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.8) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.8) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.wpcg-btn-decline:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ── Freigeschalteter Inhalt ─────────────────────────────────────────────── */
.wpcg-revealed-content {
    display: block !important;
    width: 100% !important;
}

.wpcg-revealed-content iframe {
    width: 100% !important;
    display: block !important;
}

/* ── Footer-Banner ──────────────────────────────────────────────────────── */
.wpcg-footer-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: #1a1a2e !important;
    color: #fff !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25) !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-top: 3px solid var(--wpcg-accent) !important;
}

.wpcg-footer-banner.wpcg-footer-visible {
    transform: translateY(0) !important;
}

.wpcg-footer-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 14px 24px !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}

.wpcg-footer-text {
    flex: 1 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
}

.wpcg-footer-text a {
    color: rgba(255,255,255,0.65) !important;
    text-decoration: underline !important;
    -webkit-text-fill-color: rgba(255,255,255,0.65) !important;
}

.wpcg-footer-actions {
    display: flex !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .wpcg-overlay-inner {
        max-width: 100% !important;
    }

    .wpcg-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .wpcg-footer-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    .wpcg-footer-actions {
        width: 100% !important;
    }

    .wpcg-footer-actions .wpcg-btn {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
    }
}
