/* Admin-Reservierungsformular Styles */


/* Clean UI Fixes */

nav,
h1.wp-block-post-title,
.wfc-open-cart-button,
footer,
.brevo-newsletter-opt-in {
    display:none!important;
}

header > div > div {
    display: flex;
    justify-content: center !important;
}


/* Blockdauer-Selektor */
.bringmal-admin-form .block-duration-selector {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bringmal-admin-form .block-duration-input-wrapper {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.bringmal-admin-form .block-duration-btn {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bringmal-admin-form .block-duration-btn:hover {
    background-color: #e0e0e0;
}

div#total-capacity-info {
    font-size: 16px;
    text-align: center;
}

.capacity-status {
    background-color: gray;
    display: inline-block;
    padding: 2px 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 24px;
    margin: 6px 0;
}

.capacity-perfect {
    background-color: #4caf51;
}

.capacity-insufficient,.capacity-excess {
    background-color: #cdb35a;
}


.table-selection h4 {
    text-align: center;
    border-bottom: 1px solid #d4d4d4;
    padding-bottom: 16px;
    margin-bottom: 14px;
}

.bringmal-admin-form #reservation-block-duration {
    width: 60px;
    height: 40px;
    text-align: center;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.bringmal-admin-form .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.bringmal-admin-form .table-selection {
    margin-top: 0;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.bringmal-admin-form .tables-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.bringmal-admin-form .table-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.bringmal-admin-form .table-item.recommended {
    border-color: #4CAF50;
    background-color: #E8F5E9;
}

.bringmal-admin-form .table-item input[type="checkbox"] {
    margin-right: 10px;
}

/* Styling für Checkboxen im Admin-Formular */
.bringmal-admin-form .brevo-newsletter-opt-in,
.bringmal-admin-form .no-guest-notification-opt-in {
    margin-top: 20px;
    margin-bottom: 10px;
}

.bringmal-admin-form .brevo-newsletter-opt-in .checkbox-container,
.bringmal-admin-form .no-guest-notification-opt-in .checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 4px 0;
}

/* Verstecke die ursprüngliche Checkbox */
.bringmal-admin-form .brevo-newsletter-opt-in input[type="checkbox"],
.bringmal-admin-form .no-guest-notification-opt-in input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Erstelle einen benutzerdefinierten Container für die Checkbox */
.bringmal-admin-form .brevo-newsletter-opt-in .checkbox-container label,
.bringmal-admin-form .no-guest-notification-opt-in .checkbox-container label {
    position: relative;
    padding-left: 40px; /* Mehr Platz für die Checkbox */
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    user-select: none;
    display: inline-block;
    margin-bottom: 0;
}

/* Erstelle die benutzerdefinierte Checkbox */
.bringmal-admin-form .brevo-newsletter-opt-in .checkbox-container label:before,
.bringmal-admin-form .no-guest-notification-opt-in .checkbox-container label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px; /* Größere Checkbox */
    height: 24px; /* Größere Checkbox */
    border: 2px solid #2e7d32; /* Grüner Rahmen */
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}

/* Erstelle das Häkchen */
.bringmal-admin-form .brevo-newsletter-opt-in .checkbox-container label:after,
.bringmal-admin-form .no-guest-notification-opt-in .checkbox-container label:after {
    content: '';
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Zeige das Häkchen an, wenn die Checkbox aktiviert ist */
.bringmal-admin-form .brevo-newsletter-opt-in input[type="checkbox"]:checked + label:before,
.bringmal-admin-form .no-guest-notification-opt-in input[type="checkbox"]:checked + label:before {
    background-color: #2e7d32; /* Grüner Hintergrund wenn aktiviert */
    border-color: #2e7d32;
}

.bringmal-admin-form .brevo-newsletter-opt-in input[type="checkbox"]:checked + label:after,
.bringmal-admin-form .no-guest-notification-opt-in input[type="checkbox"]:checked + label:after {
    display: block;
}

/* Hover-Effekt für bessere UX */
.bringmal-admin-form .brevo-newsletter-opt-in .checkbox-container:hover label:before,
.bringmal-admin-form .no-guest-notification-opt-in .checkbox-container:hover label:before {
    border-color: #1b5e20; /* Dunkleres Grün beim Hover */
}

/* Fokus-Stil für Barrierefreiheit */
.bringmal-admin-form .brevo-newsletter-opt-in input[type="checkbox"]:focus + label:before,
.bringmal-admin-form .no-guest-notification-opt-in input[type="checkbox"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3);
}

/* Nachrichtenstile basierend auf den Anforderungen in den Memories */
.bringmal-admin-form .reservation-message,
.bringmal-admin-form .day-notice {
    max-width: 467px;
    width: 100%;
    margin: 10px auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 4px;
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
    will-change: transform, opacity, max-height;
    transition: 
        opacity 0.4s ease-out, 
        max-height 0.4s ease-out, 
        padding 0.4s ease-out,
        transform 0.4s ease-out;
}

/* Fehlermeldungen in Rot */
.bringmal-admin-form .reservation-message.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

/* Erfolgs- und Info-Meldungen in Grün */
.bringmal-admin-form .reservation-message.success,
.bringmal-admin-form .reservation-message.info,
.bringmal-admin-form .day-notice {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Animationsstil für eingeblendete Nachrichten */
.bringmal-admin-form .reservation-message.show,
.bringmal-admin-form .day-notice.show {
    opacity: 1;
    max-height: 200px;
    padding: 10px 15px;
    transform: translateY(0);
    margin-bottom: 15px;
}

/* Unbegrenzte Personenanzahl für Admin-Formular */
.bringmal-admin-form .persons-selector input[type="number"] {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 0px solid #ddd;
    border-radius: 4px;
}

.bringmal-admin-form .persons-selector button {
    height: 50px!important;
    width: 50px!important;
}


/* Responsive Design */
@media (max-width: 767px) {
    .bringmal-admin-form .tables-list {
        grid-template-columns: 1fr;
    }
    
    .bringmal-admin-form .reservation-message,
    .bringmal-admin-form .day-notice {
        max-width: 100%;
    }
}

