/* Restaurant Branch Modal Styles */

.rbm-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: rbmFadeIn 0.3s ease;
}

.rbm-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.rbm-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: rbmSlideUp 0.4s ease;
}

.rbm-modal-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.rbm-modal-description {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.rbm-branches-list {
    display: grid;
    gap: 12px;
}

.rbm-branch-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.rbm-branch-item:hover {
    border-color: #4CAF50;
    background-color: #f1f8f4;
    transform: translateX(5px);
}

.rbm-branch-item.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.rbm-branch-icon {
    font-size: 24px;
    margin-right: 15px;
}

.rbm-branch-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* Change Branch Button (Floating) */
.rbm-change-btn {
    position: fixed;
    bottom: 20px;
    z-index: 99999;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

/* Button Position - Left (Default) */
.rbm-change-btn.rbm-position-left {
    left: 20px;
    right: auto;
}

/* Button Position - Right */
.rbm-change-btn.rbm-position-right {
    right: 20px;
    left: auto;
}

.rbm-change-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.rbm-change-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes rbmFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rbmSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rbm-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .rbm-modal-title {
        font-size: 20px;
    }
    
    .rbm-branch-item {
        padding: 14px 16px;
    }
    
    .rbm-branch-label {
        font-size: 14px;
    }
    
    .rbm-change-btn {
        bottom: 15px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .rbm-change-btn.rbm-position-left {
        left: 15px;
    }
    
    .rbm-change-btn.rbm-position-right {
        right: 15px;
    }
}

/* Loading State */
.rbm-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Selected Indicator */
.rbm-branch-item.selected::after {
    content: "✓";
    margin-left: auto;
    font-size: 24px;
    color: #4CAF50;
    font-weight: bold;
}

/* Success Notification */
.rbm-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.rbm-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.rbm-notification-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rbm-notification-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Mobile Notification */
@media (max-width: 768px) {
    .rbm-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 14px 18px;
    }
    
    .rbm-notification-icon {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
    
    .rbm-notification-text {
        font-size: 14px;
    }
}
