/* Restaurant Product Short Description */

/* Preparation Type Options */
.restaurant-preparation-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.preparation-radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.preparation-radio:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.preparation-radio input[type="radio"] {
    margin: 0;
    transform: scale(1.2);
}

.preparation-radio input[type="radio"]:checked + .radio-label {
    color: #0073aa;
    font-weight: 600;
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.radio-label strong {
    font-size: 16px;
    color: #23282d;
}

.radio-label .description {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.preparation-radio input[type="radio"]:checked + .radio-label strong {
    color: #0073aa;
}

/* Modal Preparation Options */
.preparation-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preparation-option-card {
    position: relative;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.preparation-option-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.preparation-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.preparation-option-card input[type="radio"]:checked + .option-content {
    background: #3b82f6;
    color: white;
}

.preparation-option-card input[type="radio"]:checked ~ .selection-indicator {
    opacity: 1;
    transform: scale(1);
}

.preparation-option-card .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.preparation-icon {
    font-size: 1.2rem;
}

.preparation-option-card .option-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.preparation-option-card .option-description {
    font-size: 0.75rem;
    opacity: 0.8;
    text-align: center;
    margin-top: 0.1rem;
}

.preparation-option-card .selection-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preparation-option-card .selection-indicator::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Product Number Display */
.product-number {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* "Mit allem" Funktionalität wurde entfernt - CSS-Styles entfernt */
.restaurant-product-short-description {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid var(--funit-accent, #e74c3c);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
}

/* Preisänderung Animation */
.restaurant-total-price.price-changed {
    color: #e74c3c !important;
    font-weight: bold;
    transition: color 0.3s ease;
    animation: priceChangePulse 0.6s ease-in-out;
}

@keyframes priceChangePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.restaurant-product-short-description p {
    margin: 0;
}

/* Restaurant Option Tags - Tag-Cloud Darstellung */
.restaurant-option-tag {
    display: inline-block;
    background: #f8f9fa;
    border: 2px solid #e74c3c;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 2px 4px 2px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e74c3c;
    line-height: 1.2;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.restaurant-option-tag:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

/* Verschiedene Farben für verschiedene Optionstypen */
.woocommerce-cart-item__details .restaurant-option-tag {
    border-color: #e74c3c;
    color: #e74c3c;
}

.woocommerce-cart-item__details .restaurant-option-tag:hover {
    background: #e74c3c;
    color: white;
}

/* Spezielle Farben für verschiedene Optionstypen */
.restaurant-option-spicy-level {
    border-color: #f39c12 !important;
    color: #f39c12 !important;
}

.restaurant-option-spicy-level:hover {
    background: #f39c12 !important;
    color: white !important;
}

.restaurant-option-toppings {
    border-color: #27ae60 !important;
    color: #27ae60 !important;
}

.restaurant-option-toppings:hover {
    background: #27ae60 !important;
    color: white !important;
}

.restaurant-option-sauces {
    border-color: #9b59b6 !important;
    color: #9b59b6 !important;
}

.restaurant-option-sauces:hover {
    background: #9b59b6 !important;
    color: white !important;
}

.restaurant-option-extras {
    border-color: #3498db !important;
    color: #3498db !important;
}

.restaurant-option-extras:hover {
    background: #3498db !important;
    color: white !important;
}

/* WooCommerce Blocks Support */
.wc-block-components-product-details__value .restaurant-option-tag {
    margin: 1px 3px 1px 0;
}

/* Spezifische Regeln für WooCommerce Blocks Badge-Anzeige */
.wc-block-components-product-details__value {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}



.wc-block-components-product-details__value .restaurant-option-badge {
    display: inline-block !important;
    background: #f8f9fa !important;
    border: 2px solid #302e2e !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    margin: 2px 4px 2px 0 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #302e2e !important;
    line-height: 1.2 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.wc-block-components-product-details__value .restaurant-option-badge:hover {
    background: #e74c3c !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3) !important;
}

/* Spezielle Farben für verschiedene Optionstypen in Blocks */
.wc-block-components-product-details__value .restaurant-option-spicy-level {
    border-color: #f39c12 !important;
    color: #f39c12 !important;
}

.wc-block-components-product-details__value .restaurant-option-spicy-level:hover {
    background: #f39c12 !important;
    color: white !important;
}

.wc-block-components-product-details__value .restaurant-option-toppings {
    border-color: #27ae60 !important;
    color: #27ae60 !important;
}

.wc-block-components-product-details__value .restaurant-option-toppings:hover {
    background: #27ae60 !important;
    color: white !important;
}

.wc-block-components-product-details__value .restaurant-option-sauces {
    border-color: #9b59b6 !important;
    color: #9b59b6 !important;
}

.wc-block-components-product-details__value .restaurant-option-sauces:hover {
    background: #9b59b6 !important;
    color: white !important;
}

.wc-block-components-product-details__value .restaurant-option-extras {
    border-color: #3498db !important;
    color: #3498db !important;
}

.wc-block-components-product-details__value .restaurant-option-extras:hover {
    background: #3498db !important;
    color: white !important;
}

/* "Mit allem" Funktionalität wurde entfernt - CSS-Styles entfernt */

/* Responsive Design für Tags */
@media (max-width: 768px) {
    .restaurant-option-tag {
        font-size: 0.8rem;
        padding: 3px 10px;
        margin: 1px 3px 1px 0;
    }
}

/* Modern Restaurant Cart Modal */
.restaurant-cart-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.restaurant-cart-modal-container {
    position: relative;
    width: 95%;
    max-width: 900px;
    height: auto;
    min-height: 400px;
    max-height: 90vh;
    margin: 5vh auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes priceChangePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal Header */
.modal-header {
    background: white;
    padding: 1.5rem 2rem;
    color: #333;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.product-price-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.current-price-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    border: 2px solid #fecaca;
    transition: all 0.3s ease;
}

.current-price.price-changed {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
    animation: priceChangePulse 0.6s ease-in-out;
}

.modal-close-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

/* Modal Content */
.modal-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: #f8fafc;
    max-height: calc(90vh - 200px);
}



.modern-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.form-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.section-icon {
    width: 24px;
    height: 24px;
    background: #dc2626;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.section-emoji {
    font-size: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dc2626;
    margin: 0;
}

/* Spicy Options */
.spicy-section {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.spicy-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.spicy-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spicy-option-card {
    position: relative;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.spicy-option-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.spicy-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spicy-option-card input[type="radio"]:checked + .option-content {
    background: #3b82f6;
    color: white;
}

.spicy-option-card input[type="radio"]:checked ~ .selection-indicator {
    opacity: 1;
    transform: scale(1);
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.spicy-icon {
    font-size: 1.2rem;
}

.option-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.selection-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-indicator::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-card {
    position: relative;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.option-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card input[type="checkbox"]:checked + .option-content {
    background: #3b82f6;
    color: white;
}

.option-card input[type="checkbox"]:checked + .option-content .option-price {
    color: rgba(255, 255, 255, 0.9);
}

.option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-name {
    font-weight: 500;
    color: inherit;
    font-size: 0.9rem;
}

.option-price {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.option-card input[type="checkbox"]:checked + .option-content .checkbox-custom {
    background: white;
    border-color: white;
}

.check-icon {
    opacity: 0;
    transition: all 0.2s ease;
    color: #3b82f6;
}

.option-card input[type="checkbox"]:checked + .option-content .check-icon {
    opacity: 1;
}

/* Radio Button Styles für Saucen */
.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.option-card input[type="radio"]:checked + .option-content .radio-custom {
    border-color: #0073aa;
    background: #0073aa;
}

.radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.option-card input[type="radio"]:checked + .option-content .radio-dot {
    opacity: 1;
}

/* Verstecke Edit-Button im Checkout */
.woocommerce-checkout .edit-restaurant-item {
    display: none !important;
}

.woocommerce-order-received .edit-restaurant-item {
    display: none !important;
}



/* Modal Footer */
.modal-footer {
    background: white;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.footer-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary,
.btn-primary {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-loading {
    display: none;
}

.btn-primary.loading .btn-text {
    opacity: 0;
}

.btn-primary.loading .btn-loading {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading-Spinner für Buttons */
.edit-restaurant-item .loading-spinner {
    animation: spin 1s linear infinite;
}

/* Erfolgsmeldung */
.funit-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Restaurant Shipping Info Styles */
.restaurant-shipping-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 12px;
    border: 2px solid;
    animation: slideInUp 0.3s ease-out;
}

.restaurant-shipping-success {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.restaurant-shipping-progress {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.shipping-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.shipping-info-content {
    flex: 1;
}

.shipping-info-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.shipping-info-content p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.shipping-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 0.75rem 0;
    overflow: hidden;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .restaurant-cart-modal-container {
        width: 98%;
        height: auto;
        max-height: 95vh;
        margin: 2.5vh auto;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
    }
    
    .modal-content {
        padding: 1rem;
        max-height: calc(95vh - 200px);
        overflow-y: auto;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .product-price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .current-price {
        font-size: 1rem;
        padding: 0.2rem 0.5rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
    }
    
    .footer-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
    
    /* Shipping Info Mobile */
    .restaurant-shipping-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .shipping-info-icon {
        font-size: 2rem;
        margin: 0;
    }
    
    .shipping-info-content strong {
        font-size: 1rem;
    }
    
    .shipping-info-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .restaurant-cart-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-info {
        width: 100%;
    }
    
    .modal-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .modal-content {
        padding: 0.75rem;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    
    .product-price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .current-price-label {
        font-size: 0.8rem;
    }
    
    .current-price {
        font-size: 0.9rem;
        padding: 0.15rem 0.4rem;
    }
    
    .form-section {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
    
    .section-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .section-icon {
        width: 20px;
        height: 20px;
    }
    
    .section-emoji {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }
    
    /* Shipping Info Small Mobile */
    .restaurant-shipping-info {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .shipping-info-icon {
        font-size: 1.5rem;
    }
    
    .shipping-info-content strong {
        font-size: 0.9rem;
    }
    
    .shipping-info-content p {
        font-size: 0.8rem;
    }
    
    .shipping-progress-bar {
        height: 6px;
        margin: 0.5rem 0;
    }
}

/* Modal Button Styling */
/* Kompakter Bearbeiten-Button im Cart Block */
.edit-restaurant-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 4px 10px;
    margin: 4px 0;
    font-size: 0.95em;
    background: var(--funit-primary, #2c3e50);
    border: 1px solid var(--funit-primary, #2c3e50);
    border-radius: 5px;
    color: #fff;
    transition: background 0.2s, border 0.2s;
    cursor: pointer;
    box-shadow: none;
}
.edit-restaurant-item:hover {
    background: var(--funit-accent, #e74c3c);
    border-color: var(--funit-accent, #e74c3c);
    color: #fff;
}
.edit-restaurant-item .dashicons {
    font-size: 1em;
    width: 1em;
    height: 1em;
}

/* Produktseite Layout */
.woocommerce div.product.restaurant-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.woocommerce div.product.restaurant-product .product-image {
    grid-column: 1;
    position: sticky;
    top: 2rem;
}

.woocommerce div.product.restaurant-product .summary.entry-summary {
    grid-column: 2;
}

.restaurant-product-form .restaurant-product-section {
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

.restaurant-product-form .section-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: #333;
}

.restaurant-product-form .options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.restaurant-product-form .options-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.restaurant-product-form .options-row label:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.restaurant-product-form .options-row input[type="radio"],
.restaurant-product-form .options-row input[type="checkbox"] {
    margin: 0;
}

.restaurant-product-form .restaurant-dietary-info {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.restaurant-product-form .diet-label {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: white;
}

.restaurant-product-form .diet-label.vegetarian {
    background-color: #28a745;
}

.restaurant-product-form .diet-label.vegan {
    background-color: #17a2b8;
}

.restaurant-product-form .diet-label.gluten-free {
    background-color: #ffc107;
    color: #333;
}

.restaurant-product-form .restaurant-price-summary {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.restaurant-product-form .restaurant-add-to-cart {
    margin-top: 1rem;
}

.restaurant-product-form .single_add_to_cart_button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.restaurant-product-form .single_add_to_cart_button:hover {
    background-color: #495057;
}

.restaurant-summary {
    display: contents;
}

/* Details Button für Restaurant-Produkte auf Shop-Seite */
.details_button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
}

.details_button:hover {
    background-color: #333;
    color: white;
    text-decoration: none;
}

.details_button:active {
    background-color: #000;
}

/* Container für Details Button - 100% Breite */
.details-button-container {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Zentrierung für Details Button innerhalb des Containers */
.woocommerce ul.products li.product .button.details_button,
.woocommerce .products .product .button.details_button {
    display: inline-block;
    text-align: center;
    margin: 0 auto;
    width: auto;
    min-width: 120px;
}

/* Zusätzliche Zentrierung für alle Elemente im Produktcontainer */
.woocommerce ul.products li.product,
.woocommerce .products .product {
    text-align: center;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce .products .product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce .products .product .price {
    text-align: center;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .woocommerce div.product.restaurant-product {
        grid-template-columns: 1fr;
    }
    
    .woocommerce div.product.restaurant-product .product-image,
    .woocommerce div.product.restaurant-product .summary.entry-summary {
        grid-column: 1;
    }
    
    .restaurant-product-form .options-row {
        flex-direction: column;
    }
    
    .details_button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}