/* ============================================
   Konfigurator Modal
   ============================================ */
#p3-konfigurator-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
#p3-konfigurator-modal.is-open {
    display: flex;
}

.p3-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.p3-modal-content {
    position: relative;
    z-index: 1;
    background: #fbfbfc;
    border-radius: 16px;
    max-width: 720px;
    width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
}

.p3-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 2;
}
.p3-modal-close:hover {
    background: #f1f5f9;
}

/* Consent-blocked disclaimer inside modal */
.p3-consent-disclaimer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    padding: 2rem;
}
.p3-consent-disclaimer-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.p3-consent-disclaimer-text {
    font-size: 1rem;
    color: #475569;
    max-width: 420px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.p3-consent-disclaimer-btn {
    background: linear-gradient(135deg, #00851a, #167b35);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.p3-consent-disclaimer-btn:hover {
    transform: translateY(-2px);
}

/* Reonic widget inside modal — reuse existing spinner styles */
#p3-konfigurator-modal .p3-reonic-loading {
    min-height: 300px;
}
#p3-konfigurator-modal .p3-consent-widget-content {
    min-height: 400px;
}
#p3-konfigurator-modal .p3-consent-widget-content iframe {
    min-height: 400px;
}

/* Mobile */
@media (max-width: 600px) {
    .p3-modal-content {
        width: 96vw;
        max-height: 95vh;
        border-radius: 12px;
        padding: 1.5rem 1rem;
    }
    .p3-consent-disclaimer {
        min-height: 200px;
        padding: 1.5rem;
    }
}
