/**
 * Miocamper Price Preview Styles
 * Styling für die Preisvorschau-Anzeige
 */

/* Haupt-Container für die Preisanzeige */
#mpp-price-holder {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5em;
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    display: none; /* Standardmäßig versteckt */
}

/* Erfolgreiche Preisanzeige (CI-Farbe) */
#mpp-price-holder.mpp-success {
    color: #007c2b;
    background-color: #f0f9f3;
    border: 2px solid #007c2b;
    box-shadow: 0 2px 8px rgba(0, 124, 43, 0.1);
}

/* Fehler-Anzeige */
#mpp-price-holder.mpp-error {
    color: #d32f2f;
    background-color: #fef2f2;
    border: 2px solid #d32f2f;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.1);
}

/* Info-Anzeige */
#mpp-price-holder.mpp-info {
    color: #1976d2;
    background-color: #f3f8ff;
    border: 2px solid #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

/* Responsive Design für mobile Geräte */
@media (max-width: 768px) {
    #mpp-price-holder {
        font-size: 1.1rem;
        padding: 10px 12px;
        margin-bottom: 0.75em;
    }
}

/* Animation beim Ein-/Ausblenden */
#mpp-price-holder {
    opacity: 0;
    transform: translateY(-10px);
}

#mpp-price-holder.mpp-success,
#mpp-price-holder.mpp-error,
#mpp-price-holder.mpp-info {
    opacity: 1;
    transform: translateY(0);
}

/* Hover-Effekt für bessere Interaktion */
#mpp-price-holder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Spezielle Styling für den Preistext */
#mpp-price-holder .price-amount {
    font-weight: 700;
    font-size: 1.1em;
}

/* Aufschlüsselung der Preise */
#mpp-price-holder small {
    display: block;
    margin-top: 0.5em;
    font-size: 0.85em;
    opacity: 0.8;
    font-weight: normal;
    line-height: 1.3;
}

/* Dark Mode Support (falls Theme unterstützt) */
@media (prefers-color-scheme: dark) {
    #mpp-price-holder.mpp-success {
        background-color: rgba(0, 124, 43, 0.1);
        color: #4caf50;
    }
    
    #mpp-price-holder.mpp-error {
        background-color: rgba(211, 47, 47, 0.1);
        color: #f44336;
    }
    
    #mpp-price-holder.mpp-info {
        background-color: rgba(25, 118, 210, 0.1);
        color: #2196f3;
    }
}

/* Integration mit BRW-Plugin Styles */
.ovabrw-booking-form #mpp-price-holder {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Sicherstellen dass der Container über dem Submit-Button steht */
form#request_booking #mpp-price-holder {
    order: -1; /* Falls Flexbox verwendet wird */
    z-index: 10;
    position: relative;
}

/* Zusätzliche Styles für bessere Integration */
.woocommerce-product-details__short-description + #mpp-price-holder,
.product-summary #mpp-price-holder {
    margin-top: 1.5rem;
}

/* Loading-Animation (optional) */
#mpp-price-holder.mpp-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Submit-Button auf gleiche Breite wie Preisberechnung */
form#request_booking .ovabrw-btn-booking,
form#request_booking input[type="submit"],
form#request_booking button[type="submit"],
.ovabrw-booking-form .ovabrw-btn-booking {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin-top: 0.5rem !important;
    display: block !important;
}

/* Print-Styles */
@media print {
    #mpp-price-holder {
        background: none !important;
        border: 1px solid #000 !important;
        color: #000 !important;
        box-shadow: none !important;
    }
} 