/**
 * Rezept Warenkorb - Styles
 * Styling für den Warenkorb-Button und Nachrichten
 */

/* Container */
.rezept-warenkorb-container {
    margin: 20px 0;
    display: inline-block;
    width: 100%;
}

/* Button Styling - Grün-Weißes Design */
.rezept-warenkorb-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 15px;
    background-color: #007f3e;
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    border: 1px solid #007f3e;
    border-radius: 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    text-decoration: none;
}

.rezept-warenkorb-button:hover {
    background-color: #006633;
    border-color: #006633;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 127, 62, 0.2);
}

.rezept-warenkorb-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.rezept-warenkorb-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rezept-warenkorb-button.loading {
    opacity: 0.8;
}

/* Button-Text */
.rezept-warenkorb-button .button-text {
    flex: 1;
}

.rezept-warenkorb-button .product-count {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 400;
    margin-left: 4px;
}

/* Spinner */
.rezept-warenkorb-button .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: rezept-spin 0.6s linear infinite;
}

@keyframes rezept-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Nachrichten */
.rezept-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.rezept-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.rezept-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.rezept-message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Info-Text für fehlende Produkte */
.rezept-info {
    padding: 12px 16px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
}

.rezept-error {
    padding: 12px 16px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rezept-warenkorb-button {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .rezept-warenkorb-container {
        width: 100%;
    }
}

/* Alternative Button-Styles (können mit button_class überschrieben werden) */
.rezept-warenkorb-button.style-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.rezept-warenkorb-button.style-outline:hover {
    background: #667eea;
    color: #ffffff;
}

.rezept-warenkorb-button.style-minimal {
    background: #f8f9fa;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rezept-warenkorb-button.style-minimal:hover {
    background: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bricks Builder Kompatibilität */
.brxe-div .rezept-warenkorb-container,
.bricks-element .rezept-warenkorb-container {
    margin: 0;
}
